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

The wire format of the JSON Protocol may not always be valid JSON if it contains non-UTF8 encoded strings

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 0.1
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None

      Description

      Valid JSON is always Unicode. The JSONProtocol does not always have a wire format that conforms to this – strings that are not UTF8 encoded can end up writing bytes into the transport that are not valid UTF8.

      I am trying to come up with a way to handle this that doesn't entail escaping every byte above 0x7F into a 6 byte escape sequence "\uXXXX". Suggestions welcomed.

        Attachments

          Activity

            People

            • Assignee:
              jfarrell Jake Farrell
              Reporter:
              cwalters Chad Walters
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: