studio-b12 / gowebdav

A golang WebDAV client library and command line tool.
BSD 3-Clause "New" or "Revised" License
309 stars 89 forks source link

400 when passing whitespace in path args to c.Copy() #42

Closed mkoci-scala closed 2 years ago

mkoci-scala commented 3 years ago

Hello Collaborators,

Describe the bug

c.Copy() doesn't handle whitespace characters in file/folder names.

Software

To Reproduce

  1. Create a file or folder with whitespace in the name on the remote webdav server.
  2. Make a request with client.Copy with oldpath and newpath being strings with spaces in the name.
  3. 400 Error is returned

Expected Spaces should be handled.

Additional context Add any other context about the problem here.