Description of problem: User in java:global/zanata/security/admin-users in standalone.xml does not become admin after first login. Version-Release number of selected component (if applicable): Zanata version 3.0.0-alpha-2-SNAPSHOT (20130730-0037) How reproducible: Always Steps to Reproduce: 1. service jbossas stop 2. In standalone.xml, search "<subsystem xmlns="urn:jboss:domain:naming:1.3">" Add the user "adm" in to the value of java:global/zanata/security/admin-users. i.e. <simple name="java:global/zanata/security/admin-users" value="adm"/> 3. service jbossas start 4. Register user adm 5. Activate the user adm by enabling it from database: UPDATE HAccount SET enabled = true WHERE username = 'adm' 6. Sign in as adm. Actual results: adm does not have admin role. Expected results: adm has admin role. Additional info:
This was a bug introduced with the JNDI configuration, which was preventing the admin users' config value from being read. See: https://github.com/zanata/zanata-server/commit/6746118767a7e277965af791072952ccf1a25fd8 https://github.com/zanata/zanata-server/commit/2560140fc3544b639753b6ab37b3abbdbab6af1f https://github.com/zanata/zanata-server/commit/b69a52a1d117162b4d574a1e92f14db6c511a479
VERIFIED with Zanata version 3.0.0-alpha-2-SNAPSHOT (20130812-0932)
Closing VERIFIED bugs for Zanata versions <= 3.1.