Open beldahanit opened 5 years ago
Check the code you are using!
If you are looking at the stuff you've posted you will see:
Content-Type: applicatiosn/scim+json
There is an additional 's' character.
Sorry that was a typo when composing the example. I have corrected it above.
It is actually throwing this error with the correct: Content-Type: application/scim+json
I was able to solve this issue by adding dependent jar files
to the application classpath. These files provide Jersey an ability to serialize and deserialize JSON request bodies.
Another option is to add a dependency artefact to the pom.xml file:
<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>2.xx</version>
</dependency>
Describe the bug A PATCH request to my SCIM service returns HTTP 415 error status.
To Reproduce
The service method is defined in the same way as in the example: TestSingletonResourceEndpoint.java
The
@PATCH
annotation is pointing to the class: com.unboundid.scim2.server.PATCH Then the PATCH request (tested with Postman and via curl) looks as follows:Received response:
Expected behavior The service should not return HTTP 415 as the payload and Headers comply (hopefully) with the https://tools.ietf.org/html/rfc7644
Additional context