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

binary data may cause a failure with JSON transport under specific circumstances

    XMLWordPrintableJSON

    Details

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

      Description

      The Go implementation relies on base64.StdEncoding.Decode which expects the base64 encoding to be complete with padding.

      With Thrift it is legal to transfer binary data via JSON without padding, but the standard package can't handle this and returns an error instead ("invalid base64 data at offset N").

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jensg Jens Geyer
                Reporter:
                jensg Jens Geyer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: