CRRRS6402E Content is not allowed making PUT request in RDNG
![]() Hello guys!
Sorry for disturbing. I'm trying to update an artifact with OSLC in accordance to:
But I can not overcome it! Could anybody take a quick look at my case and say what I'm doing wrong.
I'm working with RDNG v6.0.5, use Firefox v12 and Poster add-on installed.
1. Building GET request
![]()
2. Taking and copy-pasting body from result to content of new PUT request to be sent
![]()
3. Taking content from ETag header in the result of GET request and saving it as is in If-Math header of new PUT request
![]()
4. Executing PUT request
![]()
What is wrong?
Thanks a lot in advance!
|
Accepted answer
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Nov 26 '18, 9:56 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I was not talking about the HEADER. I was talking about the MESSAGE content in the PUT. ![]() Dmitry A. Lesin selected this answer as the correct answer
Comments Yes, sure, I'm understanding that. I have taken body from result in GET request and copy/pasted it to content to be sent. As well as ETag copied to If-Match.
Or may be I didn't understand you clear again?
SURE
This is a specifics of Poster, I believe. It's never mind if you set "Content-Type" header. It must be set in "Content Type" filed of Poster!
|
2 other answers
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Nov 26 '18, 9:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Nov 26 '18, 9:30 a.m. The error message seems to indicate that whatever you sent as a payload in the post was not in a valid application/rdf+xml format. Also check the log and search for the entry using the code. Comments It's strange because I was taking the content from GET result as is. It means that GET result was not in valid application/rdf+xml format, wasn't it? Log doesn't have enough info:
2018-11-26 17:40:02,447 [Default Executor-thread-4833 @@ 17:40 <unauthenticated> <Mozilla/5.0 (Windows NT 6.2; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0@fe80:0:0:0:180a:7716:d783:2d90%12> /rm/resources/_QdJP-OjKEeinF9fCDHR5fg] ERROR ibm.rdm.fronting.server.services.RMRestServiceBase - CRRRS1007E A problem occurred in the Requirements Management (RM) server: Entry [6d335a433bffd7b5]
com.ibm.rdm.fronting.server.exception.UnsupportedMediaTypeException: CRRRS6402E Content is not allowed. Content type must be application/rdf+xml
at com.ibm.rdm.fronting.server.exception.RRSException.newException(RRSException.java:315)
at com.ibm.rdm.fronting.server.exception.RRSException.newUnsupportedMediaTypeException(RRSException.java:206)
at com.ibm.rdm.fronting.server.services.calm.internal.OSLC20ContentHandler.validateContentType(OSLC20ContentHandler.java:1712)
|