Wrong Content-Type Header in Response of OSLC 2.0 Queries on RTC 6.0.6
Hi everyone,
When querying an RTC server using OSLC 2.0, I'm getting varying values for Content-Type in the HTTP response.
Most requests return Content-Type: application/xml+rdf, for example:
However it returns Content-Type: text/xml for the services of a Service Provider (= Project Area), e.g.
The problem is that this effectively breaks OSLC Discovery when using public libraries such as Eclipse Lyo 2.4.0+, (which checks the Content-Type header more thoroughly than previous versions, therefore aborting with an IllegalArgumentException).
I would like to find out if anyone else is experiencing the same.
I believe this to be a bug in RTC and could verify it against multiple installations.
3 answers
A quick try in 6.0.6 using Postman.
As far as I can tell, I do not need any header information and regardless if I provide that header, the result is always the same XML file. E.g. I used postman to get to the project areas service provider document and then found
https://clm.example.com:9443/ccm/oslc/contexts/_6C1woKYbEeiSMJX2Iy-rvg/workitems/services.xml
from that. I get the XML regardless of providing the headers and it seem to be in the same format. I don't see any header Content-Type: text/xml anywhere. I think I am missing something.
Comments
showing 5 of 8
show 3 more comments