-
Notifications
You must be signed in to change notification settings - Fork 667
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
Forbidden when Move or Rename Files or Folders #6824
Comments
@georgeoftown As no one else is reporting this, I think this could be a problem of how you configured ownCloud/PHP in your Apache config? Can you paste this here? |
Here is the configuration we have Apache conf Apache mpm Apache php-fpm fpm pool conf Thanks |
@georgeoftown I tried removing the slash in the owncloud.cfg (%AppData%\ownCloud), restarted the desktop client and uploaded some folders/files then renamed/moved them and haven't gotten an error yet. |
The problem is most likely the extra slash here: client/src/libsync/propagateremotemove.cpp Lines 92 to 93 in 319472e
since the dav path already starts with a /. |
@ogoffart @pumasloth @georgeoftown ˜Thanks. we should fix this for 2.5.1 |
It turns out that QDir::cleanPath on windows leaves the starting slashes on windows, as it can mean something. |
QDir::cleanPath does not remove starting slashes on windows. So use account::davUrl which is already cleaned Issue: #6824
QDir::cleanPath does not remove starting slashes on windows. So use account::davUrl which is already cleaned Issue: #6824
Thanks |
Expected behaviour
Move or rename file or folder
Actual behaviour
403 Forbidden MOVE
Steps to reproduce
Server configuration
Operating system:
Debian 9.5
Web server:
Apache/2.4.25
Database:
mysql Ver 15.1 Distrib 10.1.26-MariaDB
PHP version:
PHP 7.0.30-0+deb9u1
ownCloud version:
10.0.10
Client configuration
Client version:
2.5.0 (build 10560)
Operating system:
Windows 10
OS language:
ES
Logs
owncloud --logwindow
orowncloud --logfile log.txt
look the 3 slash together ///
https://gist.github.com/georgeoftown/614821c3bef3ddc074893c5f65d0fd63#file-owncloud-log
Possible solutions
client/src/libsync/propagateremotemove.cpp
Line 50 in 319472e
The text was updated successfully, but these errors were encountered: