generated GDSL document breaks on forward slash

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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

            Assignee:
            Unassigned
            Reporter:
            M. B.
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: