REST-API: Original Project Area name not working in REST API URL
Hello,
I've a RQM project area, named "TDG1 Demo"
when I try to get data with Rest API:
https://<my-server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/testsuite/urn:com.ibm.rqm:testsuite:72
I get: Error 404: SRVE0295E: Error reported: 404
when I try it with
https://<my-server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1_QA_CLONE3/testsuite/urn:com.ibm.rqm:testsuite:72
it works fine.
When I export to a csv file, RQM also uses TDG1_QA_CLONE3. The only place where I find this name is on
Mange this project area site:
Why I can not use "TDG1+Demo"?
thanks, jörg
2 answers
Hi Georg!
thanks for the answer.
Does this mean, that it is not possible to change the alias?
What I do not understand is why sometimes the project Area name is working and sometimes not:
the following requests are working both:
1) https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/testsuite
2) https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1_QA_CLONE3/testsuite
But If I try
3) https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1+Demo/testsuite/urn:com.ibm.rqm:testsuite:62?fields=feed/entry/content/testsuite/(suiteelements)
I get an error: Error 404: SRVE0295E: Error reported: 404
Whereas with the alias the same query works:
4) https://<server>/qm/service/com.ibm.rqm.integration.service.IIntegrationService/resources/TDG1_QA_CLONE3/testsuite/urn:com.ibm.rqm:testsuite:62?fields=feed/entry/content/testsuite/(suiteelements)
Background: A third party tool we use runs into this issue. The quickest fix would be, if can change the alias name.
And "more stable" seems not be always true :-(. If I try to connect to the project area, using the alias in the browser, I get the error message:
You have successfully logged into Jazz Team Server but not able to access the Project 'TDG1_QA_CLONE3'.
Thanks, Jörg
[we use RQM 6.0.3]
A similar discussion took place two years ago.
https://jazz.net/forum/questions/178502/can-you-rename-a-rational-quality-manager-project-area-alias
A project alias is a generated unique identifier based on the URL encoded (see RFC 2396 ) form of a project's initial name. This identifier never changes once created, thus it can be used to reference a project even when the project's name is changed.
If you replace the term "alias" with "ID", you will understand why. If you do what Ara suggested, to get a list of the project areas, you will see that the "alias" is referred to as "identifier", whereas the project name as "title".
I believe in your case "TDG1_QA_CLONE3" is actually the "original" (as when first created) project name. The fact that you can use "TDG1 Demo" in some requests should not matter.
Comments
Yes Don, TDG1_QA_CLONE3 is the original name and was later renamed.
Okay, TDG1_QA_CLONE3 is the identifier.
But if I initially want to open the project area, I can not specify this identifier, I've to use the new project area name. Otherwise I get the error:
You have successfully logged into Jazz Team Server but not able to access the Project 'TDG1_QA_CLONE3'.
Can you explain the reason for this behavior?
thanks, jörg
When you say you "want to open the project area", what URL are you going to use? Is it still related to REST API? The web UI may use a different logic and has different requirements.
Comments
Ara Masrof
JAZZ DEVELOPER Apr 05 '17, 10:56 a.m.Jorg,
Jörg Werner
Apr 06 '17, 4:20 a.m.Thanks Ara!
Two questions:
1) Can I change the alias?
2) Why I have to use the alias in the above query and can not use the standard project name?
Cheers, Jörg
Georg Kellner
Apr 06 '17, 4:26 a.m.Hi Jörg,
you can change the project name as often as you want to.
So using the alias is more stable instead of using the project name.
Greetings Georg.