Skip to content

Conversation

@jbudz
Copy link
Member

@jbudz jbudz commented Aug 24, 2017

Currently console will automatically change the request method from get to post if there's a body. It can cause unexpected behavior in certain cases and possibly lead to accidental document overwrites. The check is also case sensitive for "GET" and will behave differently if the method is "get".

To test,

GET /a/a/1
{
  "a" : "a"
}

should have the request method get appended as a query parameter (instead of post)
image

Closes #13687
Closes #10721

@jbudz
Copy link
Member Author

jbudz commented Aug 24, 2017

jenkins, test it

Copy link
Member

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jbudz jbudz merged commit 38b13c7 into elastic:master Aug 25, 2017
jbudz added a commit that referenced this pull request Aug 25, 2017
jbudz added a commit to jbudz/kibana that referenced this pull request Sep 18, 2017
jbudz added a commit that referenced this pull request Oct 5, 2017
* Revert "[console] Don't infer request method (#13694)"

This reverts commit 38b13c7.

* [console] Make request method check case insensitive

* Revert "[console] Make request method check case insensitive"

This reverts commit c749f8d.
jbudz added a commit that referenced this pull request Oct 5, 2017
* Revert "[console] Don't infer request method (#13694)"

This reverts commit 38b13c7.

* [console] Make request method check case insensitive

* Revert "[console] Make request method check case insensitive"

This reverts commit c749f8d.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants