Uploaded image for project: 'Jira Cloud'
  1. Jira Cloud
  2. JRACLOUD-67600

Invalid User-Agent header being sent to add-ons

    XMLWordPrintable

Details

    Description

      Summary

      Jira Cloud is sending an invalid User-Agent header in HTTP requests to our add-on. The HTTP requests include the lifecycle events: Installed, Enabled; as well as other user-initiated requests and web hooks.

      User-Agent: Atlassian HttpClient unknown / JIRA-1001.0.0-SNAPSHOT (100059) / Default

      Steps to Reproduce

      1. Make an HTTP request. Can be encountered in lifecycle events.

      Expected Results

      Valid user-agent value

      Actual Results

      Illegal header: Illegal 'user-agent' header: Invalid input '/', expected WSP, CRLF, product-or-comment or 'EOI' (line 1, column 64): Atlassian HttpClient unknown / JIRA-1001.0.0-SNAPSHOT (100059) / Atlassian-Connect/1.3.238
      

      Notes

      It appears that the application server is choking on the second '/' in the `User-Agent` string.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              af0438bb1d84 David Pinn
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: