xml-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45210] New: Base systemId not set when parsing XML catalogs
Date Sun, 15 Jun 2008 18:39:49 GMT

           Summary: Base systemId not set when parsing XML catalogs
           Product: XmlCommons
           Version: 1.x
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Resolver
        AssignedTo: commons-dev@xml.apache.org
        ReportedBy: earl@earlhood.com

Created an attachment (id=22130)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22130)
Patch to specify systemId for catalog intput source

The systemId of the XML input source of a catalog file
is not set when calling SAX parser.  This causes any
relative external references in the file to resolve
against the incorrect base (current working dir) versus the
correct base (location of catalog file).

This problem normally leads to a fatal exception by
the SAX parser since the external entity cannot be found.

Attached is a patch that supports setting the systemId of
the catalog input source so relative external entities
will be resolved against the proper base.

NOTE: The classes DOMCatalogReader and TextCatalogReader
currently have stubs for systemId support: they just call
base readCatalog() method w/o systemId support.  Unsure
if these classes are even used in practice.

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message