Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-2819

Incident messages are being truncated to 255 characters

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L3 - Default
    • Resolution: Fixed
    • Affects Version/s: 7.1.0
    • Fix Version/s: 7.2.0, 7.2.0-alpha6
    • Component/s: engine
    • Labels:
      None

      Description

      The Incident 'message' database columns (ACT_HI_INCIDENT.INCIDENT_MSG_ and ACT_RU_INCIDENT.INCIDENT_MSG_) are defined as varchar(2000) and should allow messages of up to 2000 characters to be stored. However, all our incident messages are being truncated to 255 characters.

      I have traced the source of the issue back to the org.camunda.bpm.engine.impl.persistence.entity.JobEntity class. This class defines a MAX_EXCEPTION_MESSAGE_LENGTH constant, which has a value of 255. This constant is used to truncate Job exception messages (ACT_RUN_JOB.EXCEPTION_MSG_, which is also defined as varchar(2000)). The truncated Job exception message is then used to create the Incident message in the createFailedJobIncident method.

        Attachments

          Activity

            People

            Assignee:
            thorben.lindhauer Thorben Lindhauer
            Reporter:
            bander Ben Anderson
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: