rundeck option cannot take integer value
Reported by Charles Scott | March 16th, 2012 @ 02:17 PM | in Rundeck 1.4.3 (closed)
- 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)
Comments and changes to this ticket
-
Charles Scott March 16th, 2012 @ 02:38 PM
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...
-
Greg Schueler April 18th, 2012 @ 04:47 PM
- Tag changed from job, option to bug, job, option
- Milestone order changed from 25 to 0
-
Greg Schueler April 19th, 2012 @ 09:53 AM
- State changed from new to needs_verification
(from [f66acb16fa9c469df9b5b25682b78388910d8497]) Handle non-string in option values [#545 state:needs_verification] https://github.com/dtolabs/rundeck/commit/f66acb16fa9c469df9b5b2568...
-
Greg Schueler May 16th, 2012 @ 05:34 PM
- State changed from needs_verification to resolved
- Milestone order changed from 24 to 0
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
(DEPRECATED) Please use github issues for issue tracking at http://github.com/dtolabs/rundeck/issues