/users-keycloak/users/SOME_UUID expects wrong "accept" header content-type

Description

Summary: PUT requests to /users-keycloak/users/SOME_UUID with the HTTP Request header accept: text/plain fail.

Details: PUT requests to /users-keycloak/users/SOME_UUID are rejected with response code 406 unless they contain the HTTP Request header accept: application/javascript, even though the response body is empty. This is inconsistent with other FOLIO APIs which all accept PUT requests with the HTTP request header accept: text/plain.

This prevents the UI from being able to save changes to user records.

Steps to reproduce:

  • Make a PUT request with the header accept: text/plain:

Expected results: Request succeeds:

Actual results: Request fails:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Yauhen Viazau February 2, 2024 at 1:41 PM
Edited

Tested on "evrk" - works as expected

PUT requests to /users-keycloak/users/<user UUID> executed successfully with "Accept" header with following values:

  • "*/*"

  • "text/plain"

  • "application/json"

See screencast with an example:

Note: Response with 406 status returned in case of "application/javascript" in "Accept" header

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Eureka

RCA Group

TBD

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created January 11, 2024 at 7:56 PM
Updated April 4, 2024 at 7:29 PM
Resolved February 25, 2024 at 4:06 AM
TestRail: Cases
TestRail: Runs