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 "Jeff Peterson (JIRA)" <ji...@apache.org> on 2006/06/14 00:03:30 UTC

[jira] Created: (WSCOMMONS-43) Incorrect handling of default namespace for attributes

Incorrect handling of default namespace for attributes
------------------------------------------------------

         Key: WSCOMMONS-43
         URL: http://issues.apache.org/jira/browse/WSCOMMONS-43
     Project: WS-Commons
        Type: Bug

  Components: AXIOM  
 Environment: Windows XP, SJSXP parser
    Reporter: Jeff Peterson


Axiom appears to not discover the default namespace of an attribute.  For example, given the XML:

<foo xmlns="http://www.example.com"><bar name="foobar" /></foo>

If I were to get the OMElement for <bar> and perform a getAttributeValue() call with the QName "{http://www.example.com}name", null will be returned.  Using the Eclipse debugger I can see that the hashmap storing the attributes has null for the namespace of  the "name" attribute.

See the attached unit test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (WSCOMMONS-43) Incorrect handling of default namespace for attributes

Posted by "Jeff Peterson (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-43?page=all ]

Jeff Peterson updated WSCOMMONS-43:
-----------------------------------

    Attachment: AxiomAttributeTest.java.txt

Unit test illustrating issue

> Incorrect handling of default namespace for attributes
> ------------------------------------------------------
>
>          Key: WSCOMMONS-43
>          URL: http://issues.apache.org/jira/browse/WSCOMMONS-43
>      Project: WS-Commons
>         Type: Bug

>   Components: AXIOM
>  Environment: Windows XP, SJSXP parser
>     Reporter: Jeff Peterson
>  Attachments: AxiomAttributeTest.java.txt
>
> Axiom appears to not discover the default namespace of an attribute.  For example, given the XML:
> <foo xmlns="http://www.example.com"><bar name="foobar" /></foo>
> If I were to get the OMElement for <bar> and perform a getAttributeValue() call with the QName "{http://www.example.com}name", null will be returned.  Using the Eclipse debugger I can see that the hashmap storing the attributes has null for the namespace of  the "name" attribute.
> See the attached unit test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (WSCOMMONS-43) Incorrect handling of default namespace for attributes

Posted by "Glen Daniels (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/WSCOMMONS-43?page=all ]
     
Glen Daniels closed WSCOMMONS-43:
---------------------------------

    Resolution: Invalid

This is working as it should.  Default namespaces do not apply to attribute names (see http://www.w3.org/TR/REC-xml-names/#defaulting).


> Incorrect handling of default namespace for attributes
> ------------------------------------------------------
>
>          Key: WSCOMMONS-43
>          URL: http://issues.apache.org/jira/browse/WSCOMMONS-43
>      Project: WS-Commons
>         Type: Bug

>   Components: AXIOM
>  Environment: Windows XP, SJSXP parser
>     Reporter: Jeff Peterson
>  Attachments: AxiomAttributeTest.java.txt
>
> Axiom appears to not discover the default namespace of an attribute.  For example, given the XML:
> <foo xmlns="http://www.example.com"><bar name="foobar" /></foo>
> If I were to get the OMElement for <bar> and perform a getAttributeValue() call with the QName "{http://www.example.com}name", null will be returned.  Using the Eclipse debugger I can see that the hashmap storing the attributes has null for the namespace of  the "name" attribute.
> See the attached unit test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (WSCOMMONS-43) Incorrect handling of default namespace for attributes

Posted by "Jeff Peterson (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/WSCOMMONS-43?page=comments#action_12416090 ] 

Jeff Peterson commented on WSCOMMONS-43:
----------------------------------------

I forgot to mention that I am using version 1.0

> Incorrect handling of default namespace for attributes
> ------------------------------------------------------
>
>          Key: WSCOMMONS-43
>          URL: http://issues.apache.org/jira/browse/WSCOMMONS-43
>      Project: WS-Commons
>         Type: Bug

>   Components: AXIOM
>  Environment: Windows XP, SJSXP parser
>     Reporter: Jeff Peterson
>  Attachments: AxiomAttributeTest.java.txt
>
> Axiom appears to not discover the default namespace of an attribute.  For example, given the XML:
> <foo xmlns="http://www.example.com"><bar name="foobar" /></foo>
> If I were to get the OMElement for <bar> and perform a getAttributeValue() call with the QName "{http://www.example.com}name", null will be returned.  Using the Eclipse debugger I can see that the hashmap storing the attributes has null for the namespace of  the "name" attribute.
> See the attached unit test.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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