2

I can't move specific files on our server via webdav forth and back and can't find the source of the issue. Some examples:

Works: README.md -> README1.md -> README.md

Works: db.xml.gz -> db.xml.bla -> db.xml.gz

Doesn't work: db.xml.gz -> db.xml.gz.lock -> db.xml.gz (results in 404)

Tried it with cadaver:

dav:/webdav/User/> ls
Listing collection `/webdav/User/': succeeded.
        .htaccess                            117  Jun  6  2018
        db.xml.gz                            635  Feb  7 21:36
dav:/webdav/User/> mv db.xml.gz db.xml.gz.lock
Moving `/webdav/User/db.xml.gz' to `/webdav/User/db.xml.gz.lock':  succeeded.
dav:/webdav/User/> mv db.xml.gz.lock db.xml.gz
Moving `/webdav/User/db.xml.gz.lock' to `/webdav/User/db.xml.gz':  failed:
404 Not Found
dav:/webdav/User/> ls
Listing collection `/webdav/User/': succeeded.
        .htaccess                            117  Jun  6  2018
        db.xml.gz.lock                       635  Feb  7 21:36
dav:/webdav/User/> mv db.xml.gz.lock db.xml
Moving `/webdav/User/db.xml.gz.lock' to `/webdav/User/db.xml':  failed:
404 Not Found
dav:/webdav/User/> mv db.xml.gz.lock db.bla
Moving `/webdav/User/db.xml.gz.lock' to `/webdav/User/db.bla':  succeeded.
dav:/webdav/User/> mv db.bla db.blubb
Moving `/webdav/User/db.bla' to `/webdav/User/db.blubb':  succeeded.
dav:/webdav/User/> mv db.blubb db.bla
Moving `/webdav/User/db.blubb' to `/webdav/User/db.bla':  succeeded.

It seems to fail if the source is the same as the target plus additional file endings. I read that some windows servers skip the file ending which causes issues, but this is a Linux machine. Any ideas highly appreciated!

frauzufall
  • 57
  • 1
  • 6
  • Is your host machine a Windows machine? (not the server on which you're running these commands.) If so maybe it the Windows file extension problem you mentioned is getting you? – duhaime Feb 09 '19 at 14:15
  • No, the host machine is Linux as well. – frauzufall Feb 10 '19 at 12:39

1 Answers1

0

I found this bug report with the solution: Disabling MultiViews in the apache host configuration fixed the issue. MultiViews was preventing me basically from renaming some file extensions.

frauzufall
  • 57
  • 1
  • 6