]
Brian Stansberry moved WFLY-9133 to WFCORE-3114:
------------------------------------------------
Project: WildFly Core (was: WildFly)
Key: WFCORE-3114 (was: WFLY-9133)
Component/s: Scripts
Security
(was: ConfigAdmin)
Affects Version/s: 2.2.1.Final
(was: 10.1.0.Final)
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: Thomas Diesler
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.