Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 901193 (JBPAPP6-1639)

Summary: add-user check is not i18n, while prompt is
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Carlo de Wolf <cdewolf>
Component: Scripts and Commands, SecurityAssignee: Darran Lofthouse <darran.lofthouse>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.0.0CC: brian.stansberry, cdewolf, kkhan, pkremens, tim.einmahl
Target Milestone: DR3   
Target Release: EAP 6.4.0   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBPAPP6-1639
Whiteboard: CLI
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The add-user utility in JBoss EAP 6 prompts users to confirm the action they are about to take based on the current locale. Where user input was being compared with the different translations, the user input was being converted to lower case whilst the translated value was not. This meant the add-user utility was not able to identify which option the user had selected due to the difference in case for comparison and was reporting an error to the user to tell them they had not selected a valid value. In this release both the user's input and the translated values being compared are converted to lower case before comparison. Internationalized responses are now correctly accepted for the confirmation dialogues within the add-user utility.
Story Points: ---
Clone Of: Environment:
Fedora 16
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Carlo de Wolf 2012-11-19 13:47:10 UTC
Workaround: Workaround Exists
Workaround Description: Use English

{noformat}
LANG=en_US.UTF-8 ./add-user.sh
{noformat}
project_key: JBPAPP6

{noformat}
Informationen des neu hinzuzufügenden Nutzers eingeben.
Bereich (ManagementRealm) : 
Benutzername (admin) : 
Passwort : 
Passwort erneut eingeben : 
Der Benutzername 'admin' ist leicht zu erraten
Sind Sie sicher, dass Sie Benutzer 'admin' hinzufügen möchten ja/nein? j

 * Fehler * 
JBAS015240: Invalid response. (Valid responses are yes, y, no and n)

{noformat}

Comment 2 Darran Lofthouse 2013-06-27 12:23:14 UTC
I will try and re-visit this one - I did think we had this covered but it is possible that if we do not have a full set of translations some of it is dropping back to English.

Comment 7 Petr Kremensky 2014-07-09 12:10:03 UTC
Still valid issue (EAP 6.3.0.ER9).

Der Benutzername 'admin' ist leicht zu erraten
Sind Sie sicher, dass Sie Benutzer 'admin' hinzufügen möchten ja/nein? ja

 * Fehler * 
JBAS015240: Ungültige Antwort. (Gültige Antworten sind  Ja, j, Nein and n)

Der Benutzername 'admin' ist leicht zu erraten
Sind Sie sicher, dass Sie Benutzer 'admin' hinzufügen möchten ja/nein? nein

 * Fehler * 
JBAS015240: Ungültige Antwort. (Gültige Antworten sind  Ja, j, Nein and n)

Comment 8 Darran Lofthouse 2014-09-24 16:20:08 UTC
Ok after debugging further this is an issue with the case conversion, the users input is converted to lower case but the translation values are not - ideally the translated values would be lower case but that makes this easily breakable so I will add a lower case conversion of the translated values before the check.

Comment 12 Kabir Khan 2014-09-26 12:05:48 UTC
https://github.com/jbossas/jboss-eap/pull/1713

Comment 13 Petr Kremensky 2014-10-02 09:40:58 UTC
Verified on EAP 6.4.0.DR3.

I found some minor issues in translations, I'll file a separate bz for this and link it here.