Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-483

passwordsMatch() returns false with right plain password-encrypted password in JVM with default locale tr_TR

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.3.0
    • Labels:
    • Environment:
      JVM Locale tr_TR

      Description

      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)); }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              salihrkc Salih ERİKCİ
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified