Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-69669

Jira Agile REST parameters are case sensitive

    XMLWordPrintable

Details

    Description

      Issue Summary

      Parameters for Jira Agile's REST endpoints are case sensitive, while most of Jira's REST endpoints are not. This inconsistency causes incorrect results and usage.

      Steps to Reproduce

      1. Have multiple projects/boards in Jira.
        • In my case, one of my projects is SSP and on a scrum board
      2. Request the following endpoint: http://localhost:8080/rest/agile/1.0/board?projectKeyOrId=SSP
        • Notice that the proper results are returned
      3. Request the following endpoint: http://localhost:8080/rest/agile/1.0/board?projectkeyorid=SSP
        • Note that I simply set all letters to lowercase in "projectKeyOrId"
        • Notice that all results are returned

      Expected Results

      REST parameter will be recognized regardless of letter casing

      Actual Results

      The REST parameter does not take effect and all results are shown. There is also no errors to indicate the that parameters are not recognized, so users will not know that this failed.

      Notes

      This was found with the "projectKeyOrId" parameter, but the same behaviour also occurred with "type" and probably others as well.

      Workaround

      Ensure to double check the casing in the parameters to ensure they match the REST documentation exactly.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dchan David Chan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: