|<< Back to previous view|
[GLASSFISH-19352] An empty string ("") can be set for clientID Created: 16/Nov/12 Updated: 01/Jul/13 Resolved: 01/Jul/13
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
Glassfish v4.0 b45
|File Attachments:||clientid.png setClientID.zip|
|Participants:||David Zhao and tak09|
An empty string ("") can be used when setting a clientID using GUI or setClientID() method.
1. Set ("") in the Resources > JMS Resources > Connection Factories > Connection Factory Name Additional Properties. If you click Save, it is saved successfully. (Bug) Please see the attachment file.
2. When "" is used for setting clientID, it is compiled and executed without an error. (Bug) See the attachment file for the use of setClientID("\"\"").
3. When asadmin is used for setting an empty string ("") in clientID, this operation fails. (Working as expected. Not a bug)
^ is an escape sequence character in MS-DOS.
|Comment by David Zhao [ 01/Jul/13 02:31 AM ]|
In the admin gui, the value is escaped by default. So if you input "" for ClientID property, then the value stored in domain.xml will be "" with no change. If you want to test empty string for the property, you should leave the value field blank and then click Save button, thus the property will not be saved, which is expected.