Renaming of files doesn't work

Expected behaviour

renaming a file on local client and sync’ing it to the server should result in renaming this file on the server

Actual behaviour

client shows error message in “not synchronized” tab:
Server hat “403 Forbidden” auf “MOVE https://owncloud.domain.tls/remote.php/dav/files/user/…” geantwortet
file on the server (webinterface) still exists with its former (unchanged) name

Steps to reproduce

  1. create new file in one of the directories, that the client synchronizes to the server
  2. wait for sync and watch for the client in webbrowser-interface on the server: it is created
  3. change the local name of that file, using the client’s file manager
  4. watch at the clients’ window “activity > not synchronized” and find the message "server answered 403 Forbidden to MOVE https://…/remote.php/dav/files/user/…
  5. watch for the client in webbrowser-interface on the server: the old name is unchanged

Server configuration

Operating system: Linux Kernel 4.15.0 (ubuntu 18.04 LTS)

Web server: apache2 Version 2.4.29

Database: mysql 5.7.29-0ubuntu0.18.04.1

PHP version: 7.2.24-0ubuntu0.18.04.3

ownCloud version: 10.4.0.4

Storage backend (external storage):
no external storage

Client configuration

Client version: Version 2.4.1+dfsg-1
Operating system: Linux Mint 19.3 Tricia
OS language: german

Logs

  1. Client logfile:
    is empty

  2. Web server error log:
    nothing related to renaming of this file

  3. Server logfile: ownCloud log (data/owncloud.log):
    nothing related to renaming of this file

Hey,

maybe your web server is blocking ownCloud from using the “MOVE” operation?

Well, maybe. I looked for “MOVE” in the documentation of my Apache 2.4, but didn’t find any command to restrict or enable MOVE Operation. Can you give me a hint, please?

Hey,

unfortunately i’m not using / knowing Apache so i can’t give any hint. :frowning_face:

But i think maybe a search like https://central.owncloud.org/search?q=403%20forbidden%20move could help?

I tried that already… but didn’t find an answer, that helps me.

The problem is still here. Inbetween i searched for things around the MOVE command, which seems to be rejected by my apach-server, but didn’t find any relating posts or documentation. Can anyone give me a hint how to get the MOVE command working or where the documentation for this can be found?

Could you elaborate a little?

Did you ever manage to get it to work and only a recent change broke the move command? If yes revert your last change and figure out why it broke it.

Otherwise, if you never got it to work from the initial setup, I would recommend to see what you have done differently from the official documentation:
https://doc.owncloud.org/server/10.4/admin_manual/installation/ubuntu_18_04.html

1 Like

Some additional things to check:

  • Any weird non-ascii char in the filename (both in the old and new name)?
  • Does the rename work properly through web UI?
2 Likes

Renaming through webUI works fine.

After removing all synchronization tasks from my desktop client an re-establishing new ones, it works. Seems that the client had a struggled situation.

Thanks for all your answers!

2 Likes