axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject [jira] Resolved: (AXISCPP-39) string[] - empty values: previous string is returned instead of an empty string
Date Wed, 07 Apr 2004 12:59:43 GMT
Message:

   The following issue has been resolved as CANNOT REPRODUCE.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXISCPP-39

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXISCPP-39
    Summary: string[] - empty values: previous string is returned instead of an empty string
       Type: Bug

     Status: Resolved
 Resolution: CANNOT REPRODUCE

    Project: Axis-C++
 Components: 
             Serialization/Deserialization
   Fix Fors:
             current (nightly)
   Versions:
             1.0 Final

   Assignee: 
   Reporter: Roland Kosovsky

    Created: Mon, 19 Jan 2004 3:18 PM
    Updated: Wed, 7 Apr 2004 5:59 AM
Environment: Operating System: Other
Platform: Other

Description:
When an array of strings is serialized and deserialized empty values get the
value of the previous string.

SOAPArrayStruct* pInput = new SOAPArrayStruct;
pInput->varArray.m_Size = 4;
pInput->varArray.m_Array = new string[4];
pInput->varArray.m_Array[0] = "1";
pInput->varArray.m_Array[1] = "2";
pInput->varArray.m_Array[2] = "";  // empty value
pInput->varArray.m_Array[3] = "4";

the web service gets: "1,2,2,4" instead "1,2,,4" 

reason: XMLStreamHandler::characters gets never called. Therefore the value is
never set.

my suggestion:
XMLStreamHandler.cpp, Ln 114 (XMLStreamHandler::startElement):  
    m_Param.SetEmpty();  // insert this
Param.h, Ln 123 (class Param):
    void SetEmpty() { m_sValue.erase(); }  // insert this


---------------------------------------------------------------------
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