Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-95

Boolean Deserializer when it encounters "<tag>false</tag>" returns 1(true), instead of 0(false)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • unspecified
    • 1.3 Final
    • Serialization
    • None
    • HP-UX 11.0 with gcc (Axis C++ 1.1.1)

    Description

      Bug in de-serializer logic for processing boolean in GetElementAsBoolean method in SoapDeSerializer class.

      The current logic behaves as follow:

      XML Boolean(int) returned by GetElementAsBoolean()
      <tag>true</tag> 1
      <tag>false</tag> 1 (BUG, it should return 0)
      <tag>0</tag> 0
      <tag>1</tag> 1
      <tag>5</tag> 1

      Attachments

        1. SoapDeSerializer.cpp.diff
          0.6 kB
          James Guido

        Activity

          People

            samisa Don Samisa Abeysinghe
            james_guido James Guido
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: