Bug 1101052 - <security-settings> sets the roles attribute wrong using spaces instead of , when using the admin console
Summary: <security-settings> sets the roles attribute wrong using spaces instead of , ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: ConfigAdmin, HornetQ
Version: 6.2.0
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ER9
: EAP 6.3.0
Assignee: Jeff Mesnil
QA Contact: Miroslav Novak
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-26 01:46 UTC by Peter Larsen
Modified: 2015-03-02 14:58 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-07-07 07:02:11 UTC
Type: Bug
Embargoed:
thomas.diesler: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-5808 0 Minor Resolved Support comma delimiter for security roles in messaging subsystem 2014-07-09 18:36:56 UTC

Description Peter Larsen 2014-05-26 01:46:29 UTC
Description of problem:

When using the admin console to create HornetQ Security Settings, the roles are added with space separators instead of comma (,). 

Version-Release number of selected component (if applicable):

6.2.0

How reproducible:

Every time.

Steps to Reproduce:
Use quickstart "deltaspike-helloworld-jms" and add a user quickstartUser + the queues as described in the README.md. In the console, under the Messaging Destination, create security settings for the quickstartUser to allow for Producer and Consumer. Once saved, check that the standalone-full.xml contains the <security-settings> section but instead of , in the role list there are spaces (the guest user is already added to the producer/consumer privileges).  

The demo will fail with missing CONSUMER privileges. 

Stop the server, replace the spaces with , and restart the server. Now the demo works.

Actual results:

Demo fails.

Expected results:

Demo should run.

Additional info:

Comment 1 Miroslav Novak 2014-07-07 07:02:11 UTC
I did a review of this bz for EAP 6.3.0.ER9 and it works with both - , and spaces. 

I'll close this bz. Feel free to re-open in case I misuderstood something here.

Comment 2 Peter Larsen 2014-07-07 16:42:44 UTC
On 6.2 spaces cannot be used a separators. If that's changed in 6.3 I presume the issue is resolved there. That just leaves current production users without a fix?

Comment 4 Jeff Mesnil 2014-07-08 07:11:02 UTC
Bug was fixed in upstream in AS7-5808.

Note that using spaces is the correct way to delimit a list in AS7/WildFly XML configuration. In that particular case, we also support commas to be compatible with HornetQ own XML configuration schema


Note You need to log in before you can comment on or make changes to this bug.