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

Bug 1072367

Summary: [QE] (6.2.2) Add user utility should create properties file if it not exists
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Petr Kremensky <pkremens>
Component: Scripts and CommandsAssignee: Permaine Cheung <pcheung>
Status: CLOSED NOTABUG QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.2CC: darran.lofthouse, fnasser, pgier, sgilda
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1020151 Environment:
Last Closed: 2014-03-04 13:34:12 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: 1020151    
Bug Blocks:    

Description Petr Kremensky 2014-03-04 13:12:38 UTC
+++ This bug was initially created as a clone of Bug #1020151 +++

Description of problem:
 Add-user utility gives us the ability to specify properties files which should be used to store users. However error is thrown once user tries to use properties file that doesn't exist. If this is a desired behaviour we may explicitly mention this in add-user script help message.

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

How reproducible:
 always

Steps to Reproduce:
 1. Navigate into $EAP_HOME/bin folder
 2. Run: jboss-eap-6.2/bin]$ ./add-user.sh -u appuser1 -p password1! -up appusers.properties

Actual results:
 * Error * 
JBAS015234: No appusers.properties files found.

Expected results:
 Properties file is created. 

Additional info:
 If there is a good reason for not creating the properties file we should at least mention this in script help message and documentation (BZ872441).
Example 4.4. Create a user belonging to single group using alternate properties files to store the information.
http://documentation-devel.engineering.redhat.com/docs/en-US/JBoss_Enterprise_Application_Platform/6.2/html-single/Administration_and_Configuration_Guide/index.html#Add-user_Script_Command_Line_Examples

--- Additional comment from  on 2013-10-17 08:26:55 EDT ---

Please let me know if the plans are to fix this. As Petr said, if there are no plans to create the file if it doesn't exist, I need to document it.

--- Additional comment from Fernando Nasser on 2013-10-17 08:48:18 EDT ---

This is a change that has to be made upstream in Wildfly, then backported to the EAP AS 6.x.  It will automatically make it into the distribution.  We should try and not fork a change like this from the code base.

Jason, who can do this work?

--- Additional comment from  on 2013-10-24 08:25:11 EDT ---

Does anyone have an update on this issue? I need to know ASAP if I need to document this in the Administration and Configuration Guide (https://bugzilla.redhat.com/show_bug.cgi?id=872441).

--- Additional comment from Darran Lofthouse on 2013-10-24 08:49:55 EDT ---

No plans to look into this for EAP 6.2.

Better error messages may be appropriate in a future release but the intention of add-user is to be adding users to the property files already in use by the server i.e. we do expect them to exist.

Comment 1 Petr Kremensky 2014-03-04 13:34:12 UTC
Closing.

See bug 1020151, comment 5