It's all about the answers!

Ask a question

[closed] forbidden error creating workitem using OSLC


marina delunas (711316) | asked Oct 22 '14, 5:21 a.m.
closed Dec 13 '21, 2:19 p.m. by Ralph Schoon (63.6k33646)
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
Shriram Punde commented Dec 13 '21, 7:40 a.m. | edited Dec 13 '21, 7:50 a.m.
Hi,

I am facing same issue , is there any way you resolved it ?
it will be really helpful if we got some way.

The question has been closed for the following reason: "Problem is not reproducible or outdated" by rschoon Dec 13 '21, 2:19 p.m.