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.

multivalue option XML import/export error with space character delimiter

#496

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

Reported by Greg Schueler · December 15th, 2011 @ 02:45 PM

State: needs_verification
Milestone: Rundeck 1.4.2
Assigned to: nobody

Activity

  1. Greg Schueler
  2. Greg Schueler
  3. Greg Schueler
  4. rajneesh sharma
    rajneesh sharma

    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.

    December 16th, 2011 @ 01:55 PM

  5. Greg Schueler
    Greg Schueler

    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)

    December 16th, 2011 @ 02:58 PM

  6. rajneesh sharma
    rajneesh sharma

    yaml seems like to have solved the problem..........thanks

    December 19th, 2011 @ 12:29 PM

  7. Greg Schueler
    Greg Schueler
    • Assigned user set to Greg Schueler
    • Tag set to bug, jobs, xml

    January 26th, 2012 @ 09:45 AM

  8. Greg Schueler
    Greg Schueler
    • State changed from needs_verification to resolved

    February 10th, 2012 @ 09:05 AM

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.