lunhsu

Hi Storage Made Easy,

I'm the WebDAV developer who is interested about SME!
Recently I'd like to write the code to operate SME storage.

It' great that I can leverage Python's requests to operate SME storage.
For example, I can use WebDAV API to interact with SME such as PUT to upload a file, GET to download a file, and MKCOL to create a folder, etc.

However, I have a question that when I use COPY/MOVE to copy/move a file, I get 403 error!
Here is my requests:

input url: https://webdav.storagemadeeasy.com:443/tmp/3.txt
input method: COPY
input header: {'headers': {'Destination': 'https://webdav.storagemadeeasy.com:443/test/4.txt', 'Overwrite': 'T'}}

output code: 403
output header: {'Content-Length': '0', 'Strict-Transport-Security': 'max-age=15768000', 'Expires': 'Thu, 19 Nov 1981 08:52:00 GMT', 'Vary': 'Authorization', 'Server': 'Apache', 'Date': 'Tue, 08 Mar 2016 07:27:02 GMT', 'Content-Type': 'text/xml; charset="utf-8"'}

I'm sure that /tmp/3.txt exists in SME storage, but this operation is forbidden.
May I know why it will be forbidden when I use COPY/MOVE?

Will SME support COPY/MOVE for WebDAV operation in the future?

Many thanks,
Lun

Quote
Igor
SME support COPY and MOVE for WebDAV.

Try to remove ":433" from URL and "Destination".
Quote