Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-4817

Null (\0) characters in logmsg field of events causes org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00

    XMLWordPrintable

    Details

      Description

      The logmsg field wasn't being escaped to handle \0 characters. Cropped up because Dell Drac5/6 test snmp traps contain null octets in one of their parameters, and the default trap event incldues all parms in the logmsg field.

      Fix and unit test attached.

        Attachments

          Activity

            People

            Assignee:
            ranger Benjamin Reed
            Reporter:
            duncanm Duncan Mackintosh
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: