nextcloud / groupfolders

πŸ“πŸ‘©β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Admin-configured folders shared by everyone in a group. https://github.com/nextcloud-releases/groupfolders
https://apps.nextcloud.com/apps/groupfolders
279 stars 85 forks source link

Unable to rename and/or delete files/folders in a GroupFolder #1181

Open JOduMonT opened 3 years ago

JOduMonT commented 3 years ago

Same here, I'm unable to rename any GroupFolder

I used FlowUpload to upload few GiB in 5 differents GroupFolders

When I try to rename the content inside these GroupFolders

now I'm stuck, because I can't even move and/or delete the data of these GroupFolders

Originally posted by @JOduMonT in https://github.com/nextcloud/groupfolders/issues/290#issuecomment-745723036

ghost commented 3 years ago

I'm expiring the same issue

JOduMonT commented 3 years ago

I'm expiring the same issue

I guess the only thing we could do, is deleting these directories with the console than re-indexing the files with occ https://docs.nextcloud.com/server/15/admin_manual/configuration_server/occ_command.html#file-operations-label

chridiby commented 3 years ago

Hi, i am new to NextCloud and doing some tests. I'm expiring the same issue. Can you try something? On my installation, i have "advanced permissions" activated on the group folders - settings. After deactivating "advanced permissions", i am able to rename and move the folders. Activating them again -> no renaming is possible.

Maybe that helps...

JOduMonT commented 3 years ago

Activating them again -> no renaming is possible.

on my side advanced permissions is not enabled

pierreozoux commented 3 years ago

In my case, I found that bug too.

I could delete but couldn't move nor rename.

The issue is a Γ© in the username of the user.

This looks like related to https://github.com/nextcloud/server/issues/18298

and got this response in the browser logs:

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\Forbidden</s:exception>
  <s:message>Requested uri () is out of base uri (/remote.php/dav/)</s:message>
</d:error>

This was the requested path:

MOVE | https://cloud.tld.org/remote.php/dav/files/h%C3%A9l%C3%A8ne/groupfolder/test-deplacer/test1

Username is hélène that should be encoded: h%C3%A9l%C3%A8ne which is correct.

I'm wondering if it is nginx or php or nextcloud that is the responsible for this error, I'll continue digging.

Daksol commented 3 years ago

From my use of Group Folders I have found that it is never possible to rename them - except possibly before they have any content. And you cannot rename Groups either, so it pays to get all that detail right first time.

Not sure if I understand the problem being encountered by @Jodumont, but these steps may be useful

Standard GUI for the Group Folders configuration allows anyone in the Admin group to update the permissions for any given folder, with a URL like __https://SOMEHOSTNAME/index.php/settings/admin/groupfolders

pierreozoux commented 3 years ago

@JOduMonT was there special char in the username that got this error?

JOduMonT commented 3 years ago

@JOduMonT was there special char in the username that got this error?

not in the username nor in a directory name, but probably in a files

vdietmar commented 1 year ago

I have just run into the same issue, i.e. I cannot rename a folder that I created in a Group Folder. The user who created the folder has a special (German) character in his clear name (nor user name). The folder does not have any special characters. Other folders in the same Group Folder can be renamed.

Oh, I can also not delete the folder, that's interesting as well. Neither can admin.

I am stuck as I don't have access to OCC (hosted/managed Nextcloud at IONOS).

Is this still open? Not sure I agree with it being qualified as "No or low priority", currently.

Nextcloud: 24.0.7 Enterprise Group Folders: 12.0.3

mkbrechtel commented 1 year ago

I can confirm that this problem is there in Nextcloud 25.0.6.1. I will try to update our instalation and check if it also occurs in Nextcloud 26.

@fschrempf Please reevalute the priority of this ticket.

fschrempf commented 1 year ago

@fschrempf Please reevalute the priority of this ticket.

Actually I'm just a community member who helped out with issue triaging in the past. The assigned priority doesn't have a meaning at all as the chances are low that any "active" NC developer even cares at all.

joshtrichards commented 12 months ago

@JOduMonT wrote:

via WebDav I simply receive an Error: Internal Server Error

Can you (or anyone really) provide the stack trace associated with one of these transactions from your nextcloud.log?

Fiodin commented 11 months ago

I am having the same problem and i can't delete folders inside a groupfolder.

Here is my log when trying to delete a folder: [webdav] Fehler: TypeError: OC\Files\Cache\QuerySearchHelper::getCachesAndMountPointsForSearch(): Argument #1 ($root) must be of type OC\Files\Node\Root, OC\Files\Node\LazyRoot given, called in /var/www/cloud/lib/private/Files/Node/Folder.php on line 238 at <>

  1. /var/www/cloud/lib/private/Files/Node/Folder.php line 238 OC\Files\Cache\QuerySearchHelper->getCachesAndMountPointsForSearch()
  2. /var/www/cloud/lib/private/Files/Node/Folder.php line 292 OC\Files\Node\Folder->search()
  3. /var/www/cloud/apps/music/lib/Utility/Scanner.php line 380 OC\Files\Node\Folder->searchByMime()
  4. /var/www/cloud/apps/music/lib/Hooks/FileHooks.php line 42 OCA\Music\Utility\Scanner->deleteFolder()
  5. <> OCA\Music\Hooks\FileHooks::deleted()
  6. /var/www/cloud/lib/private/Hooks/EmitterTrait.php line 105 call_user_func_array()
  7. /var/www/cloud/lib/private/Hooks/PublicEmitter.php line 40 OC\Hooks\BasicEmitter->emit()
  8. /var/www/cloud/lib/private/Files/Node/Root.php line 143 OC\Hooks\PublicEmitter->emit()
  9. <> OC\Files\Node\Root->emit()
  10. /var/www/cloud/lib/private/Files/Node/LazyFolder.php line 73 call_user_func_array()
    1. /var/www/cloud/lib/private/Files/Node/LazyFolder.php line 101 OC\Files\Node\LazyFolder->__call()
    2. /var/www/cloud/lib/private/Files/Node/HookConnector.php line 145 OC\Files\Node\LazyFolder->emit()
    3. /var/www/cloud/lib/private/legacy/OC_Hook.php line 105 OC\Files\Node\HookConnector->delete()
    4. /var/www/cloud/lib/private/Files/View.php line 1257 OC_Hook::emit()
    5. /var/www/cloud/lib/private/Files/View.php line 1126 OC\Files\View->runHooks()
    6. /var/www/cloud/lib/private/Files/View.php line 321 OC\Files\View->basicOperation()
    7. /var/www/cloud/apps/dav/lib/Connector/Sabre/Directory.php line 307 OC\Files\View->rmdir()
    8. /var/www/cloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 179 OCA\DAV\Connector\Sabre\Directory->delete()
    9. /var/www/cloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 281 Sabre\DAV\Tree->delete()
    10. /var/www/cloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89 Sabre\DAV\CorePlugin->httpDelete()
    11. /var/www/cloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472 Sabre\DAV\Server->emit()
    12. /var/www/cloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253 Sabre\DAV\Server->invokeMethod()
    13. /var/www/cloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321 Sabre\DAV\Server->start()
    14. /var/www/cloud/apps/dav/lib/Server.php line 364 Sabre\DAV\Server->exec()
    15. /var/www/cloud/apps/dav/appinfo/v2/remote.php line 35 OCA\DAV\Server->exec()
    16. /var/www/cloud/remote.php line 172 require_once("/var/www/cloud/ ... p")

DELETE /remote.php/dav/files/popelhans/Fotos/test from 91.47.254.71 by popelhans at 2023-10-17T09:14:06+00:00

By testing with that error i can say the following things: