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

Upgrade Tools issue: java.io.IOException: Server returned HTTP response code: 403 for URL: http://oss.oetiker.ch/rrdtool/rrdtool.dtd

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.12.2
    • 1.13.0, 1.12.3
    • Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • None

    Description

      When dumping a RRD file, the generated XML contains the following header:

      <?xml version="1.0" encoding="utf-8"?>
      <!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
      <!-- Round Robin Database Dump -->
      

      The Upgrade Tools uses the class RrdParseUtils from opennms-rrd-model to generate the object representation of a RRD Dump XML. This in turn uses JAXB (through JaxbUtils) to parse the XML.

      For some reason, JAXB is trying to retrieve the DTD because the DOCTYPE entry exists, and this is causing problems on those situations on which the OpenNMS machine cannot reach the Internet.

      The idea is to pre-process the XML to remove those headers, or use a different parser on which we can turn off validations.

      Attachments

        Activity

          People

            agalue Alejandro Galue
            agalue Alejandro Galue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: