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

Ability to have JIRA REST API ignore unrecognized parameters

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Fix
    • None
    • None
    • None
    • 1
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vdung Andy Nguyen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: