]
Brian Stansberry reassigned WFCORE-3114:
----------------------------------------
Assignee: Tomaz Cerar (was: Thomas Diesler)
Wildfly 10.1.0 add-user command
--------------------------------
Key: WFCORE-3114
URL:
https://issues.jboss.org/browse/WFCORE-3114
Project: WildFly Core
Issue Type: Bug
Components: Scripts, Security
Affects Versions: 2.2.1.Final
Environment: Windows 10 64 bit
Wildfly 10.1.0
Reporter: Bobby Bassman
Assignee: Tomaz Cerar
If Wildfly 10 does not initially have the 'admin' user. It must be created using
the 'add-user' command line. When the command ('add-user') is used,
without any warning, it may update the property files belonging to a different Jboss
installation, rendering that installation broken.
This is because 'add-user' relies on environment variable 'JBOSS_HOME' -
which may be set to a JBoss installation other than the Wildfly installation to which the
'add-user' command applies.
It appears that 'add-user.bat' has some code to detect this scenario, but it
didn't work.