[closed] forbidden error creating workitem using OSLC
marina delunas (7●1●13●16)
| asked Oct 22 '14, 5:21 a.m.
closed Dec 13 '21, 2:19 p.m. by Ralph Schoon (63.6k●3●36●46)
I'm trying to create a java client that can talk with RTC (4.0.3) via OSLC, to create/read/update WI.
Tthe "create" of a ChangeRequest (WI) fails. The code is: //Create the change request ClientResponse creationResponse = client.createResource( changeRequestCreation, changeRequest, OslcMediaType.APPLICATION_RDF_XML, OslcMediaType.APPLICATION_RDF_XML); String changeRequestLocation = creationResponse.getHeaders().getFirst(HttpHeaders.LOCATION); You can realize that "create" fails since the "changeRequestLocation" is null. The ClientResponse fields "status" and "message" are respectively "403" and "forbidden". I'm sure that credentials are correct, and they are allowed to create a WI (I've verified from RTC WUI), someone can help me? thanks! |
Comments