]
Jason T. Greene updated JBAS-2282:
----------------------------------
Fix Version/s: Backlog
(was: JBossAS-5.2.0.Beta1)
Moving to backlog, please validate that this issue is still relevant
JBossEntityResolver is not using schemaLocation URIs that are valid
non-file URLs
---------------------------------------------------------------------------------
Key: JBAS-2282
URL:
https://jira.jboss.org/jira/browse/JBAS-2282
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: XML services
Affects Versions: JBossAS-4.0.3RC2
Reporter: Scott M Stark
Assignee: Richard Opalka
Fix For: Backlog
Attachments: jboss-entity-resolver.zip
The org.jboss.util.xml.JBossEntityResolver is not dealing with systemIDs that are valid
non-file URLs. For example, this xml fragment from a testcase which uses the jboss
resource URL:
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Id: config.xml,v 1.1 2005/07/31 23:13:44 starksm Exp $ -->
<jaas:policy
xsi:schemaLocation="urn:jboss:security-config
resource:security-config_4_1.xsd"
xmlns:jaas="urn:jboss:security-config"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
does map to a valid URL which can be loaded, but the parsing of this URL by the
getLocalEntityName ends up throwing away the full path info to produce a resource name of
schema/security-config_4_1.xsd. This would work inside the jboss server provided the
security-config_4_1.xsd is bundled into a classpath location following the location
conventions expected by the JBossEntityResolver, but does not work in the testsuite where
this is not the case, and would not work for user defined schemas located elsewhere. It
would seem we should try to load the schema from systemIDs that are valid URLs before
defaulting to the jboss specific logic.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: