Prevent the method updateCustomField() from accepting NULL values

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Java API
    • None
    • 1
    • 5

      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.

            Assignee:
            Unassigned
            Reporter:
            Julien Rey (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: