Get RRC reviews through OSLC Client Application
I am building a client application to access the reviews in a project area of RRC. In REST-API i use following link to get all the reviews of a particular project area.
i use following headers in REST-Client as well as java application.
Accept: application/rdf+xml
OSLC-Core-Version: 2.0
Content-Type: application/rdf+xml
DoorsRP-Request-Type Value: private
The REST-Client returns me all the reviews however when i pass the same header in the request through java code i get Error 403: forbidden. Follow response body is received.
<html><head><title>Error 403: Forbidden</title></head><body><h1>Error 403: Forbidden</h1><p>CRRRS4142E getInternalRequestHandlerService(context) returned null. This error used to report 'The requested service requires a private header'.<hr><i>Requirements Management/4.0.7</i></p></body></html>
Any ideas what can be the problem?
Accepted answer
You can put the private header in the URL - that is, add "private=true" in the URL. So your URL becomes https://clmapp:9443/rm/reviews?private=true&projectURI=_TmFXlVQIEeKzkvPRDuhJlQ
Note that do not put it at the end of the URL, otherwise it will not be recognized (I don't know why).