/rest/api/2/issue POST REST API endpoint is case sensitive for field values and gives a 500 error if capital letters are used

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Low
    • Component/s: Ecosystem
    • None
    • 1
    • Severity 3 - Minor

      Summary

      When POST'ing to the REST API endpoint "/rest/api/2/issue", Specifying fields in the data using upper case letters will cause a 500 error to be returned.

      For example the following data will cause a 500 error:

      Bad data

      {
            "Fields": {
              "Project": {
                "ID": "10000"
              },
              "Summary": "something'\''s wrong",
              "Issuetype": {
                "ID": "10004"
              },
              "Description": "description",
              "Duedate": "2018-03-11"
            }
          }
      

      Environment

      Cloud

      Steps to Reproduce

      • Run a post to the "/rest/api/2/issue" endpoint with data like the one specified above

      Expected Results

      The POST works or provides a normal error explaining the issue.

      Actual Results

      A 500 error is returned with content like this:

      '{"errorMessages":["Internal server error"],"errors":{}}'
      

      Workaround

      You must ensure that all field identifiers are lower case.

            Assignee:
            Unassigned
            Reporter:
            Jared Long
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: