You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ax...@ws.apache.org on 2004/10/15 20:05:52 UTC

[jira] Updated: (AXIS-1421) confusion between local name and qualified name

The following issue has been updated:

    Updater: Davanum Srinivas (mailto:davanum@gmail.com)
       Date: Fri, 15 Oct 2004 11:04 AM
    Changes:
             Component changed to SAAJ
    ---------------------------------------------------------------------
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: Fri, 15 Oct 2004 11:04 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