glassfish
  1. glassfish
  2. GLASSFISH-19037

Invalid characters can be entered for Name in New Admin Object Resource screen

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0_dev
    • Fix Version/s: None
    • Component/s: jms
    • Labels:
      None
    • Environment:

      Windows

      Description

      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."

      http://docs.oracle.com/cd/E26576_01/doc.312/e24943/command-line-reference.htm#aeonj

      Please see the related issue GLASSFISH-19033 as well.

        Activity

        Hide
        Jagadish added a comment -

        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.

        Show
        Jagadish added a comment - 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.
        Hide
        David Zhao added a comment -

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

        Show
        David Zhao added a comment - Forward it to connector team for further investigation about the create-admin-object command issue.

          People

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

            Dates

            • Created:
              Updated: