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

init script checkXmlFiles() fails to pick up errors

    XMLWordPrintable

    Details

      Description

      checkXmlFiles() in the opennms init script fails to pick up XML errors.

      The fix for NMS-3411 (commit ffbbdc70f0fbcb9794511c33a4ac1118c3064604) introduced a bug where the output from xmllint was redirected to stderr and no longer makes it into the TEMPFILE. The subsequent "grep -c 'XML validation failed'" always returns 0, as the TEMPFILE is always empty.

        Attachments

          Activity

            People

            Assignee:
            bobwest Bob West
            Reporter:
            bobwest Bob West
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: