[
https://issues.jboss.org/browse/AS7-3885?page=com.atlassian.jira.plugin.s...
]
Darran Lofthouse updated AS7-3885:
----------------------------------
Summary: add-user.sh doesn't correctly handle property files where final line
does not terminate with a new line (was: add-user.sh doesn't add role correctly for
new application user)
Description:
As an example when adding an application user with the add-user.sh script the role(s) are
not added correctly as they are added to the end of an existing (commented out line).
For example after adding user admin with roles admin
standalone/configuration/application-roles.properties contains:
{code}
...
#guest=guestadmin=admin
{code}
which results in the role not being available, this should obviously have been added to a
new line like so:
{code}
...
#guest=guest
admin=admin
{code}
was:
When adding an application user with the add-user.sh script the role(s) are not added
correctly as they are added to the end of an existing (commented out line).
For example after adding user admin with roles admin
standalone/configuration/application-roles.properties contains:
{code}
...
#guest=guestadmin=admin
{code}
which results in the role not being available, this should obviously have been added to a
new line like so:
{code}
...
#guest=guest
admin=admin
{code}
add-user.sh doesn't correctly handle property files where final
line does not terminate with a new line
-------------------------------------------------------------------------------------------------------
Key: AS7-3885
URL:
https://issues.jboss.org/browse/AS7-3885
Project: Application Server 7
Issue Type: Bug
Components: Domain Management, Security
Reporter: Stian Thorgersen
Assignee: Darran Lofthouse
Priority: Critical
Fix For: 7.1.1.Final
As an example when adding an application user with the add-user.sh script the role(s) are
not added correctly as they are added to the end of an existing (commented out line).
For example after adding user admin with roles admin
standalone/configuration/application-roles.properties contains:
{code}
...
#guest=guestadmin=admin
{code}
which results in the role not being available, this should obviously have been added to a
new line like so:
{code}
...
#guest=guest
admin=admin
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira