[GLASSFISH-18956] asadmin --property preserves leading/trailing spaces in property name Created: 30/Jul/12  Updated: 09/Jan/13  Resolved: 09/Jan/13

Status: Resolved
Project: glassfish
Component/s: command_line_interface
Affects Version/s: 3.1
Fix Version/s: 4.0_b71

Type: Bug Priority: Minor
Reporter: Paul Benedict Assignee: Tom Mueller
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


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="
    property3=true" />

Comment by Tom Mueller [ 09/Jan/13 ]

Fixed on the trunk in revision 58237.

Now leading and trailing space on property names is ignored.

Generated at Fri Oct 09 17:00:04 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.