Bug 1104730
Summary: | [GSS] add-user.sh exits with status code 0 when password complexity fails | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Andy Fraley <andrew.fraley> |
Component: | Scripts and Commands | Assignee: | Chao Wang <chaowan> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Petr Kremensky <pkremens> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.3.0 | CC: | andrew.fraley, cdewolf, chaowan, darran.lofthouse, fnasser, kkhan, myarboro, pgier, smatasar |
Target Milestone: | DR1 | ||
Target Release: | EAP 6.4.0 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
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
Andy Fraley
2014-06-04 14:46:35 UTC
IMHO, its not a bug. It works like that by design since we catch the PasswordValidationException which is threw from LengthRestriction, and generate a new ErrorState to print error message into terminal. Due to this, the exit status code is 0. The script fails to create the user, so IMO it should exit with an error status. For example, I'm trying to use this script as part of a Chef recipe that needs to create an admin account. Due to this behavior, I can't use the exit status of the script to determine if the account creation was successful. A good fix to add on a CPxx release, so I propose 6.3.1 (could not find flag) If this issue is going to become the issue for EAP 6.3.1 which issue is going to track EAP 6.4.0? Without an ACKed issue for EAP 6.4.0 I don't believe this can go into EAP 6.3.1 unless we are handling that one differently. Verified on EAP 6.4.0.DR1.1 fix requested for next EAP CP |