glassfish
  1. glassfish
  2. GLASSFISH-18956

asadmin --property preserves leading/trailing spaces in property name

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 4.0_b71
    • Component/s: command_line_interface
    • Labels:
      None

      Description

      The format of the properties are "p1=v1:p2=v2". I am setting these via ant but if spaces lead/trail the property name, those are preserved. These should be trimmed. I don't see a valid use case while they would be preserved.

      <exec executable="asadmin.bat" failonerror="true">
        <arg value="some-command" />
        <arg value="--property" />
        <arg value="
          property1=helloworld:
          property2=2525:
          property3=true" />
      </exec>
      

        Activity

        Hide
        Tom Mueller added a comment -

        Fixed on the trunk in revision 58237.

        Now leading and trailing space on property names is ignored.

        Show
        Tom Mueller added a comment - Fixed on the trunk in revision 58237. Now leading and trailing space on property names is ignored.

          People

          • Assignee:
            Tom Mueller
            Reporter:
            Paul Benedict
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: