AuditRecord.setValueTruncated throws a StringIndexOutOfBoundsException when certain arguments are passed.

Steps to Reproduce


  1. Create a new Glide property with the following values:
    • Name: glide.max_activity_size
    • Description: Test
    • Type: integer
    • Value: 101
  2. Click Save.
  3. Navigate to Incident > Create New.
  4. Right-click the word Impact next to the field.
  5. Click Configure Dictionary.
  6. Create a new Choice Label breadbreadbreadbreadbreadbr with a Default Value of 6.
    Notice that the label is 27 characters long.
  7. Click Update.
  8. Create a new incident and fill in all the required fields.
  9. Select the new label from the impact choice list and click Submit.

The following error appears in the log:

2016-03-15 14:50:48 (829) Default-thread-3 CB221977670212001C1E5F9842415AC8 SEVERE *** ERROR *** String index out of range: 29 java.lang.StringIndexOutOfBoundsException: String index out of range: 29 at java.lang.String.substring( at com.glide.audit.AuditRecord.setValueTruncated( com.glide.audit.HistoryActivityIterator.processAuditRecord( at com.glide.audit.HistoryActivityIterator.loadGroup( at at at at$AuditEntryIterator.computeNext( at$AuditEntryIterator.computeNext( at at at$MergingIterator.<init>( at at$14.iterator( at$UnmodifiableIterable.iterator( at$11.iterator( at at at at at at com.glide.processors.AProcessor.runProcessor( at com.glide.processors.AProcessor.processTransaction( at com.glide.processors.ProcessorRegistry.process( at com.glide.ui.GlideServletTransaction.process( at at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at


No workaround is available at this time.

Related Problem: PRB666733

Seen In

Fuji Patch 11

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-07-18 11:34:02