On 22.06.2020 15:24, Андрей Троицкий wrote:
Hi everybody,
I have a question regarding the functionality of Jackrabbit WebDAV server.

We have run a standard server and uploaded some files in it. When we
upload a new file with the same name we need to check if the file on the
server is up to date and shouldn't be replaced. The initial idea was to
use ETags but we found it's weak and is not suitable for the
application. So now the idea is to check the checksum (hash) of the
incoming and existing files. As files can be pretty big and downloading
everytime can be a time-consuming operation, it's better to have an
option to easily obtain checksum for already uploaded files.

So my question: are there any options to get a checksum for files
uploaded to the server? Maybe there are some other options or features
that will help in such file handling?

Thanks in advance for your reply!
Regards
Andrey

There is no such way, but it could be added.

There's
<https://greenbytes.de/tech/webdav/draft-ietf-httpbis-digest-headers-02.html>
which is currently under development and could be ready a few months
from now.

In the meantime, a custom WebDAV REPORT probably would be the most
simple approach.

That said, keep in mind that forcing a server to calculate hashes can be
used for DOS attacks, so we need to be a bit careful here - unless we
can figure out a robust way to store the hash with the content.

Best regards, Julian

Reply via email to