-
-
Notifications
You must be signed in to change notification settings - Fork 467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File cannot be renamed when using "prefix" option #193
Comments
Version is:
|
Out of curiosity, where are you trying to move the file to? Note: This may be some edge case mixing the prefix, directory and the permissions. Moving a file checks read and delete permissions at the source and create/update permissions at the destination. |
Just change the file name. |
I think I see the problem: it is probably a configuration problem. @zhousr2023 has the following configuration: users:
- username: zhou
password: crypted
rules:
- permissions: CRUD When defining rules, you have to indicate a path or a Regex pattern. The server startup should be failing in this case, because the rule is invalid. That is a bug, which I will fix. If you want to set the global permissions for a user, you need to do it outside of the rules, which are only meant to be for a specific path or Regex pattern. Try the following instead: users:
- username: zhou
password: crypted
permissions: CRUD Let me know if this works. I will make a fix to ensure that the server actually fails validation of the rules if both the path and the regex are empty. |
by this config
still cannot run MOVE command |
2024-12-31T15:32:17.218+0800 INFO user authorized {"username": "xxx", "remote_address": "11.5.103.71"} |
i use nginx proxy to this webdav server for ssl security . |
Yeah I also have this issue, I have custom code to modify the Destination header from the proxy but it still results in 404 errors. Both macOS and Windows WebDAV clients have this error for me. |
This should be fixed in the new version: 5.7.1, which is being released now. |
after updated to the latest version , problem has solved. Thanks a lots for your hard work and sharing. Happy new year |
I use window to mount the webdav URL,I can create/delete/modify files normally.But I can't rename the file.When I rename file, the log tells me:
here is my configuration
There is no permissions about MOVE, I don't know why.
The text was updated successfully, but these errors were encountered: