linked work item using custom javascript is throwing "unknown type" error and Resource does not exist when accessed from a different PA
I am using RTC 4.0.1 and found that accessing some linked work item from the WebUI was raising an expected error (Unknown Type) which prevented me to view the linked work item.
steps I used: - create FOO PA - SCRUM Template - add a validator to the PA - (which simply raises a warning for any value of the severity attribute) - enable this validator for the severity attribute - add ADMIN/ADMIN - all roles to the PA - save - create BAR PA - SCRUM Template - create FOO DEFECT - create BAR DEFECT - link FOO DEFECT TO BAR DEFECT (related) - open BAR DEFECT in WebUI - links tab, click on FOO DEFECT expected: FOO DEFECT opens observed: 1 - WebUI: unknown type error is raised 2 - jetty log: a bunch of errors are logged to the server log (sample below) is this a defect? |
Accepted answer
this issue has been identified on jazz.net as defect Attribute customization JavaScript scripts need to be added as attachments to the project area that creates a linked work item (214528)
Ralph Schoon selected this answer as the correct answer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.
Comments
sample server error:
12:08:57,119 [1963543675@qtp-145680648-12] ERROR net.jazz.ajax.servlets.JavascriptServlet - GET https://localhost:9443/jazz/web/_js/
?exclude=B˜C˜D˜E˜F˜G˜H˜I˜J˜K˜L˜M˜N˜O˜P˜Q&include=com.example.ValidatorTest2.js&ss=BgcHt&_proxyURL=%2Fjazz&locale=en-usHEADER: Host = localhost:9443
HEADER: Accept-Encoding = gzip, deflate
HEADER: Cookie = SaveStateCookie=undefined; net-jazz-ajax-cookie-rememberUserId=; JSESSIONID=17o...dkd; JazzFormAuth=Form
HEADER: Connection = keep-alive
HEADER: Referer = https://localhost:9443/jazz/web/projects/BAR
HEADER: Content-Type = application/x-www-form-urlencoded
HEADER: X-Requested-With = XMLHttpRequest
Parameter: include = [com.example.ValidatorTest2.js]
Parameter: locale = [en-us]
java.lang.IllegalArgumentException: Resource does not exist: com.example.ValidatorTest2.js
at net.jazz.ajax.model.Resource.resolve(Resource.java:257)