Menu

#65 SOAPParameter::IsNull() returns false despite nil="true"

xml_parsing
open
bug (54)
5
2004-02-12
2003-03-03
No

There is a small bug in SOAPParameterHandler.cpp
when receiving a nil parameter.
The nil="true" attribute is received and stored correctly,
which would cause IsNull() to return true as expected.
However, in the endElement() function, the element
contents (which is an empty string) is assigned to the
SOAPParameter object and SetNull(false) is called,
clobbering the nil="true" attribute.
It seems to me that this endElement() processing
should not occur if the nil attribute is true, so to correct
this behaviour I have added a check for IsNull() in the
attached patch.

Discussion

  • Peter Feltham

    Peter Feltham - 2003-03-03
    • summary: SOAPParameter::IsNull() returns false despite nil="true" --> SOAPParameter::IsNull() returns false despite nil="true"
     
  • Peter Feltham

    Peter Feltham - 2003-03-03

    diff patch for SOAPParameterHandler.cpp to fix nil handling

     
  • Peter Feltham

    Peter Feltham - 2003-03-03
    • summary: SOAPParameter::IsNull() returns false despite nil="true" --> SOAPParameter::IsNull() returns false despite nil="true"
     
  • David Crowley

    David Crowley - 2004-02-12
    • assigned_to: nobody --> dcrowley
    • summary: SOAPParameter::IsNull() returns false despite nil="true" --> SOAPParameter::IsNull() returns false despite nil="true"
     

Log in to post a comment.

MongoDB Logo MongoDB