-
Notifications
You must be signed in to change notification settings - Fork 732
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
Send scroll_id inside a json rather that text #1325
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
elastic/elasticsearch-php@59b3c08 looks the same |
@nomoa LGTM. Could you add a changelog entry? |
ruflin
approved these changes
Jun 13, 2017
It's likely to cause issues with elastic 5.3 as Content-Type handling becomes more and more strict. eg.: curl -H"Content-Type: application/json" -XGET localhost:9200/_search/scroll?scroll=1m -d 'DXF...' now fails with Failed to parse request body on 5.3.x. Elastic 5.1 was lenient and accepted this body. Since we default Content-Type to application/json this is likely cause issues in Elastica as well. Using an array instead of plain string should force the use of a JSON body which is coherent with the content-type we set.
@ruflin done |
@nomoa Merged. Thanks. |
Had the same problem with:
Updating |
The 5.3 release went out yesterday which should include this bugfix. |
qubot
pushed a commit
to artefactual/atom
that referenced
this pull request
Sep 29, 2017
Updates Elastica and elasticsearch-php to v5.3.0 to fix issue with scroll API. Issue detailed here: ruflin/Elastica#1325
qubot
pushed a commit
to artefactual/atom
that referenced
this pull request
Sep 29, 2017
Updates Elastica and elasticsearch-php to v5.3.0 to fix issue with scroll API. Issue detailed here: ruflin/Elastica#1325
qubot
pushed a commit
to artefactual/atom
that referenced
this pull request
Oct 13, 2017
Updates Elastica and elasticsearch-php to v5.3.0 to fix issue with scroll API. Issue detailed here: ruflin/Elastica#1325
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It's likely to cause issues with elastic 5.3 as Content-Type handling becomes
more and more strict.
eg.:
curl -H"Content-Type: application/json" -XGET localhost:9200/_search/scroll?scroll=1m -d 'DXF...'
now fails with Failed to parse request body on 5.3.x.
Elastic 5.1 was lenient and accepted this body and content-type.
Since we default Content-Type to application/json this is likely cause issues
in Elastica as well.
Using an array instead of plain string should force the use of a JSON body which is coherent
with the content-type we set.