You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Felix Knecht (JIRA)" <se...@james.apache.org> on 2011/03/25 06:49:05 UTC
[jira] [Closed] (JAMES-1213) Don't compare references but values
[ https://issues.apache.org/jira/browse/JAMES-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Felix Knecht closed JAMES-1213.
-------------------------------
> Don't compare references but values
> -----------------------------------
>
> Key: JAMES-1213
> URL: https://issues.apache.org/jira/browse/JAMES-1213
> Project: JAMES Server
> Issue Type: Bug
> Components: UsersStore & UsersRepository
> Affects Versions: 3.0-M3
> Environment: All
> Reporter: Felix Knecht
> Assignee: Felix Knecht
> Fix For: 3.0-M3
>
>
> JCRUser compares references instead of values for a String property:
> public boolean verifyPassword(String pass) {
> final boolean result;
> if (pass == null) {
> result = false;
> } else {
> result = hashedSaltedPassword == hashPassword(userName, pass);
> }
> return result;
> }
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org