incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon MacDonald (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-210) Fileupload is broken for multibyte filename
Date Wed, 08 Feb 2012 19:09:01 GMT

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

Simon MacDonald commented on CB-210:
------------------------------------

Yeah, he had a fix. Now that he's signed the CLA I will put it in.
                
> Fileupload is broken for multibyte filename
> -------------------------------------------
>
>                 Key: CB-210
>                 URL: https://issues.apache.org/jira/browse/CB-210
>             Project: Apache Callback
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 1.3.0
>            Reporter: Takashi Okamoto
>            Assignee: Simon MacDonald
>
> File name is broken hen file name include multibyte character.
> As far as I check the code,
> FileTransfer.java may have problem.
> dos.writeBytes("Content-Disposition: form-data; name=\"" + fileKey + "\";" + " filename=\""
+ fileName + "\"" + LINE_END);
>   
> It must new String(filename.getBytes("UTF-8"), "ISO-8859-1") and it works fine.
> regards,
> Takashi Okamoto

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message