Skip to content
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] API patch rejected by security plugin, possible regression #65

Open
bobfrankly opened this issue Sep 23, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@bobfrankly
Copy link

What is the bug?
According to #46 we should be able to issue a PATCH API call to update a user, but on 1.3.4 I'm attempting to do this and getting:
{"statusCode":400,"error":"Bad Request","message":"[request query.method]: Method must be one of, case insensitive ['HEAD', 'GET', 'POST', 'PUT', 'DELETE']. Received 'PATCH'."}

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Be on version 1.3.4
  2. Login to Opensearch Dashboard
  3. navigate to Management > Devtools
  4. Attempt to issue a PATCH _plugins/_security/api/internalusers/admin
  5. See error

What is the expected behavior?
I expect to either see a success, OR to see an error that is NOT [request query.method]

What is your host/environment?

  • OS: Docker on Ubuntu
  • Version Ubuntu 20.10
  • Plugin version 1.3.4
  • OpenSearch version 1.3.4

Do you have any screenshots?
image

Do you have any additional context?
Not at this time.

@bobfrankly bobfrankly added bug Something isn't working untriaged labels Sep 23, 2022
@wbeckler wbeckler removed the untriaged label Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants