Skip to content
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

NC 16 & Group folders 4: Can't move files or folders between different group folders #429

Closed
jpbraun opened this issue May 12, 2019 · 14 comments
Labels
0. Needs triage Issues that need to be triaged

Comments

@jpbraun
Copy link

jpbraun commented May 12, 2019

It is not possible to move files or folders between different group folders ever if the group folders have the same permissions.

@MaxGitHubAccount
Copy link

MaxGitHubAccount commented May 15, 2019

I am having the same issue moving files or folders from a non-group-folder to a folder.

I am also seeing an error in the nextcloud logs.

I am trying to move the file "test-log-for-git.txt" from the Folder "Dokumente" which is owned by my user and shared to another user to a group folder "Dokumente-Test" which is available to a group with both users and full access.

{"reqId":"mhSxc8r7L85w1KFp9GLs","level":4,"time":"2019-05-15T11:47:49+00:00","remoteAddr":"88.130.78.57","user":"max","app":"webdav","method":"MOVE","url":"/remote.php/dav/files/max/Dokumente/test-log-for-git.txt","message":{"Exception":"BadMethodCallException","Message":"path needs to be relative to the system wide data folder and point to a user specific file","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":347,"function":"getUidAndFilename","class":"OC\Encryption\Util","type":"->","args":["/__groupfolders/1/test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":298,"function":"getPathToKeys","class":"OC\Encryption\Keys\Storage","type":"->","args":["/__groupfolders/1/test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":988,"function":"copyKeys","class":"OC\Encryption\Keys\Storage","type":"->","args":["/max//files/Dokumente/test-log-for-git.txt","/__groupfolders/1/test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":734,"function":"copyKeys","class":"OC\Files\Storage\Wrapper\Encryption","type":"->","args":["/max//files/Dokumente/test-log-for-git.txt","/__groupfolders/1/test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":621,"function":"copyBetweenStorage","class":"OC\Files\Storage\Wrapper\Encryption","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/Dokumente/test-log-for-git.txt","/__groupfolders/1/test-log-for-git.txt",true,true]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":574,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Encryption","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/Dokumente/test-log-for-git.txt","/__groupfolders/1/test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Jail.php","line":505,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/Dokumente/test-log-for-git.txt","/__groupfolders/1/test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php","line":198,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Jail","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/Dokumente/test-log-for-git.txt","test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":574,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Quota","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/Dokumente/test-log-for-git.txt","test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":574,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/Dokumente/test-log-for-git.txt","test-log-for-git.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":813,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/Dokumente/test-log-for-git.txt","test-log-for-git.txt"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":440,"function":"rename","class":"OC\Files\View","type":"->","args":["/Dokumente/test-log-for-git.txt","/Dokumente-Test/test-log-for-git.txt"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":158,"function":"moveInto","class":"OCA\DAV\Connector\Sabre\Directory","type":"->","args":["test-log-for-git.txt","files/max/Dokumente/test-log-for-git.txt",{"class":"OCA\DAV\Connector\Sabre\File"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":642,"function":"move","class":"Sabre\DAV\Tree","type":"->","args":["files/max/Dokumente/test-log-for-git.txt","files/max/Dokumente-Test/test-log-for-git.txt"]},{"function":"httpMove","class":"Sabre\DAV\CorePlugin","type":"->","args":[{"absoluteUrl":"https://--my-domain--/remote.php/dav/files/max/Dokumente/test-log-for-git.txt","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"class":"Sabre\DAV\CorePlugin"},"httpMove"],[{"absoluteUrl":"https://--my-domain--/remote.php/dav/files/max/Dokumente/test-log-for-git.txt","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\Event\EventEmitter","type":"->","args":["method:MOVE",[{"absoluteUrl":"https://--my-domain--/remote.php/dav/files/max/Dokumente/test-log-for-git.txt","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->","args":[{"absoluteUrl":"https://--my-domain--/remote.php/dav/files/max/Dokumente/test-log-for-git.txt","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":301,"function":"exec","class":"Sabre\DAV\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\DAV\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":163,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Encryption/Util.php","Line":236,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0","version":"15.0.7.0","id":"5cdbfc66816df"}

Same happens from the Nextcloud root directory of my user for the file "test-log-for-git2.txt" to the same directory "Dokumente-Test"

{"reqId":"frTGG6MRjSD9FFMXWmKT","level":4,"time":"2019-05-15T11:49:54+00:00","remoteAddr":"88.130.78.57","user":"max","app":"webdav","method":"MOVE","url":"/remote.php/dav/files/max/test-log-for-git2.txt","message":{"Exception":"BadMethodCallException","Message":"path needs to be relative to the system wide data folder and point to a user specific file","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":347,"function":"getUidAndFilename","class":"OC\Encryption\Util","type":"->","args":["/__groupfolders/1/test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Encryption/Keys/Storage.php","line":298,"function":"getPathToKeys","class":"OC\Encryption\Keys\Storage","type":"->","args":["/__groupfolders/1/test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":988,"function":"copyKeys","class":"OC\Encryption\Keys\Storage","type":"->","args":["/max//files/test-log-for-git2.txt","/__groupfolders/1/test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":734,"function":"copyKeys","class":"OC\Files\Storage\Wrapper\Encryption","type":"->","args":["/max//files/test-log-for-git2.txt","/__groupfolders/1/test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php","line":621,"function":"copyBetweenStorage","class":"OC\Files\Storage\Wrapper\Encryption","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/test-log-for-git2.txt","/__groupfolders/1/test-log-for-git2.txt",true,true]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":574,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Encryption","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/test-log-for-git2.txt","/__groupfolders/1/test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Jail.php","line":505,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/test-log-for-git2.txt","/__groupfolders/1/test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Quota.php","line":198,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Jail","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/test-log-for-git2.txt","test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":574,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Quota","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/test-log-for-git2.txt","test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":574,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/test-log-for-git2.txt","test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":813,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->","args":[{"cache":null,"scanner":{"class":"OC\Files\Cache\Scanner"},"watcher":null,"propagator":null,"updater":null,"class":"OCA\Files_Trashbin\Storage"},"files/test-log-for-git2.txt","test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":440,"function":"rename","class":"OC\Files\View","type":"->","args":["/test-log-for-git2.txt","/Dokumente-Test/test-log-for-git2.txt"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":158,"function":"moveInto","class":"OCA\DAV\Connector\Sabre\Directory","type":"->","args":["test-log-for-git2.txt","files/max/test-log-for-git2.txt",{"class":"OCA\DAV\Connector\Sabre\File"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":642,"function":"move","class":"Sabre\DAV\Tree","type":"->","args":["files/max/test-log-for-git2.txt","files/max/Dokumente-Test/test-log-for-git2.txt"]},{"function":"httpMove","class":"Sabre\DAV\CorePlugin","type":"->","args":[{"absoluteUrl":"https://--my-domain--/remote.php/dav/files/max/test-log-for-git2.txt","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php","line":105,"function":"call_user_func_array","args":[[{"class":"Sabre\DAV\CorePlugin"},"httpMove"],[{"absoluteUrl":"https://--my-domain--/remote.php/dav/files/max/test-log-for-git2.txt","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":479,"function":"emit","class":"Sabre\Event\EventEmitter","type":"->","args":["method:MOVE",[{"absoluteUrl":"https://--my-domain--/remote.php/dav/files/max/test-log-for-git2.txt","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":254,"function":"invokeMethod","class":"Sabre\DAV\Server","type":"->","args":[{"absoluteUrl":"https://--my-domain--/remote.php/dav/files/max/test-log-for-git2.txt","class":"Sabre\HTTP\Request"},{"class":"Sabre\HTTP\Response"}]},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":301,"function":"exec","class":"Sabre\DAV\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\DAV\Server","type":"->","args":[]},{"file":"/var/www/nextcloud/remote.php","line":163,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Encryption/Util.php","Line":236,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0","version":"15.0.7.0","id":"5cdbfce2b74bc"}

I am aware that I could simply copy and paste the files via a client, but I want to keep the tags, versions etc of my files and because of this want to move the files.

Creating files in the group folder works, moving files via a desktop client delivers a 500 error in the client.

Nextcloud version Nextcloud 15.0.7
Group folder version 3.0.2
Server setup debian stretch as lxd container with apache, mariadb, redis

@icewind1991
Copy link
Member

@jpbraun do you have advanced permissions enabled for the folders?

@jpbraun
Copy link
Author

jpbraun commented May 17, 2019

@icewind1991 Yes. Both folders have advanced permissions.

@jpbraun
Copy link
Author

jpbraun commented May 19, 2019

It is probably another problem. I can't open or download the files. I tried deleting and changing the permissions and much more.

Screenshot 1
2019-05-19_174913

Screenshot 2
image

Screenshot 3 (OnlyOffice)
image

Screenshot 4 (Download)
image

Screenshot 5 (Download folder)
image

Screenshot 6 (WebDav)
image

@MaxGitHubAccount
Copy link

I just tried the same for nextcloud 16 and group folders 4 on debian buster. I am getting the same error and cannot move files from non-group-folders to group folders. As jpbraun is describing a slightly different problem I am wondering if I should open a new issue.
Also I tried with and without advanced permissions and it won't work.

@langfingaz
Copy link

Are group folders implemented through external storages? If yes, then maybe this has to do with external storage support. That's at least where I faced very similar problems moving files into and out of external folders: nextcloud/server#15227

@jpbraun
Copy link
Author

jpbraun commented May 24, 2019

Our group folders are not implemented through external storage.
I disabled the App "External storage support". Same problem as before.

@langfingaz
Copy link

Hm ok, I just read that folders will appear as external storage in the README file of this groupfolders project (last bullet point under Notes), but I'm not a developer and don't know the actual implementation of how the group folders are handled in Nextcloud.

@MaxGitHubAccount
Copy link

Hm ok, I just read that folders will appear as external storage in the README file of this groupfolders project (last bullet point under Notes), but I'm not a developer and don't know the actual implementation of how the group folders are handled in Nextcloud.

Maybe that's because they have a special icon and are configured in the admin panel instead of creating them in the files - this is also the same for external storage.

@jkoopmann
Copy link

Just hit the very same problem which unfortunately leaves this useless for me at the moment.... Any ideas on this so far?

@ElmarJongerius
Copy link

Same issue. Group folders are really important for our use, but they started misbehaving.
Moving files (on Win7 / Win10) is problematic, as is renaming.

@sbocahu
Copy link

sbocahu commented Mar 24, 2020

+1

@Vitriia
Copy link

Vitriia commented Mar 28, 2020

I have the same issue on my side.
I have :

  • Decrypted all my files
  • Disabled encryption
  • Disabled the encryption app

And after it's worked fine. I think there is an issue between the Encryption app and the Group Folder app

@pierreozoux
Copy link
Member

encryption is not yet supported #912

and the move part is duplicate of #243

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Issues that need to be triaged
Projects
None yet
Development

No branches or pull requests

9 participants