https://issues.apache.org/bugzilla/show_bug.cgi?id=49109

           Summary: RealmBase.authenticate uses toString on byte array
           Product: Tomcat 7
           Version: trunk
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: s...@apache.org


catalina.realm.RealmBase.authenticate(String username, byte[] credentials)
has the following code:

return (authenticate(username, credentials.toString()));

This looks wrong, as credentials is a byte array.

It should probably be:

return (authenticate(username, new String(credentials[,charset])));

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to