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

Jira API lets you set the text for jira fields more than it's permissible limit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 10.3.0, 10.4.0, 10.4.1, 10.4.2
    • Java API
    • None

      Issue Summary

      This is reproducible on Data Center: (yes) / (no): Yes

      Jira provides jira-api library for interacting with Jira. The method 
      MutableIssue->setSummary(...) allows to set a new text to the summary field in jira. The limit for this field from Jira is 255 characters. However, this API allows to set the summary to any length.

      Similarly the API MutableIssue->setDescription(...) and MutableIssue->
      setEnvironment(...) should limit the text to 32767 characters. However, this too is not honoured.

      Additionally,  MutableIssue->setCustomFieldValue should honor the max character length for custom field(if any). This also is not happening at the moment.

      Steps to Reproduce

      1. Call the API MutableIssue->setSummary with the text larger than 255 characters
        or
        call MutableIssue->setDescription or MutableIssue->setEnvironment with text larger than 32767 characters.
        or
        call MutableIssue->setCustomFieldValue with your custom field and string larger than max limit for that custom field.

      Expected Results

      The API should fail and throw an exception as the text is larger than the allowed limit.

      Actual Results

      The field gets updated with the larger text length.

      Workaround

      N/A

              Unassigned Unassigned
              b7eb103390a7 Nayan Kurude
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: