shiro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Salih ERİKCİ (JIRA) <j...@apache.org>
Subject [jira] [Created] (SHIRO-483) PasswordMatch returns false with right plain password-encrypted password in tr_TR locale
Date Sun, 26 Jan 2014 18:33:37 GMT
Salih ERİKCİ created SHIRO-483:
----------------------------------

             Summary: PasswordMatch returns false with right plain password-encrypted password
in tr_TR locale
                 Key: SHIRO-483
                 URL: https://issues.apache.org/jira/browse/SHIRO-483
             Project: Shiro
          Issue Type: Bug
          Components: Authentication (log-in)
    Affects Versions: 1.2.2
         Environment: JVM Locale tr_TR
            Reporter: Salih ERİKCİ
             Fix For: 1.2.3


    public static void main(String[] args) {
        PasswordService psd = new DefaultPasswordService();
        String password = "333";
        String enc = psd.encryptPassword(password);
        System.out.print(psd.passwordsMatch(password, enc));
        
    }

The above code outputs "false" on JVM which has default locale tr_TR, the following outputs
"true"
    public static void main(String[] args) { 
        PasswordService psd = new DefaultPasswordService(); 
        String password = "333"; 
        String enc = psd.encryptPassword(password); 
        Locale.setDefault(Locale.ENGLISH); 
        System.out.print(psd.passwordsMatch(password, enc)); 
        
    } 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message