[GLASSFISH-19037] Invalid characters can be entered for Name in New Admin Object Resource screen Created: 27/Aug/12  Updated: 04/Jun/14

Status: Open
Project: glassfish
Component/s: jms
Affects Version/s: 4.0_b45
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: tak09 Assignee: David Zhao
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


Attachments: PNG File New Admin Object Resource.png    
Tags: 4_0_1-reviewed


In the New Admin Object Resource screen, an invalid characters can be entered for name property.

To reproduce the issue:
1. From the GUI, open Resources > Connectors > Admin Object Resources.
2. Then, click New to open the 'New Admin Object Resource'.
3. Enter an invalid character in the Name property. For example !abc. Please see the screenshot.
4. When you click OK, it is created with the invalid property name.

According to the imqcmd manual, the valid characters for the physical destination name are as follows:

"The destination name destName may contain only alphanumeric characters (no spaces) and must begin with an alphabetic character or the underscore (_) or dollar sign ($) character. It may not begin with the characters mq."


Please see the related issue GLASSFISH-19033 as well.

Comment by David Zhao [ 09/Jul/13 ]

Forward it to connector team for further investigation about the create-admin-object command issue.

Comment by Jagadish [ 18/Apr/14 ]

I think JMS RA need to validate the value of the property being set.
eg: the method "setName" in the use-case stated must do validation and throw exception in case the value is not valid.
(You can do validation in the setName or use bean validation). Transferring to JMS team for the fix.

Generated at Sun Mar 01 21:31:41 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.