-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Response content-type changed in 2.11 for some endpoints #3718
Comments
The change to the This means that the impacted APIs can be found by moving up a level to where the Notably, the The first The second The third The final APIs impacted appear to be any calls falling under the above scenarios and then specifically these classes:
... This list is a work in progress. Additional usage can be found through searching for |
In 2.11, there was a change to introduce a SecurityResponse wrapper around a BytesRestResponse. In the method to cast the SecurityResponse to a RestResponse, the method creates a BytesRestResponse using the constructor without contentType. (Here's the BytesResponseResponse constructor for context). Even if an instance of SecurityResponse is created with a Content-Type header it is being ignored since the constructor of BytesRestResponse will set it at the time the RestResponse is instantiated.
APIs impacted:
/_plugins/security/api/authtoken
application/json
instead oftext/plain
The text was updated successfully, but these errors were encountered: