Bug 901193 (JBPAPP6-1639) - add-user check is not i18n, while prompt is
Summary: add-user check is not i18n, while prompt is
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: JBPAPP6-1639
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Scripts and Commands, Security
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: DR3
: EAP 6.4.0
Assignee: Darran Lofthouse
QA Contact: Petr Kremensky
URL: http://jira.jboss.org/jira/browse/JBP...
Whiteboard: CLI
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-19 13:47 UTC by Carlo de Wolf
Modified: 2019-08-19 12:42 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Fedora 16
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1148775 0 unspecified CLOSED Wrong short form translations for add-user tool 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker JBPAPP6-1639 0 Major Closed add-user check is not i18n, while prompt is 2014-09-09 10:53:56 UTC
Red Hat Issue Tracker WFCORE-124 0 Major Coding In Progress The yes/no checking in add-user converts the users input to lower case but not the translated values. 2014-09-24 16:26:53 UTC

Internal Links: 1148775

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.


Note You need to log in before you can comment on or make changes to this bug.