Uploaded image for project: 'Maven Doxia'
  1. Maven Doxia
  2. DOXIA-384

Including a DTD reference in a <source> element results in a SAXParseException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.2
    • 1.1.3
    • Core
    • None

    Description

      Including a DTD in a <source> element should be ignored. But the PATTERN_DOCTYPE regular expresion used in the validate() method in AbstractXmlParser finds this and results in the XML being validated and causes a SAXParseException.

      This is causing MSITE-464 reported against the maven-site-plugin.

      We're also seeing a similar problem with the maven-pmd-plugin which may be related.

      Attaching a test case which demonstrates this.

      Attachments

        1. Doxia-source-dtd-test.patch
          1 kB
          Niall Pemberton

        Issue Links

          Activity

            People

              ltheussl Lukas Theussl
              niallp Niall Pemberton
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: