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
jsoup 1.15.2 breaks short-reading InputStream #1807
Comments
Arg, sorry about that! Will take a look. Could you share your chunked InputStream impl? Or point to a work-alike if you know of one? It will help ensure a reliable fix here. |
Maybe we could add a random-size chunk generating stream as the test case here. |
Unfortunately, our impl is proprietary, but the JDK
|
Got the same error in JabRef , we create a ProgressInputStream from an HttpConnection: You can test: org.jabref/org.jabref.logic.importer.fileformat.ACMPortalParser.parseDoiSearchPage(ACMPortalParser.java:79)
This ProgressInputStream is then passed to Jsoup:
|
This comment was marked as off-topic.
This comment was marked as off-topic.
Thanks, fixed |
We have an
InputStream
implementation that internally chunks data, soread
sometimes returns less than the requested length. The changes in #1774 (commit ccbd65f) no longer limit the overall amount across multiple calls toread
, soJsoup.parse
fails.This following test passes with 1.15.1:
...but it fails with 1.15.2:
The text was updated successfully, but these errors were encountered: