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

PropertyStrings limited to 255 characters

    XMLWordPrintable

Details

    Description

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      For some reason, the ofbiz AbstractPropertySet class restricts strings to 255 characters:

       public void setString(String key, String value) {
              if ((value != null) && (value.length() > 255)) {
                  throw new IllegalPropertyException("String exceeds 255 characters.");
              }
              ....
      

      So even though JIRA sets this field as unlimited in size in the database, it is artificially restricted in the code.

      We should decide if we really need unlimited text here (since obviously no-one has needed it till now). If not, we can speed up db accesses by switching to a VARCHAR(255). If so, we should fix the PropertySet API.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              7ee5c68a815f Jeff Turner
              Votes:
              8 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: