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

Binary content in batch requests gets corrupted

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • (Java) V4 4.2.0
    • (Java) V4 4.3.0
    • odata4-server
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: