axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Updated: (AXIS-1421) confusion between local name and qualified name
Date Mon, 18 Oct 2004 08:41:51 GMT
The following issue has been updated:

    Updater: Ashutosh Shahi (mailto:ashutosh.shahi@gmail.com)
       Date: Mon, 18 Oct 2004 1:41 AM
    Comment:
Attaching the test case to demonstrate the problem. Because of wrong constructor for MessageElement
being used in CreateElementNS() method of SOAPDocumentImpl class, the LocalName gets the entire
name (local name + prefix) and Prefix gets null.
    Changes:
             Attachment changed to Test.java
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://issues.apache.org/jira/browse/AXIS-1421?page=history

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1421

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1421
    Summary: confusion between local name and qualified name
       Type: Bug

     Status: Open
   Priority: Major

    Project: Axis
 Components: 
             SAAJ
   Versions:
             1.2 Beta

   Assignee: Davanum Srinivas
   Reporter: nishant kumar

    Created: Tue, 29 Jun 2004 1:19 AM
    Updated: Mon, 18 Oct 2004 1:41 AM

Description:
in the public Element createElementNS(String namespaceURI, String qualifiedName) method of
SOAPDocumentImpl

you have the following in the else part.

me = new MessageElement(namespaceURI, qualifiedName);

if you have a look at the constructor code in MessageElement then you will find that it is
for localPart, and not for qualifiedName.

the else part should be something like this.

String prefix = null;
String localPart = qualifiedName;
final int index = qualifiedName.indexOf(":");
if(index != -1)
{
  prefix = qualifiedName.substring(0,index);
  localPart = qualifiedName.substring(index + 1);
}
if (prefix == null)
{
  me = new MessageElement(namespaceURI, qualifiedName);
}
else
{
  me = new MessageElement(localPart, prefix, namespaceURI);
}


even the if part of this method should be using the localPart only


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message