Commons VFS
  1. Commons VFS
  2. VFS-261

WebDAV upload corrupts binary files

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Labels:
      None

      Description

      When uploading a binary file to a WebDAV folder it gets corrupted. This happens because the binary file gets encoded with the default charset (see String.getBytes()).

        Activity

        Hide
        Simon Olofsson added a comment -

        Works. Thanks!

        Show
        Simon Olofsson added a comment - Works. Thanks!
        Hide
        Ralph Goers added a comment -

        Patch applied. Please verify and close.

        Show
        Ralph Goers added a comment - Patch applied. Please verify and close.
        Hide
        Simon Olofsson added a comment -

        Patch that fixes this issue, by using a ByteArrayRequestEntity not a StringRequestEntity.

        Show
        Simon Olofsson added a comment - Patch that fixes this issue, by using a ByteArrayRequestEntity not a StringRequestEntity.

          People

          • Assignee:
            Unassigned
            Reporter:
            Simon Olofsson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development