Skip to content

Unable to share with create permissions in shared folder which is in a group folder #4173

@KoltesDigital

Description

@KoltesDigital

Describe the task

Hi. We apparently found a bug.

Reproduction:

  1. Create users Alice and Bob. You act as Alice. She's admin.
  2. Create a user group UG and add Bob to that group. Alice is not in that group.
  3. Create a group folder GF. Give it permissions Write for user group UG and all permissions (Write, Share, Delete) for admin group.
  4. Create a folder ToDo inside GF.
  5. Share folder ToDo with user group UG.
  6. Impersonate Bob.
  7. Open folder ToDo.
  8. Notice that you cannot create any file. The + New button is greyed. Tooltip says you don't have permission to upload or create files here.

It would work if folder ToDo were created in a user space and shared from there.

The bug may also appear when sharing directly to Bob, but I haven't tried that case.

When sharing the folder, I take for granted that Create permission is given, because in Admin settings > Sharing > Default permissions, everything is checked. When I choose Custom permissions, everything is checked, and when I save that and later refresh the browser, the share is shown again as "Can read".

Can you reproduce the bug? Thanks :)

NC version is Nextcloud Hub 9 (30.0.14).

Affected components

No response

To do

  • Fix

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions