ZipArchiveOutputStream.addRawArchiveEntry() should check is2PhaseSource - #571
Conversation
This allow user to add manually compressed raw data to the zip file under unsupported compression method (e.g., XZ) or encrypt method
garydgregory
left a comment
There was a problem hiding this comment.
Hello @yujincheng08
Thank you for your PR.
This PR is missing tests.
Where is this feature documented?
|
Hi, @garydgregory, Test added. And this feature is already documented: According to the document, the |
|
@yujincheng08 |
113ea4e to
6a0b9db
Compare
|
@garydgregory Thank you. Fixed. |
|
Thank you for your work. Merged! |
### What changes were proposed in this pull request? This PR aims to upgrade `commons-compress` to 1.28.0 which is tested with **Java 24 and 25-ea** officially. ### Why are the changes needed? To bring the latest improvements and bug fixes. - https://commons.apache.org/proper/commons-compress/changes.html#a1.28.0 (2025-07-26) - [Java 24 and 25-ea](apache/commons-compress@6be46a4) - apache/commons-compress#571 - apache/commons-compress#624 - apache/commons-compress#649 - apache/commons-compress#663 - apache/commons-compress#655 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #51947 from dongjoon-hyun/SPARK-53222. Authored-by: Dongjoon Hyun <dongjoon@apache.org> Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
This allows users to add manually compressed raw data to the zip file under an unsupported compression method (e.g., XZ) or encrypt method.
Sample usage:
Previously these codes would throw an exception about the unsupported compression method.