nvv / Far-On-Droid

Far clone for Android devices
22 stars 8 forks source link

Error while opening encrypted 7zip archives #9

Open DocSniper opened 7 years ago

DocSniper commented 7 years ago

When I try to open an encrypted 7zip archive I get "error while opening archive" after entering the password and I can't see the archive content.

Logcat only shows this:

09-17 12:19:22.279 W/System.err(23809): at com.openfarmanager.android.fragments.a$a.run(SourceFile:330)

VRDate commented 6 years ago

12 Versions repositories upgrade

org.apache.commons commons-compress upgraded from 1.9 to 1.16.1 7z can read most compressed and encrypted archives but only write unencrypted ones. LZMA(2) support in 7z requires XZ for Java as well. https://commons.apache.org/proper/commons-compress/ Added XZ for Java compile 'org.tukaani:xz:1.8' This aims to be a complete implementation of XZ data compression in pure Java. Single-threaded streamed compression and decompression and random access decompression have been fully implemented. Threading is planned but it is unknown when it will be implemented. For 7 zip support https://commons.apache.org/proper/commons-compress/limitations.html the format requires the otherwise optional XZ for Java library. only Files are supported as input/output, not streams. Starting with Compress 1.13 SeekableByteChannel is supported as well. In Compress 1.7 ArchiveStreamFactory will not auto-detect 7z archives, starting with 1.8 it will throw a StreamingNotSupportedException when reading from a 7z archive. Encryption, solid compression and header compression and are only supported when reading archives Commons Compress 1.12 and earlier didn't support writing LZMA. Several of the "methods" supported by 7z are not implemented in Compress. No support for multi-volume archives Support for some BCJ filters and the DELTA filter has been added with Compress 1.8. Because of a known bug in version 1.4 of the XZ for Java library, archives using BCJ filters will cause an AssertionError when read. If you need support for BCJ filters you must use XZ for Java 1.5 or later.

DocSniper commented 6 years ago

Thank you. I hope the author includes your changes and releases a new version soon. :-)

VRDate commented 6 years ago

@sniperle There is a pull request #12 yet it was not merged