[ http://issues.apache.org/jira/browse/DIRSERVER-772?page=all ]

Emmanuel Lecharny reassigned DIRSERVER-772:
-------------------------------------------

    Assignee: Emmanuel Lecharny

> 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

        

Reply via email to