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

Share functionality not working with saml group names #918

Open
TeluTrix opened this issue Dec 12, 2024 · 0 comments
Open

Share functionality not working with saml group names #918

TeluTrix opened this issue Dec 12, 2024 · 0 comments

Comments

@TeluTrix
Copy link

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. Migrate groups using the user_saml-app
  2. Log in into your nextcloud instance
  3. Create a folder or upload a file and click on 'Share'
  4. Search for one of the migrated groups you want to share the item with

Expected behaviour

The user should be able to find the group by searching for the display name. The group should be found, no matter which database table it is stored in. The search should work for both the groups in the 'oc_groups' (default nextcloud) table and the groups in the 'oc_user_saml_groups' table (user_saml-app).

Actual behaviour

The groups stored in the 'oc_user_saml_groups' database table (user_saml-app) are ignored when trying to share an item by searching for the display name of a group. The problem only lies with the display name. If the exact id of the saml-group is entered, it does show up.

Interestingly, if a group with the exact same id and name is created normally in Nextcloud (and then stored in the 'oc_groups' database table), it does show up when searching via display name.

I'm a bit confused at this point, is it intended, that there is a normal Nextcloud group for each migrated saml-group (one group in each database table) or is this bug with the search function? On one hand, multiple backends are supported but on the other hand, occ is telling me, that a group with that name already exists (creating two groups with the same name and id in different backends worked fine before Nextcloud version 29+).

Workarounds

Manually create groups with the same id and same name via sql query (Nextcloud version 29+). Before Nextcloud version 28, it was possible to create a default nextcloud group with the exact same id and same name in the 'oc_groups' table. Even if a saml-group in the 'oc_user_saml_groups' table already existed with the same id.

Server configuration

Web server: Apache
Database: Maria
PHP version: 8.2
Nextcloud version: 29.0.7

Browser

Browser name: Firefox
Browser version: 132.0.1
Operating system: Fedora Linux

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

No branches or pull requests

1 participant