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

Fix #4289 low level client index http method generation wrong #4290

Merged
merged 2 commits into from
Dec 18, 2019

Conversation

Mpdreamz
Copy link
Member

@Mpdreamz Mpdreamz commented Dec 18, 2019

We used to always send POST which is not right either but the server
accepted it. Now that we have a new format and transform to the old
format in the interim we only picked up PUT for all which is not correct
for index operations without an id.

This bug affects the low level client only, NEST sends the right HttpMethod based on whether an Id is provided or not.

We used to always send POST which is not right either but the server
accepted it. Now that we have a new format and transform to the old
format in the interim we only picked up PUT for all which is not correct
for index operations without an id.
@niemyjski
Copy link
Contributor

LGTM

@Mpdreamz
Copy link
Member Author

One failing test due to #4280 unrelated, merging this in.

@Mpdreamz Mpdreamz merged commit 02d4076 into 7.x Dec 18, 2019
@Mpdreamz Mpdreamz deleted the fix/7.x/code-generation-index-low-level branch December 18, 2019 17:15
Mpdreamz added a commit that referenced this pull request Dec 18, 2019
* Fix #4289 low level client index http method generation wrong

We used to always send POST which is not right either but the server
accepted it. Now that we have a new format and transform to the old
format in the interim we only picked up PUT for all which is not correct
for index operations without an id.

* add unit tests

(cherry picked from commit 02d4076)
Mpdreamz added a commit that referenced this pull request Dec 18, 2019
* Fix #4289 low level client index http method generation wrong

We used to always send POST which is not right either but the server
accepted it. Now that we have a new format and transform to the old
format in the interim we only picked up PUT for all which is not correct
for index operations without an id.

* add unit tests

(cherry picked from commit 02d4076)
@Mpdreamz
Copy link
Member Author

ported to master

@Mpdreamz
Copy link
Member Author

cherry-picked to 7.5 will spin a new release.

@Mpdreamz
Copy link
Member Author

Released https://github.com/elastic/elasticsearch-net/releases/tag/7.5.1 thanks for reporting as always @niemyjski !

@Mpdreamz
Copy link
Member Author

Deprecated the 7.5.0 release of Elasticsearch.Net on nuget in favor of 7.5.1.

cc @codebrain @russcam

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