[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-1693) Upload Archive throws exception if zip file entries contain special characters in filename

Sohil Shah (JIRA) jira-events at lists.jboss.org
Thu Sep 13 18:25:11 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBPORTAL-1693?page=comments#action_12376775 ] 
            
Sohil Shah commented on JBPORTAL-1693:
--------------------------------------

This issue is because of a bug in JDK that has not been addressed for about 8 years now. Here is a pretty funny bug report ;)

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4244499

Problem is associated with native zip implementations creating file names in UTF-16 (foreign characters), but when the JDK Zip classes process this zip file, it only has provision to process the file names in UTF-8 resulting in null inputstreams of the
Zip entries.

Cleanest fix is to dump the use of JDK classes and use something like apache ant's tools.

I have tested the apache fix locally and seems to be working. More testing is necessary though

> Upload Archive throws exception if zip file entries contain special characters in filename
> ------------------------------------------------------------------------------------------
>
>                 Key: JBPORTAL-1693
>                 URL: http://jira.jboss.com/jira/browse/JBPORTAL-1693
>             Project: JBoss Portal
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Portal CMS
>    Affects Versions: 2.6.1 Final
>            Reporter: Martin Putz
>         Assigned To: Sohil Shah
>         Attachments: prueba.zip
>
>
> When upload some zipped file to CMS with special characters, eg. filename = 'camión.txt', CMS throws an error.
> When I upload these files one by one as single file (non zipped) it works fine. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       




More information about the jboss-jira mailing list