directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] Closed: (DIRSERVER-772) Credentials in server.xml is transformed to byte[] without using "UTF-8"
Date Sun, 05 Nov 2006 14:37:17 GMT
     [ http://issues.apache.org/jira/browse/DIRSERVER-772?page=all ]

Emmanuel Lecharny closed DIRSERVER-772.
---------------------------------------

    Resolution: Fixed

Fixed in 1.0-trunks (rev http://svn.apache.org/viewvc?view=rev&rev=471430), and in 1.1-trunks
(http://svn.apache.org/viewvc?view=rev&rev=471434)

> Credentials in server.xml is transformed to byte[] without using "UTF-8"
> ------------------------------------------------------------------------
>
>                 Key: DIRSERVER-772
>                 URL: http://issues.apache.org/jira/browse/DIRSERVER-772
>             Project: Directory ApacheDS
>          Issue Type: Bug
>            Reporter: Emmanuel Lecharny
>         Assigned To: Emmanuel Lecharny
>
> The credentials declared in the server.xml files are read as a byte array during the
server initialization. 
> However, if we don't change that in the next version, we must fix the conversion from
String to byte[], because the user's default encoding may be different from UTF-8, which is
the server.xml file's encoding. The piece of code that read the credential is :
> ...
>         Object value = env.get( Context.SECURITY_CREDENTIALS );
>         if ( value == null )
>         {
>             credential = null;
>         }
>         else if ( value instanceof String )
>         {
>             credential = ( ( String ) value ).getBytes();
>         }
> Here, we should have something like :
>             credential = ( ( String ) value ).getBytes( "UTF-8" );

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

        

Mime
View raw message