Repository navigation
fix: migrate Tika 4 detection with large-stream compatibility - #24
Merged
Merged
Conversation
…wandl-tika4-compat
This was referenced Nov 17, 2026
This file contains hidden or 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
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.
Promotes the Tika 4 parser POM migration and MIME regressions from draft #22 through the required feature → test → main flow. The feature is rebased by merge onto current main, which already contains the recent dependency updates.
The previous draft introduced an arbitrary 1 MiB failure for markable InputStreams. This branch keeps full MIME detection for larger streams and retains caller ownership. New tests cover a >1 MiB PDF stream and a >1 MiB JAR whose manifest is near the end; both pass. ByteArrayInputStream and smaller markable streams retain position restoration; larger generic streams may advance, consistent with the earlier API behavior.
JDK 17
mvn clean verify: 122 tests, 0 failures/errors/skips, build success. The existing JaCoCo rule remains advisory (haltOnFailure=false) and reports about 82% against its 90% target. No coverage gate was weakened. Git diff check passed. This PR is the exact candidate for test validation.