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

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.12.2
    • Fix Version/s: 1.13.0, 1.12.3
    • Component/s: Command-Line Tools
    • Security Level: Default (Default Security Scheme)
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: