multivalue option XML import/export error with space character delimiter
Reported by Greg Schueler | December 15th, 2011 @ 02:45 PM | in Rundeck 1.4.2 (closed)
If a space character is used as the delimiter for a multi-valued option, then import/export of the job as XML will not work correctly.
exported as <delimiter> </delimiter>
,
and fails on import
fix: XML import/export needs to use XML attribute or otherwise quote or encode the element content
Comments and changes to this ticket
-
Greg Schueler December 16th, 2011 @ 11:06 AM
- State changed from new to needs_verification
-
Greg Schueler December 16th, 2011 @ 11:07 AM
(from [a878f97515f20c41011b53377f8c6aeb712a314a]) Change multivalued delimiter to xml attribute
[#492 state:needs_verification] https://github.com/dtolabs/rundeck/commit/a878f97515f20c41011b53377...
-
rajneesh sharma December 16th, 2011 @ 01:55 PM
1) So looks like there is still some crack - space (as a delimiter) is a valid character in GUI, but it's not exportable.
2) If I use quotes (single quotes as well as double quotes have their own limitations), the for loop in the shell script doesn't treat the multiple values of the variable, as an array. It works as an array only if space (without any quotes) is used as a delimiter.looks like you made some code change, let me know how i can pick that (steps to upgrade my rundeck without losing my work). I'm still on rundeck 1.3.0.
-
Greg Schueler December 16th, 2011 @ 02:58 PM
fyi: there is a workaround: use YAML instead of XML format
The code change is in the current development branch, so will be part of release 1.4.2.
it could be nominated to be part of a new 1.3 point release (1.3.3)
-
rajneesh sharma December 19th, 2011 @ 12:29 PM
yaml seems like to have solved the problem..........thanks
-
Greg Schueler January 26th, 2012 @ 09:45 AM
- Assigned user set to Greg Schueler
- Tag set to bug, jobs, xml
-
Greg Schueler February 10th, 2012 @ 09:05 AM
- State changed from needs_verification to resolved
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