Details
-
Bug
-
Status: Open
-
Blocker
-
Resolution: Unresolved
-
2.7.1, 2.7
-
None
-
None
Description
If you take a look at the merge of the TreeWalker.patch (org/apache/xml/serializer/TreeWalker.java) between versions 338117 and 338053 (for XALANJ-1985), the constructor has some remnant code at the end which breaks it's intended functionality.
This chunk should be removed (sorry for not attaching a patch):
// Set the document locator
if (m_contentHandler != null)
m_contentHandler.setDocumentLocator(m_locator);
try
catch (SecurityException se){// user.dir not accessible from applet
You can see that the constructor before this chunk already sets the document locator on the content handler and if the system id is null, sets the dummy value. Problem is that this extra chunk is setting the system id no matter what, which breaks all attempts to load relative files, with no workaround possible.
Attachments
Attachments
Issue Links
- relates to
-
XALANJ-1744 org.apache.xml.utils.SystemIDResolver.getAbsoluteURI(String urlString, String base) catches MalformedURIException with applet
- Closed