After upgrading to tika 3.2.0, I started seeing the following
exception when attempting to detect the mime type for a given file,
I'm wondering if something in the way input streams are handled has
changed, or if this might be a regression?

Caused by: java.io.IOException: Resetting to invalid mark
at 
java.base@21.0.7/java.io.BufferedInputStream.implReset(BufferedInputStream.java:583)
at 
java.base@21.0.7/java.io.BufferedInputStream.reset(BufferedInputStream.java:569)
at app//org.apache.tika.io.BoundedInputStream.reset(BoundedInputStream.java:115)
at 
app//org.apache.tika.detect.zip.DefaultZipContainerDetector.detectStreaming(DefaultZipContainerDetector.java:279)
at 
app//org.apache.tika.detect.zip.DefaultZipContainerDetector.detect(DefaultZipContainerDetector.java:192)
at 
app//org.apache.tika.detect.CompositeDetector.detect(CompositeDetector.java:84)
at app//org.apache.tika.Tika.detect(Tika.java:160)
at app//org.apache.tika.Tika.detect(Tika.java:185)

Reply via email to