Export of Variables over api creates invalid JSON if escaping is required

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

XMLWordPrintable

      If you have an env variable with e.g. double quotation marks a call to job/<name>/<buildid>//injectedEnvVars/export/api/json will create invalid JSON.

      If for example if the Variable is declared as
      export VAR='test"test"test'
      it would create the following output
      ...

      {"name":"VAR", "value":"test"test"test"}

      ...

            Assignee:
            Oleg Nenashev
            Reporter:
            Jürgen Thomann
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: