Bug 1072364

Summary: [QE] (6.2.2) Wrong error message from add-user utility
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Scripts and CommandsAssignee: Chao Wang <chaowan>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.2CC: cdewolf, chaowan, fnasser, myarboro, nsriniva, pgier
Target Milestone: CR2   
Target Release: EAP 6.2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1062592 Environment:
Last Closed: 2014-06-09 12:48:23 UTC 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:
Bug Depends On: 1062592    
Bug Blocks: 1067532    

Description Petr Kremensky 2014-03-04 13:10:15 UTC
+++ This bug was initially created as a clone of Bug #1062592 +++

Description of problem:
 add-user utility is returning wrong error message for password without alphabetic character. Also password requirements noted in documentation are wrong:
- It can not be the same as the user name.
- It must contain at least 8 characters.
- *It must contain at least one alphanumeric character.*
- It must contain at least one digit.
- It must contain at least one non-alphanumeric symbol

Version-Release number of selected component (if applicable):
 EAP 6.2.0

How reproducible:
 Always

Steps to Reproduce:
 1. Navigate to $EAP_HOME/bin folder
 2. run: add-user.[sh|bat] admin 22222222

Actual results:
 * Error * 
JBAS015268: Password must have at least one alphanumeric character.

Expected results:
JBASxxxxxx: Password must have at least one alphabetic character.

Additional info:
 We have to fix also documentation [1] (see password description) and installer (which is now accepting password without any alphabetic character)

[1] - http://documentation-devel.engineering.redhat.com/site/documentation/en-US/JBoss_Enterprise_Application_Platform/6.3/html-single/Administration_and_Configuration_Guide/index.html#Add-user_Command_Arguments

Comment 1 Permaine Cheung 2014-03-04 19:43:48 UTC
Darran, please sumbit the fix for 1062592 to 6.2.x when you have it ready. Thanks!

Comment 4 Petr Kremensky 2014-05-09 06:59:10 UTC
Verified on EAP 6.2.3.CR2.