Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3968

Deserializing empty string/binary fields

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.3
    • Fix Version/s: 0.11.0
    • Component/s: C glib - Library
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Flags:
      Patch

      Description

      If we use a string inside struct definition and set the value to "" (empty string, not NULL) when de-serializing it we get set it NULL and and the same time the __isset field for this value is set to TRUE which is think is not correct.

      Either we fix the library to return an empty string, or fix the compiler to set the __isset filed to FALSE.

      What would be the best way to solve this?
      Please, let me know if you need any more information.

        Attachments

          Activity

            People

            • Assignee:
              simonsouth Simon South
              Reporter:
              matejkupljen Matej Kupljen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: