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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.2
    • 1.3.0
    • 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

            Unassigned Unassigned
            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