You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2015/06/18 12:59:01 UTC

[jira] [Resolved] (OPENEJB-2116) Bad conversion of DataSource password containing special characters.

     [ https://issues.apache.org/jira/browse/OPENEJB-2116?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau resolved OPENEJB-2116.
-----------------------------------------
    Resolution: Fixed
      Assignee: Romain Manni-Bucau

> Bad conversion of DataSource password containing special characters.
> --------------------------------------------------------------------
>
>                 Key: OPENEJB-2116
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-2116
>             Project: OpenEJB
>          Issue Type: Bug
>          Components: configuration
>    Affects Versions: 4.7.2
>            Reporter: Bodo Pfelzer
>            Assignee: Romain Manni-Bucau
>            Priority: Minor
>
> In org.apache.openejb.assembler.classic.Assembler:
>                 final InputStream is = new ByteArrayInputStream(serviceInfo.properties.getProperty("Definition").getBytes());
>                 final Properties p = new SuperProperties();
>                 IO.readProperties(is, p);
> The string is first converted to a byte array in the default encoding (e.g. UTF-8) but IO.readProperties expects the stream in ISO 8859-1. So it would be wise to use getBytes("ISO-8859-1").
> As a workaround one may escape the special characters using \u....



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