Closed
Bug 660408
Opened 15 years ago
Closed 15 years ago
resourceIdentity of TestCaseVersion search result no longer includes URL
Categories
(Mozilla QA :: Case Conductor-Platform, defect)
Mozilla QA
Case Conductor-Platform
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: carljm, Assigned: vadimk)
Details
As shown in the full request/response below, the resourceIdentity for each object returned from a TestCaseVersion search result now includes only id and version, no URL. This isn't a priority issue; UI code can work around it if needed by constructing the URL based on known prefix (testcases/versions) and id. But if its a simple fix, it would be convenient and more robust against possible URL scheme changes to maintain consistency that resourceIdentity always includes URL.
ID: 317
Address: /tcm/services/v2/rest/testcases/latestversions
Content-Type:
Headers: {Authorization=[Basic YWRtaW5AdXRlc3QuY29tOmFkbWlu], host=[localhost:8080], user-agent=[TCMui/0.3], accept-encoding=[gzip, deflate], Content-Type=[null], Accept=[application/json]}
--------------------------------------
03:09:50,192 INFO [LoggingInInterceptor] Outbound Message
---------------------------
ID: 317
Response-Code: 200
Content-Type: application/json
Headers: {Date=[Sat, 28 May 2011 03:09:50 GMT]}
Payload: {"ns1.searchResult":[{"@xsi.type":"ns1:searchResult","ns1.testcaseversions":{"ns1.testcaseversion":[{"@xsi.type":"ns1:testcaseversion","ns1.approvalStatusId":2,"ns1.approveDate":"2011-05-28T02:42:26Z","ns1.approvedBy":1,"ns1.approvedByLocator":{"@id":"1","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/users\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.companyId":1,"ns1.companyLocator":{"@id":"1","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/companies\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.description":"","ns1.latestVersion":true,"ns1.majorVersion":0,"ns1.maxAttachmentSizeInMbytes":0,"ns1.maxNumberOfAttachments":0,"ns1.minorVersion":1,"ns1.name":"Can login","ns1.productId":1,"ns1.productLocator":{"@id":"1","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/products\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.resourceIdentity":{"@id":"1","@version":"2","@xsi.type":"ns1:ResourceIdentity"},"ns1.testCaseId":3,"ns1.testCaseStatusId":2,"ns1.testCycleId":{"@xsi.nil":"true"},"ns1.testCycleLocator":{"@xsi.nil":"true"},"ns1.timeline":{"@createDate":"2011-05-28T02:42:26Z","@createdBy":"2","@lastChangeDate":"2011-05-28T02:42:26Z","@lastChangedBy":"1","@xsi.type":"ns1:Timeline"}},{"@xsi.type":"ns1:testcaseversion","ns1.approvalStatusId":2,"ns1.approveDate":"2011-05-28T02:42:27Z","ns1.approvedBy":1,"ns1.approvedByLocator":{"@id":"1","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/users\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.companyId":1,"ns1.companyLocator":{"@id":"1","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/companies\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.description":"","ns1.latestVersion":true,"ns1.majorVersion":0,"ns1.maxAttachmentSizeInMbytes":0,"ns1.maxNumberOfAttachments":0,"ns1.minorVersion":1,"ns1.name":"Can register","ns1.productId":1,"ns1.productLocator":{"@id":"1","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/products\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.resourceIdentity":{"@id":"2","@version":"2","@xsi.type":"ns1:ResourceIdentity"},"ns1.testCaseId":4,"ns1.testCaseStatusId":2,"ns1.testCycleId":{"@xsi.nil":"true"},"ns1.testCycleLocator":{"@xsi.nil":"true"},"ns1.timeline":{"@createDate":"2011-05-28T02:42:27Z","@createdBy":"2","@lastChangeDate":"2011-05-28T02:42:27Z","@lastChangedBy":"1","@xsi.type":"ns1:Timeline"}}]},"ns1.totalResults":2}]}
--------------------------------------
Assignee: nobody → vadimk
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•