multivalue option XML import/export error with space character delimiter
Reported by Greg Schueler | 2011-12-15 14:45:23 UTC | 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 2011-12-16 11:06:33 UTC
- State changed from new to needs_verification
-

Greg Schueler 2011-12-16 11:07:18 UTC
(from [a878f97515f20c41011b53377f8c6aeb712a314a]) Change multivalued delimiter to xml attribute
[#492 state:needs_verification] https://github.com/dtolabs/rundeck/commit/a878f97515f20c41011b53377...
-

rajneesh sharma 2011-12-16 13:55:42 UTC
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 2011-12-16 14:58:58 UTC
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)
-

-

Greg Schueler 2012-01-26 09:45:36 UTC
- Assigned user set to Greg Schueler
- Tag set to bug, jobs, xml
-

Greg Schueler 2012-02-10 09:05:38 UTC
- 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
