Uploaded image for project: 'Commons Digester'
  1. Commons Digester
  2. DIGESTER-35

Digester.parse(File) is crippled in two aspects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Nightly Builds
    • None
    • None
    • Operating System: All
      Platform: All

    • 8461

    Description

      1. It constructs an InputSource with a Reader instead of with an InputStream,
      thus effectively forcing the XML parser to interpret the XML file as it is
      written in default platform encoding instead of honoring eventual <?xml
      encoding="..."?> declarations.

      2. It does not set the system id of the input source to "file://" +
      file.getAbsolutePath(), therefore making it impossible to resolve external
      entities referenced by relative URLs in the XML file.

      A patch is attached that fixes both problems.

      Attachments

        Activity

          People

            Unassigned Unassigned
            szegedia@freemail.hu Attila Szegedi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: