Return-Path: X-Original-To: apmail-shiro-dev-archive@www.apache.org Delivered-To: apmail-shiro-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9610910B75 for ; Sun, 26 Jan 2014 18:33:39 +0000 (UTC) Received: (qmail 14685 invoked by uid 500); 26 Jan 2014 18:33:38 -0000 Delivered-To: apmail-shiro-dev-archive@shiro.apache.org Received: (qmail 14575 invoked by uid 500); 26 Jan 2014 18:33:38 -0000 Mailing-List: contact dev-help@shiro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@shiro.apache.org Delivered-To: mailing list dev@shiro.apache.org Received: (qmail 14567 invoked by uid 99); 26 Jan 2014 18:33:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jan 2014 18:33:37 +0000 Date: Sun, 26 Jan 2014 18:33:37 +0000 (UTC) From: =?utf-8?Q?Salih_ER=C4=B0KC=C4=B0_=28JIRA=29?= To: dev@shiro.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (SHIRO-483) PasswordMatch returns false with right plain password-encrypted password in tr_TR locale MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Salih ER=C4=B0KC=C4=B0 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=C4=B0KC=C4=B0 Fix For: 1.2.3 public static void main(String[] args) { PasswordService psd =3D new DefaultPasswordService(); String password =3D "333"; String enc =3D psd.encryptPassword(password); System.out.print(psd.passwordsMatch(password, enc)); =20 } The above code outputs "false" on JVM which has default locale tr_TR, the f= ollowing outputs "true" public static void main(String[] args) {=20 PasswordService psd =3D new DefaultPasswordService();=20 String password =3D "333";=20 String enc =3D psd.encryptPassword(password);=20 Locale.setDefault(Locale.ENGLISH);=20 System.out.print(psd.passwordsMatch(password, enc));=20 =20 }=20 -- This message was sent by Atlassian JIRA (v6.1.5#6160)