Uploaded image for project: 'Opsgenie'
  1. Opsgenie
  2. OPSGENIE-803

'Language-Accept' header set in the JSD/JSM actionExecutor.py script causes errors with certain Jira language extensions and plugins

    XMLWordPrintable

Details

    Description

      Issue Summary

      We are setting a 'Accept-Language' header in our actionExecutor.py script for JSD/JSM - this is set with a value of "application/json", which is causing issues with certain language/translation extensions in Jira as "application/json" is not a valid language value. This is done in two places - here:

      https://github.com/opsgenie/oec-scripts/blob/master/JiraServiceDesk/scripts/actionExecutor.py#L102

      and here

      https://github.com/opsgenie/oec-scripts/blob/master/JiraServiceDesk/scripts/actionExecutor.py#L102

      I suspect this was intended to be simply an 'Accept' header - which would make sense with the value being set. 

      Steps to Reproduce

      N/A

      Expected Results

      N/A

      Actual Results

      N/A

      Workaround

      Customers can modify the script once the package is installed - either removing the 'Accept-Language' header entirely in both places, or changing it to 'Accept'. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            jsitarz@atlassian.com Justin Sitarz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: