[jira] Created: (COMPRESS-93) Support for alternative ZIP compression methods

classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
Support for alternative ZIP compression methods
-----------------------------------------------

                 Key: COMPRESS-93
                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
             Project: Commons Compress
          Issue Type: New Feature
            Reporter: Jukka Zitting


As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.

It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789924#action_12789924 ]

Jukka Zitting commented on COMPRESS-93:
---------------------------------------

In revision 890088 I made the code degrade more gracefully by only throwing an IOException with a more descriptive message when such an unsupported zip entry is actually being read or written. I also added a ZipArchiveEntry.isSupportedCompressionMethod() method that downstream clients can use to explicitly skip such entries and thus avoid the exception.

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835632#action_12835632 ]

Stefan Bodewig commented on COMPRESS-93:
----------------------------------------

Jukka, I'd rather move the isSupportedCompressionMethod method to the streams and ZipFile since it is really their job to read/write the data.  Since I don't know whether you've already made any adjustments in Tika I don't want to go ahead and change it right away.

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835697#action_12835697 ]

Stefan Bodewig commented on COMPRESS-93:
----------------------------------------

As a side effect COMPRESS-89 the stream and ZipFile classes now have canRead/Write methods that not only look at the compression algorithm but also reject encrypted entries.

WRT "alternative compression methods" - at least BZIP2 should be doable but I don't know how to create an archive that uses it (so I can test an implementation).  LZMA compression would be interesting on its own anyway.

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835708#action_12835708 ]

Jukka Zitting commented on COMPRESS-93:
---------------------------------------

I'll only update Tika once we have a new release of Commons Compress, so it's OK to adjust the implementation.

The canRead() method is also good (I like how it also covers encryption), and I can easily adjust the TIKA-346 patch to use it instead. I guess it would be good to remove the isSupportedCompressionMethod() method now to avoid polluting the public API with multiple methods for pretty much the same purpose.

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835720#action_12835720 ]

Stefan Bodewig commented on COMPRESS-93:
----------------------------------------

Sounds good, will be done in a minute (or five 8-)


> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835724#action_12835724 ]

Stefan Bodewig commented on COMPRESS-93:
----------------------------------------

svn revision 911795

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835726#action_12835726 ]

Jukka Zitting commented on COMPRESS-93:
---------------------------------------

Brilliant, thanks!

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841698#action_12841698 ]

Trejkaz commented on COMPRESS-93:
---------------------------------

What might be nice is an API for plugging in alternative compressors / decompressors.  That way when one is missing it can be dropped in without waiting for Commons Compress itself to add it.  This would be handy for projects like ours where a large number of alternative compressors are already available, although not necessarily possible to contribute. :-/


> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841887#action_12841887 ]

Torsten Curdt commented on COMPRESS-93:
---------------------------------------

From the javadocs:

"To add other implementations you should extend CompressorStreamFactory and override the appropriate methods (and call their implementation from super of course)."

So unless I am missing something that is possible today. Just use your own factory and either extends or delegate to the original factory.

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841893#action_12841893 ]

Stefan Bodewig commented on COMPRESS-93:
----------------------------------------

Torsten, we are talking about compressors used to compress individual entries inside a ZIP archive - CompressorStreamFactory doesn't apply here 8-)


> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841906#action_12841906 ]

Torsten Curdt commented on COMPRESS-93:
---------------------------------------

Sorry for not being clear. I just wanted to point out - there is no need to wait for Compress. Change the ZIP implementation by moving it into your namespace and add the zip compressor method variation to the code. Then send a patch and wait :)

IMO adding a plugging API for just the ZIP compressor methods is a little too much over-engineering. Questions to ask: How many users will potentially have their own zip compression method ...and why would they?

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842087#action_12842087 ]

Trejkaz commented on COMPRESS-93:
---------------------------------

> Then send a patch and wait

This part of the suggested workflow is unlikely to happen when the code is written under employ of a company.

> IMO adding a plugging API for just the ZIP compressor methods is a little too much over-engineering.

I don't think so.  For one thing, if Sun had added such an API to ZipFile from the start, we wouldn't need all these alternative ZIP implementations like Commons Compress'.

> and why would they?

Because not all historical ZIP files use DEFLATE.  We had to make our own implode algorithm from scratch for other purposes so we already have the code to decompress EXPLODE.  But even though we have this, we can't plug it into Commons Compress or Java's ZipFile without forking the code of either of them.


> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842226#action_12842226 ]

Torsten Curdt commented on COMPRESS-93:
---------------------------------------

> This part of the suggested workflow is unlikely to happen when the code is written under employ of a company.

Then the price of the fork (of just this one class) is the price the company has to pay for not releasing it to the wild. I am not keen on adding this complexity just because some company wants to keep it's proprietary implementation easier for itself. Maintaining a fork should be simple enough.

> if Sun had added such an API to ZipFile from the start, we wouldn't need all these alternative ZIP implementations like Commons Compress

Compress supports more than just ZIP ...unless with "we" you mean your company.

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842496#action_12842496 ]

Trejkaz commented on COMPRESS-93:
---------------------------------

No, by "we", I meant the entire community.  And when I said "ZIP implementations", I wasn't referring to all the other compression/archive formats, just the ZIP implementation.


> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842640#action_12842640 ]

Stefan Bodewig commented on COMPRESS-93:
----------------------------------------

I'm not sure I like having discussions in JIRA rather than a mailing list ...  Anyway.

Another reason may be that the compression - or encryption - method is patent encumbered or its implementation comes with a license commons compress wouldn't want to use.

Treykaz: IIUC you'd just need a few convenient protected methods you could override and wouldn't really require a plugin or factory API.  This may be doable without too much added complexity.

WRT why the ZIP packages exist.  I know why I've started the one for Ant (which is the grandfather of commons-compress' zip package) and no, it wouldn't have helped.  The Sun implementation is lacking important features of the ZIP "protocol", which is OK if you view it as limited to the JAR use-case.  The original driver was that I needed access to the "external attributes" - which you can't even read in java.util.ZipEntry - in order to store Unix permissions the same way InfoZIP's implementation does.

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12843012#action_12843012 ]

Stefan Bodewig commented on COMPRESS-93:
----------------------------------------

while looking through COMPRESS-98 I realized the current code base isn't really subclass friendly and likely shouldn't be, so scratch my last comment.


> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877068#action_12877068 ]

Emmanuel Bourg commented on COMPRESS-93:
----------------------------------------

I'm highly interested in a pure Java implementation of the explode method (6). Do you think you could share your code Trejkaz ?


> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877082#action_12877082 ]

Trejkaz commented on COMPRESS-93:
---------------------------------

If I could, it would already be in a patch on here ready for integration.


> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (COMPRESS-93) Support for alternative ZIP compression methods

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

    [ https://issues.apache.org/jira/browse/COMPRESS-93?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877129#action_12877129 ]

Emmanuel Bourg commented on COMPRESS-93:
----------------------------------------

Well I'm back to playing with LZ77 and Shannon-Fano trees then ;)

Regarding the other compression methods, BZIP2 should be really easy to add (method 12). It's possible to create such an archive with the 7zip File Manager on Windows.

> Support for alternative ZIP compression methods
> -----------------------------------------------
>
>                 Key: COMPRESS-93
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-93
>             Project: Commons Compress
>          Issue Type: New Feature
>            Reporter: Jukka Zitting
>
> As reported in TIKA-346, a ZIP file that uses a compression method other than STORED (0) or DEFLATED (8) will cause an IllegalArgumentException ("invalid compression method") to be thrown.
> It would be great if commons-compress supported alternative compression methods or at least degraded more gracefully when encountering them.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

12