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, Security | Assignee: | Darran Lofthouse <darran.lofthouse> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kremensky <pkremens> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 6.0.0 | CC: | 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: | |||
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. 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) 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. 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. |
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}