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

Send scroll_id in body for clearScroll #2211

Merged
merged 2 commits into from
Apr 23, 2024
Merged

Conversation

SosthenG
Copy link
Contributor

Sending the scroll_id in the url is deprecated since 7.0 and it's what elasticsearch-php clearScroll does when passing a "scroll_id" parameter. It should be passed in the body instead to prevent errors with big ids.

@ruflin
Copy link
Owner

ruflin commented Apr 22, 2024

Thanks for the contribution. Does this need any adjustements to the test suite?

@SosthenG
Copy link
Contributor Author

I don't think so, every scroll id passed in the url should work in the body, the opposite is not true however. The tests are already checking the number of active contexts after a scroll so it should be fine.

@ruflin ruflin merged commit 088b509 into ruflin:8.x Apr 23, 2024
17 checks passed
@ruflin
Copy link
Owner

ruflin commented Apr 23, 2024

@SosthenG Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants