[gatein-issues] [JBoss JIRA] (GTNPC-78) Text encoding is lost in serveResources

Matt Wringe (JIRA) jira-events at lists.jboss.org
Fri Feb 3 18:19:48 EST 2012


     [ https://issues.jboss.org/browse/GTNPC-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Wringe resolved GTNPC-78.
------------------------------

    Resolution: Done


Issue has been resolved for serveResources
                
> Text encoding is lost in serveResources 
> ----------------------------------------
>
>                 Key: GTNPC-78
>                 URL: https://issues.jboss.org/browse/GTNPC-78
>             Project: GateIn Portlet Container
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.2.0-GA
>            Reporter: Martin Weiler
>             Fix For: 2.2.1-GA
>
>         Attachments: serveresourcestest.zip
>
>
> When a resource is served the content type (mime type) is checked. If the mime type starts with "text" (org.exoplatform.portal.webui.application.UIPortletActionListener line 440-444) a new String is created (org.gatein.pc.api.invocation.response.ContentResponse line 127)
> If a file was uploaded with a different encoding than the current file encoding this makes the String unreadable. ContentResponse.getContent() creates a new String using the String(byte[]) constructor. In this case the file encoding used on the server is used. This might be a different encoding (e.g. UTF-8) causing the text to be scrambled.

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

        


More information about the gatein-issues mailing list