Assigning team members for parent/child object changes team members of child/parent object

VERIFIED FIXED

Status

P1
major
VERIFIED FIXED
7 years ago
7 years ago

People

(Reporter: carljm, Unassigned)

Tracking

Details

(Reporter)

Description

7 years ago
To reproduce:

1. Create a product.
2. Assign team members to that product.
3. Create a test cycle in that product.
4. Assign a different set of team members to the cycle.
5. Check the team members for the product - they will be the ones just set for the cycle.

Below server log shows this happening - first two queries demonstrating that product and cycle each have a single team member, then query setting two team members for cycle, then queries showing that both product and cycle now have two team members. Product should still only have one.

Same happens with a cycle and a run in that cycle. And same happens in reverse: setting team for parent object sets it incorrectly for child, too.

05:15:15,137 INFO  [LoggingInInterceptor] Inbound Message
----------------------------
ID: 1559
Address: /tcm/services/v2/rest/products/2/team/members
Content-Type: 
Headers: {Authorization=[Basic YWRtaW5AdXRlc3QuY29tOmFkbWlu], host=[localhost:8080], user-agent=[TCMui/0.3], accept-encoding=[gzip, deflate], Content-Type=[null], Accept=[application/json]}
--------------------------------------
05:15:15,181 INFO  [LoggingInInterceptor] Outbound Message
---------------------------
ID: 1559
Response-Code: 200
Content-Type: application/json
Headers: {Date=[Tue, 20 Sep 2011 05:15:15 GMT]}
Payload: {"ns1.ArrayOfUser":[{"@xsi.type":"ns1:ArrayOfUser","ns1.user":{"@xsi.type":"ns1:user","ns1.companyId":1,"ns1.companyLocator":{"@id":"1","@name":"Mozilla","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/companies\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.email":"tester2@example.com","ns1.firstName":"Another","ns1.lastName":"Tester","ns1.password":{"@xsi.nil":"true"},"ns1.resourceIdentity":{"@id":"3","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/users\/3","@version":"1","@xsi.type":"ns1:ResourceIdentity"},"ns1.screenName":"tester2","ns1.timeline":{"@createDate":"2011-09-20T05:02:00Z","@createdBy":"1","@lastChangeDate":"2011-09-20T05:02:00Z","@lastChangedBy":"1","@xsi.type":"ns1:Timeline"},"ns1.userStatusId":1}}]}
--------------------------------------
05:15:41,658 INFO  [LoggingInInterceptor] Inbound Message
----------------------------
ID: 1560
Address: /tcm/services/v2/rest/testcycles/11/team/members
Content-Type: 
Headers: {Authorization=[Basic YWRtaW5AdXRlc3QuY29tOmFkbWlu], host=[localhost:8080], user-agent=[TCMui/0.3], accept-encoding=[gzip, deflate], Content-Type=[null], Accept=[application/json]}
--------------------------------------
05:15:41,699 INFO  [LoggingInInterceptor] Outbound Message
---------------------------
ID: 1560
Response-Code: 200
Content-Type: application/json
Headers: {Date=[Tue, 20 Sep 2011 05:15:41 GMT]}
Payload: {"ns1.ArrayOfUser":[{"@xsi.type":"ns1:ArrayOfUser","ns1.user":{"@xsi.type":"ns1:user","ns1.companyId":1,"ns1.companyLocator":{"@id":"1","@name":"Mozilla","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/companies\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.email":"tester2@example.com","ns1.firstName":"Another","ns1.lastName":"Tester","ns1.password":{"@xsi.nil":"true"},"ns1.resourceIdentity":{"@id":"3","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/users\/3","@version":"1","@xsi.type":"ns1:ResourceIdentity"},"ns1.screenName":"tester2","ns1.timeline":{"@createDate":"2011-09-20T05:02:00Z","@createdBy":"1","@lastChangeDate":"2011-09-20T05:02:00Z","@lastChangedBy":"1","@xsi.type":"ns1:Timeline"},"ns1.userStatusId":1}}]}
--------------------------------------
05:15:45,002 INFO  [LoggingInInterceptor] Outbound Message
---------------------------
ID: 1561
Response-Code: 200
Content-Type: application/json
Headers: {Date=[Tue, 20 Sep 2011 05:15:45 GMT]}
Payload: {"xsd.boolean":[{"@xsi.type":"xsd:boolean","$":"true"}]}
--------------------------------------
05:15:47,677 INFO  [LoggingInInterceptor] Inbound Message
----------------------------
ID: 1562
Address: /tcm/services/v2/rest/products/2/team/members
Content-Type: 
Headers: {Authorization=[Basic YWRtaW5AdXRlc3QuY29tOmFkbWlu], host=[localhost:8080], user-agent=[TCMui/0.3], accept-encoding=[gzip, deflate], Content-Type=[null], Accept=[application/json]}
--------------------------------------
05:15:47,739 INFO  [LoggingInInterceptor] Outbound Message
---------------------------
ID: 1562
Response-Code: 200
Content-Type: application/json
Headers: {Date=[Tue, 20 Sep 2011 05:15:47 GMT]}
Payload: {"ns1.ArrayOfUser":[{"@xsi.type":"ns1:ArrayOfUser","ns1.user":[{"@xsi.type":"ns1:user","ns1.companyId":1,"ns1.companyLocator":{"@id":"1","@name":"Mozilla","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/companies\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.email":"tester@example.com","ns1.firstName":"Some","ns1.lastName":"Tester","ns1.password":{"@xsi.nil":"true"},"ns1.resourceIdentity":{"@id":"2","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/users\/2","@version":"1","@xsi.type":"ns1:ResourceIdentity"},"ns1.screenName":"tester","ns1.timeline":{"@createDate":"2011-09-20T05:01:59Z","@createdBy":"1","@lastChangeDate":"2011-09-20T05:02:00Z","@lastChangedBy":"1","@xsi.type":"ns1:Timeline"},"ns1.userStatusId":1},{"@xsi.type":"ns1:user","ns1.companyId":1,"ns1.companyLocator":{"@id":"1","@name":"Mozilla","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/companies\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.email":"tester2@example.com","ns1.firstName":"Another","ns1.lastName":"Tester","ns1.password":{"@xsi.nil":"true"},"ns1.resourceIdentity":{"@id":"3","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/users\/3","@version":"1","@xsi.type":"ns1:ResourceIdentity"},"ns1.screenName":"tester2","ns1.timeline":{"@createDate":"2011-09-20T05:02:00Z","@createdBy":"1","@lastChangeDate":"2011-09-20T05:02:00Z","@lastChangedBy":"1","@xsi.type":"ns1:Timeline"},"ns1.userStatusId":1}]}]}
--------------------------------------
05:15:51,046 INFO  [LoggingInInterceptor] Inbound Message
----------------------------
ID: 1563
Address: /tcm/services/v2/rest/testcycles/11/team/members
Content-Type: 
Headers: {Authorization=[Basic YWRtaW5AdXRlc3QuY29tOmFkbWlu], host=[localhost:8080], user-agent=[TCMui/0.3], accept-encoding=[gzip, deflate], Content-Type=[null], Accept=[application/json]}
--------------------------------------
05:15:51,105 INFO  [LoggingInInterceptor] Outbound Message
---------------------------
ID: 1563
Response-Code: 200
Content-Type: application/json
Headers: {Date=[Tue, 20 Sep 2011 05:15:51 GMT]}
Payload: {"ns1.ArrayOfUser":[{"@xsi.type":"ns1:ArrayOfUser","ns1.user":[{"@xsi.type":"ns1:user","ns1.companyId":1,"ns1.companyLocator":{"@id":"1","@name":"Mozilla","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/companies\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.email":"tester@example.com","ns1.firstName":"Some","ns1.lastName":"Tester","ns1.password":{"@xsi.nil":"true"},"ns1.resourceIdentity":{"@id":"2","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/users\/2","@version":"1","@xsi.type":"ns1:ResourceIdentity"},"ns1.screenName":"tester","ns1.timeline":{"@createDate":"2011-09-20T05:01:59Z","@createdBy":"1","@lastChangeDate":"2011-09-20T05:02:00Z","@lastChangedBy":"1","@xsi.type":"ns1:Timeline"},"ns1.userStatusId":1},{"@xsi.type":"ns1:user","ns1.companyId":1,"ns1.companyLocator":{"@id":"1","@name":"Mozilla","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/companies\/1","@xsi.type":"ns1:ResourceLocator"},"ns1.email":"tester2@example.com","ns1.firstName":"Another","ns1.lastName":"Tester","ns1.password":{"@xsi.nil":"true"},"ns1.resourceIdentity":{"@id":"3","@url":"http:\/\/localhost:8080\/tcm\/services\/v2\/rest\/users\/3","@version":"1","@xsi.type":"ns1:ResourceIdentity"},"ns1.screenName":"tester2","ns1.timeline":{"@createDate":"2011-09-20T05:02:00Z","@createdBy":"1","@lastChangeDate":"2011-09-20T05:02:00Z","@lastChangedBy":"1","@xsi.type":"ns1:Timeline"},"ns1.userStatusId":1}]}]}
--------------------------------------
Carl: does this block you?  

Also, the description was too large to enter into Tracker, apparently.  In the future, I think we might need to add logs in a comment or attachment so that we can prioritize platform bugs in Tracker.
(Reporter)

Comment 2

7 years ago
Oops, wondered if there'd be an issue with the large description, just wanted to make sure to demonstrate the issue. Won't do that again.

No, this isn't a blocker for further development work at this point.
(Reporter)

Updated

7 years ago
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → FIXED
(Reporter)

Updated

7 years ago
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.