glassfish
  1. glassfish
  2. GLASSFISH-19352

An empty string ("") can be set for clientID

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Invalid
    • Affects Version/s: 4.0_b45
    • Fix Version/s: 4.0_b89_RC5
    • Component/s: jms
    • Labels:
      None
    • Environment:

      Glassfish v4.0 b45
      Windows 7

      Description

      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)

      C:\GFFeedback\3043ClientID\TP\setClientID\run>C:\glassfish\glassfish-4.0-b45\glassfish3\glassfish\bi
      n\asadmin create-jms-resource --restype javax.jms.ConnectionFactory --property ClientID=^"^\^"^\^"^"
       jms/ConnectionFactory001
      remote failure: Unable to create connection pool.
      Invalid property syntax, missing property value: ClientID=
      Command create-jms-resource failed.
      

      ^ is an escape sequence character in MS-DOS.

        Activity

          People

          • Assignee:
            David Zhao
            Reporter:
            tak09
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: