mholt / caddy-webdav

WebDAV handler module for Caddy
Apache License 2.0
228 stars 24 forks source link

The webdav service filter some files for unknown reason #31

Closed xtay573269555 closed 1 year ago

xtay573269555 commented 2 years ago

The caddy and webdav module is downloaded today from the homepage.

Caddyfile :

{
    admin off
    auto_https off
    local_certs
    order webdav before file_server
}

:9999 {
    encode gzip
    root * /data      
    file_server browse
    tls /root/caddy/server.cert /root/caddy/server.key

    webdav /webdav/* {
        root /data
        prefix /webdav
    }
}

Step 1

Generate some text files as the snapshot, then refresh the webdav directory, no any text file is shown.

snapshot_20221019142605

Step 2

Then, just rename the text file to another filetype as the snapshot, and refresh the webdav directory again, one of them appeared.

snapshot_20221019143333

Step 3

Let's continue. This time i just rename the filename, did not change the filetype. Here is the snapshot.

snapshot_20221019143559

Step 4

Not only text files is filtered strangely, other filetype is the same. Here is another test.

snapshot_20221019144319

This is my webdav client conf:

snapshot_20221019144626

I dont know why and how to resolve it. Thanks.

mholt commented 1 year ago

@xtay573269555 Is this no longer an issue?

Sorry I haven't replied -- been busy -- but I did see this.

xtay573269555 commented 1 year ago

Yes. It is working well after i delete the folder named "lost+found". The parent directory(/data) is a mount point using a remote disk.

xtay573269555 commented 1 year ago

It doesnt matter. I sometimes ignoring too.