Repository navigation
[Bug]: User group list and external storage share dropdown sorting is based on outdated name (Incomplete group rename) #43233
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
After renaming a user group, some lists will not update (sort) to the updated group name.
Affected modules:
- User administration panel: The user group list (left menu bar)
- External storage: The share dropdown lists (group shares suggestions)
NOT affected:
- User administration panel: User group membership (group suggestions)
As mentioned this problem is not present in all interfaces. A also checked the database layouts and the initial name upon creating a group is persisting in some columns even after the group was renamed. I suggest that database columns that contain duplicated information might be able to be refactored / merged / cleaned up to prevent such issues in the first place. Different interfaces seem to pull the group name information from different database columns while the rename function does not update all columns.
Steps to reproduce
- Create a user group "Daniel"
- Create a user group "Bob". "Bob" will be inserted before "Daniel". Current order is "Bob, Daniel".
- Create a user group "Casper". "Casper" will be inserted before "Daniel". Current order is "Bob, Casper, Daniel".
- Rename "Casper" to "Alice". "Casper/Alice" will not change position. Current order is "Bob, Alice, Daniel".
Expected behavior
- Create a user group "Daniel"
- Create a user group "Bob". "Bob" will be inserted before "Daniel". Current order is "Bob, Daniel".
- Create a user group "Casper". "Casper" will be inserted before "Daniel". Current order is "Bob, Casper, Daniel".
- Rename "Casper" to "Alice". "Casper/Alice" will change position. Current order is "Alice, Bob, Daniel".
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
None
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
joshtrichards commentedon Aug 1, 2024
I thought the sorting wasn't alphabetical until recently - i.e. see #44465
Zomtir commentedon Aug 1, 2024
The sorting was done by group size in the user panel, but also only at 2 out of 3 locations:
The sorting in the external storage selector panel is arbitrary, which this bug report is about:
Nextcloud 29 did a massive improvement of the visual presentation in the user panel. I wish the same dropdown design was used in the external storage panel.