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

Deserializing empty string/binary fields

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.3
    • 0.11.0
    • C glib - Library
    • None
    • Patch Available
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: