Ability to have JIRA REST API ignore unrecognized parameters

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Won't Fix
    • None
    • Component/s: None
    • None
    • 1

      Scenario

      Each REST endpoint accepts a specific set of parameters for PUT requests. Only valid parameters are accepted for processing.

      In some cases, due to a network requirement, an extra parameter is injected into a PUT request e.g. a Web Application Firewall might add a parameter to enhance XSRF protection. In such a case, JIRA will reject the request as a bad request (400 error) because it can't recognize the parameter.

      Example: this error is thrown when attempting to edit a Version:

      {"errorMessages":["Unrecognized field \"__ncforminfo\" (Class com.atlassian.jira.rest.v2.issue.version.VersionBean), not marked as ignorable\n at [Source: org.apache.catalina.connector.CoyoteInputStream@3afdb7ed; line: 1, column: 119] (through reference chain: com.atlassian.jira.rest.v2.issue.version.VersionBean[\"__ncforminfo\"])"]}

      Suggestion

      Add the ability to ignore unrecognized parameters for PUT (maybe POST as well) requests.

            Assignee:
            Unassigned
            Reporter:
            Andy Nguyen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: