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.

Options in jobs are escaped

#217

When passing option to commands its escapes special characters

For example in this job backticks and pipe will be escaped:

 - id: 17
  project: examples
    loglevel: INFO
    sequence:
      keepgoing: false
      strategy: node-first
      commands:
      - exec: echo ${option.kit}
    description: ''
    name: norestest
    options:
      kit:
        value: '`ls -t1 /* | head -n1`'

Reported by Nores · February 25th, 2011 @ 09:10 AM

State: new
Milestone: none
Assigned to: nobody

Activity

  1. Greg Schueler
    Greg Schueler

    nb: replaceDataReferences in DataContextUtils

    March 7th, 2011 @ 04:08 PM

  2. Greg Schueler
    Greg Schueler
    • Milestone set to Rundeck 1.3
    • Milestone order changed from 16 to 0

    March 15th, 2011 @ 07:54 AM

  3. Alex-SF
    Alex-SF
    • Tag set to bug
    • Milestone order changed from 10 to 0

    June 8th, 2011 @ 11:13 AM

  4. Deleted User
    Deleted User
    • State changed from new to needs_verification

    June 13th, 2011 @ 06:03 PM

  5. Greg Schueler
    Greg Schueler
    • Assigned user set to Greg Schueler

    June 13th, 2011 @ 06:13 PM

  6. Alex-SF
    Alex-SF

    The escaping is gone but the option.kit does not evaluate before the echo command.
    Adding an eval before the echo does work on a local dispatch.

     - id: 17
      project: examples
        loglevel: INFO
        sequence:
          keepgoing: false
          strategy: node-first
          commands:
          - exec: eval echo ${option.kit}
        description: ''
        name: norestest
        options:
          kit:
            value: '`ls -t1 /* | head -n1`'
    

    July 8th, 2011 @ 11:09 AM

  7. Alex-SF
    Alex-SF
    • State changed from needs_verification to resolved

    July 8th, 2011 @ 01:24 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.