You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2010/09/04 02:56:32 UTC

[jira] Created: (WSCOMMONS-560) XDomUtil uses wrong check for namespaces

XDomUtil uses wrong check for namespaces
----------------------------------------

                 Key: WSCOMMONS-560
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-560
             Project: WS-Commons
          Issue Type: Bug
          Components: XmlSchema
    Affects Versions: XmlSchema 1.4.5
            Reporter: Benson Margulies


All the functions in here are badly broken. They call getNamespaceURI as it it returned the computed namespace of the element, not just the local declared namespace.  It's fairly susprising that this seems to cause as little trouble as it does.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WSCOMMONS-560) XDomUtil uses wrong check for namespaces

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906238#action_12906238 ] 

Andreas Veithen commented on WSCOMMONS-560:
-------------------------------------------

getNamespaceURI does return the "computed" namespace of the element, provided that the Element instance has been created by a namespace aware parser or using one of the namespace aware DOM 2 methods. The code looks OK to me.

> XDomUtil uses wrong check for namespaces
> ----------------------------------------
>
>                 Key: WSCOMMONS-560
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-560
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>    Affects Versions: XmlSchema 1.4.5
>            Reporter: Benson Margulies
>
> All the functions in here are badly broken. They call getNamespaceURI as it it returned the computed namespace of the element, not just the local declared namespace.  It's fairly susprising that this seems to cause as little trouble as it does.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (WSCOMMONS-560) XDomUtil uses wrong check for namespaces

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benson Margulies closed WSCOMMONS-560.
--------------------------------------

    Resolution: Invalid

Wrong analysis of the problem I started with.

> XDomUtil uses wrong check for namespaces
> ----------------------------------------
>
>                 Key: WSCOMMONS-560
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-560
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>    Affects Versions: XmlSchema 1.4.5
>            Reporter: Benson Margulies
>
> All the functions in here are badly broken. They call getNamespaceURI as it it returned the computed namespace of the element, not just the local declared namespace.  It's fairly susprising that this seems to cause as little trouble as it does.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WSCOMMONS-560) XDomUtil uses wrong check for namespaces

Posted by "Benson Margulies (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12906243#action_12906243 ] 

Benson Margulies commented on WSCOMMONS-560:
--------------------------------------------

Andreas,

I just reached that conclusion for myself.

I'm looking at a very strange schema DOM document produced in CXF by JAXB.

The doc element has a namespace prefix declaration for the xs prefix, but all of the elements inside have namespaceURI=null and no qualified name in them anywhere. So the code in XDOMUtil (correctly?) doesn't think that they are inside the XML schema namespace and doesn't process any of them.

Now I have to go figure out if JAX-B actually produced these or what.



> XDomUtil uses wrong check for namespaces
> ----------------------------------------
>
>                 Key: WSCOMMONS-560
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-560
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: XmlSchema
>    Affects Versions: XmlSchema 1.4.5
>            Reporter: Benson Margulies
>
> All the functions in here are badly broken. They call getNamespaceURI as it it returned the computed namespace of the element, not just the local declared namespace.  It's fairly susprising that this seems to cause as little trouble as it does.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.