-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Moving from one shared folder to a different shared folder fails (database gets out of sync) #4169
Comments
Let me summon @icewind1991 |
I had the same issue :/ |
In the past we blocked moving one mount point into another one because this create a lot of problems for re-shares, allow to create share-circles, etc. I think that's still true, right? So what we need to fix here is the check for moving one mount point into another one and block it. Or did I miss something, @rullzer ? |
@schiessle it is not moving the mount point it is moving a subfolder of a mount point. |
ah, I see... maybe a permission issue? user 'c' needs to have delete permissions of "da" and create permissions on "db".... I read nothing about the share permissions in this thread that's why I'm asking. |
I did not move the mount point itself (“shared folder“ symbol in the root directory) but a subdirectory from one shared folder to another one (as @rullzer said). Interestingly, moving a single file from one share to a different share seems to work. Permissions are not the problem. Full access was granted for all shares. I was also able to reproduce this using only two users. User "b" shares two directories "d1" and "d2". User "a" is not able to successfully move a subdirectory of "d1" to a location anywhere in "d2". |
You move it via webdav I assume? Or in the webinterface? |
Mmmm I'm getting a permission denied (not ideal but at least no data is lost) Steps I took
|
No, I move the files with the web ui (which seems to issue a I perform exactly the same steps as @rullzer described. I don’t get a Additionally, I think that this operation should not lead to any error and has to be implemented correctly as moving folders between shares is a very common workflow. A workaround is to let |
Should be fixed with #4329 |
I'm not so sure @MorrisJobke. Sice hte bug that is fixes by #4329 was not really present in 11 yet. |
Some quick testing suggests that this on is fixed now |
@fgrsnau mmm good to know it is fixed. But not so good that we don't know why. |
Steps to reproduce
Expected behaviour
The directory should visible in db.
Actual behaviour
The move fails with an generic error. The underlying files are moved to directory "db". The database query fails and the database is not updated. All files are "visible" in "da" but are inaccessible. An
occ files:scan --all
fixes this.Server configuration
Operating system: Debian Stable
Web server: ngnix
Database: Postgres 9.4
PHP version: PHP 5.6.30-0+deb8u1
Nextcloud version: 11.0.2 (stable)
Updated from an older Nextcloud/ownCloud or fresh install: Any (tested 3 different servers, one of them was freshly installed)
Where did you install Nextcloud from: Website
List of activated apps:
Only stock NextCloud.
Are you using encryption: no
Are you using an external user-backend, if yes which one: LDAP, but reproducible without any external user-backend
NextCloud Logs
I was digging a little bit deeper today. The failure is visible in
server/lib/private/Files/Cache/Cache.php
Line 515 in 4821c00
ERROR: invalid input syntax for integer: \"\"
I tracked this value back to
server/apps/files_sharing/lib/Cache.php
Line 81 in 4821c00
Somehow the
$sourceCache
is not populated correctly (the numericId is not set). Currently I do not now how to debug this further.The text was updated successfully, but these errors were encountered: