Bug 4931 - Parser does not consistently resolve relatice DTD paths
Summary: Parser does not consistently resolve relatice DTD paths
Status: NEW
Alias: None
Product: Xerces-J
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.4.3
Hardware: PC All
: P3 major
Target Milestone: ---
Assignee: Xerces-J Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-16 10:26 UTC by Frank Lawlor
Modified: 2005-03-20 17:06 UTC (History)
0 users



Attachments
same as other bugs - URL being used when it should not (10.96 KB, text/plain)
2004-04-29 17:31 UTC, Chris Sanscrainte
Details
same as other bugs - URL being used when it should not (10.96 KB, text/plain)
2004-04-29 17:32 UTC, Chris Sanscrainte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frank Lawlor 2001-11-16 10:26:01 UTC
I have xml files with the DTD spec:
<!DOCTYPE links SYSTEM "../Links.dtd">
That is, the dtd for all these files is
in their parent directory.

This is in a web application run by
Tomcat 4.0 (Catalina).  If I put the 
xerces.jar in webapps/myapp/WEB-INF/lib
it works fine.  However, Catalina currently
has a security bug that prevents me from
putting it there (xerces gets security
exceptions trying to access the files).

But, since this is a shared lib it makes
sense anyway to put it in common/lib.
However, when I put it there, it interprets
the relative DTD path as relative to 
whatever directory Catalina is run in!

This is unworkable from a web app developer's
point of view.  There might be multiple 
reasonable interpretations of a relative DTD
path, but from a developer's viewpoint there
are some essential elements:

1) It needs to be consistent regardless of 
where xerces.jar is loaded from
2) It cannot require the developer to specify
a relative path that makes any assumption 
about where Tomcat is installed or the name
of the web app main directory (since these
vary from install to install and are not
under developer control).

Craig R. McClanahan [craigmcc@apache.org]
from Tomcat says that this is a xerces bug,
not Tomcat.
Comment 1 Chris Sanscrainte 2004-04-29 17:31:59 UTC
Created attachment 11381 [details]
same as other bugs - URL being used when it should not
Comment 2 Chris Sanscrainte 2004-04-29 17:32:10 UTC
Created attachment 11382 [details]
same as other bugs - URL being used when it should not