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

SOLR-14457: Fix closing of malformed GZIPInputStream #283

Merged
merged 7 commits into from Sep 3, 2021

Conversation

HoustonPutman
Copy link
Contributor

https://issues.apache.org/jira/browse/SOLR-14457

Cleaned up the way that GZIPInputStream objects are created, since I think the current manner doesn't work when GzipDecompressingEntity.getContent() is called multiple times after having read parts of the data.

I plan on adding a test before committing.

@HoustonPutman HoustonPutman merged commit 42b2ff5 into apache:main Sep 3, 2021
@HoustonPutman HoustonPutman deleted the gzip-input-stream branch September 3, 2021 18:11
@samuelgmartinez
Copy link
Contributor

Sorry for joining late to the PR but I think that removing the interceptor entirely would be a better solution. The current HTTP Client version handles the compression itself when the right headers are present in the response, handling also the errors properly.

What do you think if I open a new improvement issue to remove that piece of code completely? (less code to maintain 😀)

@HoustonPutman
Copy link
Contributor Author

@samuelgmartinez , Thanks for the input! I think that would be great to go as a new improvement ticket, and we will probably shoot for 9.0 (not 8.x) if we decide to go that direction.

epugh pushed a commit to epugh/solr that referenced this pull request Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants