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

notification-plugin not properly setting Content-Type when protocol is HTTP

XMLWordPrintable

    • Icon: Patch Patch
    • Resolution: Unresolved
    • Icon: Major Major
    • notification-plugin
    • None
    • Platform independent

      The notification plugin https://github.com/jenkinsci/notification-plugin is not properly setting the request property "Content-Type: application/json;charset=UTF-8" when submitting JSON via HTTP (see Protocol.java). As a consequence, target systems that rely on the content type are unable to properly process the POST. The patch has been tested and works properly (the target server inspects the Content-Type and loads the JSON handler). Pull request has been submitted with fix.

            s34gull Jonathan Edwards
            s34gull Jonathan Edwards
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: