Skip to content

Cannot remove group with leading slash from team folder access #5056

Description

@Snektron

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Create a group with a leading slash in the name, for example /Testing.
  2. Create a team folder and give the group access. Refresh the page: /Testing should properly show up under the list of groups that have access.
  3. Remove /Testing from the list of groups. It seems to be removed, but if you refresh the page, it reappears.

Expected behaviour

/Testing should be removed from the list of groups that have access to the team folder.

Actual behaviour

Its only removed in the UI until page refresh, so the group is not actually removed in the background.

I suspect that the problem is related to automatic "fixing" of the request URL, since the deletion request would look something like index.php/apps/groupfolders/folders/123/groups//Testing. It might get rewritten into something like index.php/apps/groupfolders/folders/123/groups/Testing, and then fails. What is surprising to me is that the response is OK, with a list of "new" groups, which still includes the group that I want to delete. Nor did the nextcloud logs indicate any error during group deletion.

Server configuration

Operating system: Ubuntu 20

Web server: Apache 2 (from docker nextcloud image)

Database: N/A

PHP version: 8.5.9

Nextcloud version: 34.0.2

Team folders version: 22.0.6

Updated from an older Nextcloud/ownCloud or fresh install: Updated from an older install

Where did you install Nextcloud from: nextcloud:latest. Not sure which hash exactly.

Are you using external storage, if yes which one: N/A

Are you using encryption: N/A

Are you using an external user-backend, if yes which one: N/A

Client configuration

Browser: Firefox

Operating system: NixOS 26.05

Logs

Nextcloud logs did not include anything relevant.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions