You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
@Path("{id}")
@PATCH
@Consumes({MEDIA_TYPE_SCIM, MediaType.APPLICATION_JSON})
@Produces({MEDIA_TYPE_SCIM, MediaType.APPLICATION_JSON})
public ScimResource modify(@PathParam("id") final String id, final PatchRequest patchRequest, @Context final UriInfo uriInfo) throws ScimException
{
...
}
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:
<h1>HTTP Status 415 – Nicht unterstützter Media-Type</h1>
<hr class="line" />
<p><b>Type</b> Status Report</p>
<p><b>Message</b> Unsupported Media Type</p>
<p><b>Beschreibung</b> The origin server is refusing to service the request because the payload is in a format not
supported by this method on the target resource.</p>
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
Tested on Apache Tomcat 9.0.21
Tested with SDK SCIM 2: Release 2.3.1 with all relevant Maven dependencies
GET requests work fine
The text was updated successfully, but these errors were encountered:
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
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.PATCHThen 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
The text was updated successfully, but these errors were encountered: