It's all about the answers!

Ask a question

linked work item using custom javascript is throwing "unknown type" error and Resource does not exist when accessed from a different PA


Eric Jodet (6.3k5111120) | asked Jan 16 '13, 10:05 a.m.
JAZZ DEVELOPER
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?

Comments
Eric Jodet commented Jan 16 '13, 10:07 a.m.
JAZZ DEVELOPER

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)

Accepted answer


permanent link
Eric Jodet (6.3k5111120) | answered Jan 16 '13, 10:06 a.m.
JAZZ DEVELOPER
Ralph Schoon selected this answer as the correct answer

Your answer


Register or to post your answer.