[
https://issues.apache.org/jira/browse/XMLSCHEMA-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13878520#comment-13878520
]
Hudson commented on XMLSCHEMA-26:
---------------------------------
FAILURE: Integrated in xmlschema-trunk-jdk15 #110 (See
[https://builds.apache.org/job/xmlschema-trunk-jdk15/110/])
[XMLSCHEMA-26] Forgot the testcase
Patch from Dmitry Repchevsky (dkulp: rev 1560124)
*
/webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils
*
/webservices/xmlschema/trunk/xmlschema-core/src/test/java/org/apache/ws/commons/schema/utils/NamespaceMapTest.java
Change to 2.1.0 as XMLSCHEMA-26 introduces a slight behavior change which may
not be appropriate for a patch (dkulp: rev 1560117)
* /webservices/xmlschema/trunk/pom.xml
* /webservices/xmlschema/trunk/w3c-testcases/pom.xml
* /webservices/xmlschema/trunk/xmlschema-bundle-test/pom.xml
* /webservices/xmlschema/trunk/xmlschema-core/pom.xml
[XMLSCHEMA-26] Fix return of getNamespaceURI
Patch from Dmitry Repchevsky applied (dkulp: rev 1560116)
*
/webservices/xmlschema/trunk/xmlschema-core/src/main/java/org/apache/ws/commons/schema/utils/NamespaceMap.java
> NPE: NamespaceMap.getNamespaceURI() returns null
> ------------------------------------------------
>
> Key: XMLSCHEMA-26
> URL: https://issues.apache.org/jira/browse/XMLSCHEMA-26
> Project: XmlSchema
> Issue Type: Bug
> Affects Versions: 2.0.3
> Environment: Java
> Reporter: Dmitry Repchevsky
> Assignee: Daniel Kulp
> Fix For: 2.1.0
>
> Attachments: NamespaceMap.java.patch, NamespaceMapTest.java
>
>
> Related to the
> https://issues.apache.org/jira/browse/XMLSCHEMA-25?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> fix.
> As mentioned in a comment:
> >NamespaceMap returns null if no prefix found while according
> >NamespaceContext it should return Constants.NULL_NS_URI.
> There are two solutions possible.
> 1. fix NamespaceMap class to do not return null as defined in
> NamespaceContext contract.
> 2. make XmlSchemaSerializer changes to check both null && "".
> Note that (1) may introduce bugs in code that uses XML Schema where null is
> incorrectly used instead of Constants.NULL_NS_URI to check whether prefix is
> bound.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]