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 "sumedha rubasinghe (JIRA)" <ji...@apache.org> on 2007/01/08 07:32:27 UTC

[jira] Created: (WSCOMMONS-147) [Axis2] AttrImpl -> getName() returns wrong name

[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


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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-147) [Axis2] AttrImpl -> getName() returns wrong name

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

Davanum Srinivas resolved WSCOMMONS-147.
----------------------------------------

    Resolution: Fixed

> [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, WSCOMMONS-147_02.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.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSCOMMONS-147) [Axis2] AttrImpl -> getName() returns wrong name

Posted by "sumedha rubasinghe (JIRA)" <ji...@apache.org>.
     [ 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_02.patch

If there isn't a namespace prefix (i.e. prefix == ""), only attribute name should be returned. Now it returns ":<ATTRIBUTE-NAME>".

> [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, WSCOMMONS-147_02.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.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (WSCOMMONS-147) [Axis2] AttrImpl -> getName() returns wrong name

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12471839 ] 

Davanum Srinivas commented on WSCOMMONS-147:
--------------------------------------------

Looks like this has already been applied.

thanks,
dims

> [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, WSCOMMONS-147_02.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.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (WSCOMMONS-147) [Axis2] AttrImpl -> getName() returns wrong name

Posted by "sumedha rubasinghe (JIRA)" <ji...@apache.org>.
     [ 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org