[ 
https://issues.apache.org/jira/browse/WSCOMMONS-147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

sumedha rubasinghe updated WSCOMMONS-147:
-----------------------------------------

    Attachment: WSCOMMONS-147.patch

> [Axis2] AttrImpl -> getName() returns wrong name
> ------------------------------------------------
>
>                 Key: WSCOMMONS-147
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-147
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: AXIOM
>         Environment: any
>            Reporter: sumedha rubasinghe
>         Attachments: WSCOMMONS-147.patch
>
>
> Value returned from org.apache.axiom.om.impl.dom.AttrImpl -> getName() is 
> incorrect, when an attribute has a namespace prefix other than "xmlns".
> class AttrImpl{
>     .........
>     public String getName() {
>         return (this.namespace == null) ? this.attrName
>                 : (OMConstants.XMLNS_NS_PREFIX.equals(this.attrName) ? 
> this.attrName : OMConstants.XMLNS_NS_PREFIX + ":" + this.attrName);
>     }
>     ........
> }
> As you can see in the above code, the returned value will have default 
> namespace prefix set, even if it has some other prefix.

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to