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

The compatibility issue with TarArchiveOutputStream #1416

Closed
PavelDolbik opened this issue Feb 1, 2024 · 0 comments
Closed

The compatibility issue with TarArchiveOutputStream #1416

PavelDolbik opened this issue Feb 1, 2024 · 0 comments

Comments

@PavelDolbik
Copy link

I am using the Apache Compress library v1.25.0 to put data in a tar-archive. This solution works perfectly with the File, but attempting to migrate to the Path leads to an error in JUnit testing:

Caused by: java.io.IOException: Request to write '28' bytes exceeds size in header of '0' bytes for entry '0.txt'
at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.write(TarArchiveOutputStream.java:714)
at okio.OutputStreamSink.write(JvmOkio.kt:56)
at okio.RealBufferedSink.flush(RealBufferedSink.kt:268)

Please look at the attachment for an example with errors.
PackagesSample.zip

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

No branches or pull requests

1 participant