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

Avoid exception thrown by PropertySet class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Low
    • None
    • None
    • None
    • None

    Description

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

      JIRA uses propertySet to limit the characters in some of the fields in JIRA, and in this case it limits the character limit to only 255. According to AbstractPropertySet, JIRA will throws IllegalPropertyException if value length greater than 255. The following is the error thrown

      2013-07-03 02:43:08,819 ajp-8009-3 ERROR HUFibinZ 163x5046x2 441cch 10.95.34.16,130.164.54.165 /secure/admin/NIEditHandlerDetails.jspa [plugins.mail.webwork.AbstractEditHandlerDetailsWebAction] Unable to add service: PO_FAX_SERVER
      com.opensymphony.module.propertyset.IllegalPropertyException: String exceeds 255 characters.
              at com.opensymphony.module.propertyset.AbstractPropertySet.setString(AbstractPropertySet.java:297)
              at com.atlassian.jira.service.OfBizServiceConfigStore.createPropertySet(OfBizServiceConfigStore.java:283)
              at com.atlassian.jira.service.OfBizServiceConfigStore.editServiceConfig(OfBizServiceConfigStore.java:89)
              at com.atlassian.jira.service.DefaultServiceManager.editService(DefaultServiceManager.java:235)
              at com.atlassian.jira.plugins.mail.webwork.AbstractEditHandlerDetailsWebAction.doExecute(AbstractEditHandlerDetailsWebAction.java:169)
              at webwork.action.ActionSupport.execute(ActionSupport.java:165)

      The expectation is to have JIRA handles it better to avoid exception from happening. JIRA has entitymodel to create the field length in the database, perhaps this could be the configuration it refers to instead. With that, the setText method can be used instead of setString method for the AbstractPropertySet class.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              znoorsazali Zul NS [Atlassian]
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: