-
1. Re: JBossEntityResolver and xsd:redefine resolution
aloubyansky Mar 14, 2008 8:41 AM (in response to aloubyansky)A testcase in the xb that reproduces the issue is jbossxb/trunk/src/test/java/org/jboss/test/xb/schemaresolver/test/DefaultSchemaResolverUnitTestCase.java
-
2. Re: JBossEntityResolver and xsd:redefine resolution
aloubyansky Mar 17, 2008 9:19 AM (in response to aloubyansky)The issue for this http://jira.jboss.com/jira/browse/JBCOMMON-43
I've committed the fix and the the testcase to common-core org.jboss.test.util.test.xml.resolver.JBossEntityResolverUnitTestCase.
Possible backwards incompatibility in behavior is that schema location registered locally is different from the one in the XML's schemaLocation with the purpose of override. In this case, the schemaLocation from the XML file will be used. And at the moment w/o falling back to the registered one if the one in the XML occured to be invalid. -
3. Re: JBossEntityResolver and xsd:redefine resolution
kabirkhan Mar 18, 2008 9:42 AM (in response to aloubyansky)I've commited a small fix to this, resolveEntitiy() did not check that the localEntities != null before trying to read from it
-
4. Re: JBossEntityResolver and xsd:redefine resolution
kabirkhan Mar 18, 2008 9:50 AM (in response to aloubyansky)Actually, I don't seem to be able to commit there?
Error: Commit failed (details follow): Error: MKACTIVITY of '/repos/common/!svn/act/53551a94-a2fe-ee45-b2ab-213af84ca041': 403 Forbidden (https://svn.jboss.org)
Can you please apply the following patchIndex: C:/cygwin/home/Kabir/sourcecontrol/common-trunks/common-core/src/main/java/org/jboss/util/xml/JBossEntityResolver.java =================================================================== --- C:/cygwin/home/Kabir/sourcecontrol/common-trunks/common-core/src/main/java/org/jboss/util/xml/JBossEntityResolver.java (revision 2744) +++ C:/cygwin/home/Kabir/sourcecontrol/common-trunks/common-core/src/main/java/org/jboss/util/xml/JBossEntityResolver.java (working copy) @@ -258,7 +258,9 @@ boolean resolvePublicIdFirst = true; if(publicId != null && systemId != null) { - String registeredSystemId = (String) localEntities.get(publicId); + String registeredSystemId = null; + if (localEntities != null) + registeredSystemId = (String) localEntities.get(publicId); if(registeredSystemId == null) registeredSystemId = (String) entities.get(publicId);
-
5. Re: JBossEntityResolver and xsd:redefine resolution
aloubyansky Mar 18, 2008 10:10 AM (in response to aloubyansky)Sure, done. Also deployed.
mvn wrote:
Uploading: https://snapshots.jboss.org/maven2/org/jboss/jboss-common-core/2.2.4-SNAPSHOT/jboss-common-core-2.2.4-2008031
8.140658-1.jar
...
Uploading: https://snapshots.jboss.org/maven2/org/jboss/jboss-common-core/2.2.4-SNAPSHOT/jboss-common-core-2.2.4-2008031
8.140658-1-sources.jar -
6. Re: JBossEntityResolver and xsd:redefine resolution
anil.saldhana Mar 24, 2008 2:16 PM (in response to aloubyansky)http://www.jboss.com/index.html?module=bb&op=viewtopic&t=131725
Is this new behavior related? What is the solution for this?