Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

rundeck option cannot take integer value

#545
  • Issue Type: Bug/Feature/Improvement/Documentation (pick one)
  • Rundeck version: (enter version here)

Issue:

The following option definition in a simple rundeck jobdef:

    <option required="true" name="port" enforcedvalues="true" values="3800" value="3800">
      <description>username for the target database</description>
    </option>

does not work. To work around this problem, I had to place a non numeric character somewhere in the value for the values/value attributes. In this case, I simply placed a whitespace character in front of the integer:

    <option required="true" name="port" enforcedvalues="true" values=" 3800" value=" 3800">
      <description>username for the target database</description>
    </option>

Reproduce: (Enter steps to reproduce bug here.)

Define any job with above option that contains a pure integer value.

The output will result in:

[rundeck@rundeckrk1v ~]$ rd-jobs load -f /tmp/deployPromoAppOwnerAppSettings.xml Error: Failed request to load jobs: groovy.lang.MissingMethodException: No signature of method: java.lang.Integer.split() is applicable for argument types: (java.lang.String) values: [,]
Possible solutions: split(groovy.lang.Closure), plus(java.lang.String), wait(), wait(long), sprintf(java.lang.String, [Ljava.lang.Object;), sprintf(java.lang.String, java.lang.Object)

Reported by Charles Scott · March 16th, 2012 @ 02:17 PM

State: new
Milestone: Rundeck 1.4.3
Assigned to: Greg Schueler Greg Schueler

Activity

  1. Charles Scott
    Charles Scott

    it's tricker than i thought. each time i create a new job similar to this one, I cannot get past this unless I first load the job with a value that contains a non numeric character

    values=" 3800" value=" 3800"
    

    does not work the 1st time....

    values="X3800" value="X3800"
    

    does work

    then I reload it with:

    values=" 3800" value=" 3800"
    

    and it works. Very strange...

    March 16th, 2012 @ 02:38 PM

  2. Greg Schueler
    Greg Schueler
    • Tag changed from job, option to bug, job, option
    • Milestone order changed from 25 to 0

    April 18th, 2012 @ 04:47 PM

  3. Greg Schueler
  4. Greg Schueler
    Greg Schueler
    • State changed from needs_verification to resolved
    • Milestone order changed from 24 to 0

    May 16th, 2012 @ 05:34 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.