[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlrpc-user
Subject:    [jira] [Commented] (AXIOM-398) Return value of OMNamedInformationItem#getNamespace() should be norma
From:       "Hudson (Commented) (JIRA)" <jira () apache ! org>
Date:       2012-01-22 18:02:39
Message-ID: 19460688.64765.1327255359969.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/AXIOM-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13190729#comment-13190729 \
] 

Hudson commented on AXIOM-398:
------------------------------

Integrated in ws-axiom-trunk #789 (See \
[https://builds.apache.org/job/ws-axiom-trunk/789/])  AXIOM-398: Ensure that the \
return value of getNamespace() is correctly normalized for elements created using \
Document#createElementNS.

veithen : 
Files : 
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/pom.xml
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/src/main/java/org/apache/axiom/ts/dom/DOMTestSuiteBuilder.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/src/main/java/org/apache/axiom/ts/dom/document/TestCreateAttributeNSWithoutNamespace.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/src/main/java/org/apache/axiom/ts/dom/document/TestCreateElementNSWithoutNamespace.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom-testsuite/src/test/java/org/apache/axiom/ts/dom/XercesTest.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/om/impl/dom/DocumentImpl.java
                
* /webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/test/java/org/apache/axiom/om/impl/dom/DOMImplementationTest.java


                
> Return value of OMNamedInformationItem#getNamespace() should be normalized
> --------------------------------------------------------------------------
> 
> Key: AXIOM-398
> URL: https://issues.apache.org/jira/browse/AXIOM-398
> Project: Axiom
> Issue Type: Bug
> Components: API
> Affects Versions: 1.2.12
> Reporter: Andreas Veithen
> Assignee: Andreas Veithen
> Priority: Minor
> Fix For: 1.2.13
> 
> 
> For elements and attributes without namespace, getNamespace() may return two \
> different values: null or an OMNamespace instances that has both prefix and \
> namespaceURI properties set to the empty string. The value that is actually \
> returned in this case depends in subtle ways on how the information item was \
> created. This can be illustrated by the following code snippet: OMElement element1 \
> = AXIOMUtil.stringToOM("<root/>"); System.out.println(element1.getNamespace());
> OMElement element2 = AXIOMUtil.stringToOM("<root xmlns=''/>");
> System.out.println(element2.getNamespace());
> The output is:
> null
> org.apache.axiom.om.impl.common.OMNamespaceImpl@0
> One can see that although the two elements are equivalent, the return value of \
> getNamespace() is different. The return value of getNamespace() should be \
> normalized such that it is always the same (i.e. null) for information items \
> without namespace.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic