Uploaded image for project: 'Olingo'
  1. Olingo
  2. OLINGO-1003

Binary content in batch requests gets corrupted

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: (Java) V4 4.2.0
    • Fix Version/s: (Java) V4 4.3.0
    • Component/s: odata4-server
    • Labels:
      None

      Description

      Batch requests can contain binary data e.g. for a media entity. BatchLineReader reads the binary data as a UTF-8 string and BatchRequestTransformator tries to extract the original bytes from the UTF-8 string.
      Converting arbitrary binary data into an UTF-8 string and retrieving the bytes from the UTF-8 string will not always return the original bytes the string was created from.
      Don't interpret binary data as strings.

      I have attached a fix for the testcase for binary data in BatchRequestParserTest which doesn't compare binary data but compares strings.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chrisam Christian Amend
                Reporter:
                frederik.zimmer Frederik Zimmer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: