Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-111

Content streams not correctly served

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Later
    • None
    • None
    • chemistry-old
    • None

    Description

      When downloading (binary) content from the server the contents are not correct. This seems to be because a SizedMediaResponseContext is treated as non-binary, resulting in written out to the request context´ s writer instead of outputstream.
      A simple reproduction case is: run the org.apache.chemistry.test.MainServlet from the chemistry-test module upload a zip file and try to download it again. The resulting download does not have the same size as the original and the archive is corrupted.

      A simple fix will be to make the SizedMediaResponseContext binary. I'll attach a patch file for this.

      Attachments

        1. media-binary.txt
          0.6 kB
          Hinse ter Schuur

        Activity

          People

            Unassigned Unassigned
            haterschuur Hinse ter Schuur
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment