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

Sebb commented on COMPRESS-351:
-------------------------------

Note that names don't have to consist of printable characters. 
AFAIK Unix allows anything except '/' and null.

So Compress must allow such names to be processed.

The most that it can do is to sanitize the IOE message.
But I'm not sure that's the best approach, because it will lose information 
that the app may need.

An alternative approach would be to change the Javadoc to note that the IOE may 
contain unprintable characters and let the application sanitize it.

> Defective .zip-archive produces problematic error message
> ---------------------------------------------------------
>
>                 Key: COMPRESS-351
>                 URL: https://issues.apache.org/jira/browse/COMPRESS-351
>             Project: Commons Compress
>          Issue Type: Bug
>          Components: Archivers
>    Affects Versions: 1.11
>         Environment: Production
>            Reporter: Sven Kustos
>         Attachments: DefectiveZipFileCausingBeeps.ZIP
>
>
> A truncated .zip-File produces an java.io.EOFException conatining a hughe 
> amount of byte[]-data in the error-message - leading to beeps and crippeling 
> workload in an potential console-logger.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to