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

Control chars in Git commit messages cause invalid JSON from REST API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: core
    • Environment:
      Jenkins version: 2.199
      Git plugin version: 3.12.1
      OS version: CentOS 7 (3.10.0-1062.1.2.el7.x86_64)
      Java version: 1.8.0_121
      no Tomcat, no reverse proxy
    • Similar Issues:

      Description

      Jenkins generates invalid JSON on http://.../api/json url due to Git commit messages are included in changeset comment attribute as is (the control chars like \x00-\x1F are not filtered).

      The excerpt of JSON structure is attached.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            covid19 Evgeny Boloboshkin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: