Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70755

generated GDSL document breaks on forward slash

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • workflow-cps-plugin
    • None
    • Jenkins 2.375.3
      workflow-cps:3635.vedb_8602eefa_c
      ssh-steps:2.0.65.vd26b_5b_9b_de4d

      Given:

      • ssh-steps plugin contains a forward slash in steps display name.
      • workflow-cps is responsible for generating the GDSL document unter URI `https://localhost/pipeline-syntax/gdsl`
      • display names of steps of installed plugins are rendered into the GDSL document
      • the created GDSL document is put into a project's root as described in

      Error:

      • The created GDSL document contains escaped forward slashes, that renders the document invalid in IDE. (e.g. IntelliJ Idea)
      • the underlying call to `escapeJavaScript(<String>)` claims to escape only single quotes in comparison to `escapeJava(<String>)` but also does forward slashes.

      solution:

      • utilize `escapeJava(<String>)` and escape single quotes. bugfix

            Unassigned Unassigned
            xs_mb M. B.
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: