[Help] WebDav 412 HTTP error

SMB, NFS, FTP, web file manager and Rsync server.
Post Reply
User avatar
SergP
Posts: 8
Joined: 06 May 2025, 19:18
Russia

[Help] WebDav 412 HTTP error

Post by SergP »

Hi!
I get the 412 Precondition Failed error when I try to rename or move something via the embedded WebDAV server over HTTPS.

CyberDuck shows the error "Unexpected response (412 Precondition Failed)."

I tried to connect using the hostname, IP address, and WebDAV port proxying via SSH. The result is the same everywhere.

How can I understand why this is so?
User avatar
SergP
Posts: 8
Joined: 06 May 2025, 19:18
Russia

Re: [Help] WebDav 412 HTTP error

Post by SergP »

I also get this error over HTTP webdav.
BUT if I connect webdav as a folder in the TOS itself at 127.0.0.1:port, then it can rename and move files without this error.
User avatar
SergP
Posts: 8
Joined: 06 May 2025, 19:18
Russia

Re: [Help] WebDav 412 HTTP error

Post by SergP »

It seems that the webdav client built into TOS does not fully comply with the standard and therefore works
User avatar
CursaYang
TM Support
Posts: 740
Joined: 06 Jan 2025, 16:34
China

Re: [Help] WebDav 412 HTTP error

Post by CursaYang »

What model and system version are you currently running?
To contact our team, please send email to following addresses, remember to replace (at) with @

Technical team: support(at)terra-master.com(for technical support)
Service team: service(at)terra-master.com(for purchasing, return, replacement, RMA service)
User avatar
SergP
Posts: 8
Joined: 06 May 2025, 19:18
Russia

Re: [Help] WebDav 412 HTTP error

Post by SergP »

model F8
ver 6.0.673

I debugged through curl and found out that this is because the clients (macOS finder and Cyberduck) send the Overwrite:F header if the new file name does not exist and then the webdav server rejects the request. If you force Overwrite:T, then renaming and moving works.
It seems that this is incorrect server behavior. If Overwrite:F and the target file does not exist, this should work.
Post Reply

Return to “File Services”