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

Prevent the method updateCustomField() from accepting NULL values

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Java API
    • None
    • 1
    • 3
    • 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

      Problem Definition

      The method updateCustomField(Long id, String name, String description, CustomFieldSearcher searcher)() mentioned in this documentation allows NULL values for the name parameter.

      If this method is called by a script that passes a NULL value for the name parameter, a 500 error will be returned when accessing any page in JIRA except the admin section, as shown in the screenshot below:

      For this reason, the method updateCustomField() should not allow null values.

      Why this is important

      Workaround

      For now, the only workaround is to make sure that any script making a call to this function does not pass a NULL name.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jrey Julien Rey
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: