mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-03 03:18:36 -06:00
Merge pull request #2109 from owncloud/fix-groups-index
fix: make groups index case sensitive
This commit is contained in:
@@ -63,11 +63,11 @@ func recreateContainers(idx *indexer.Indexer, cfg *config.Config) error {
|
||||
}
|
||||
|
||||
// Groups
|
||||
if err := idx.AddIndex(&proto.Group{}, "OnPremisesSamAccountName", "Id", "groups", "unique", nil, true); err != nil {
|
||||
if err := idx.AddIndex(&proto.Group{}, "OnPremisesSamAccountName", "Id", "groups", "unique", nil, false); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if err := idx.AddIndex(&proto.Group{}, "DisplayName", "Id", "groups", "non_unique", nil, true); err != nil {
|
||||
if err := idx.AddIndex(&proto.Group{}, "DisplayName", "Id", "groups", "non_unique", nil, false); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
5
changelog/unreleased/fix-groups-index.md
Normal file
5
changelog/unreleased/fix-groups-index.md
Normal file
@@ -0,0 +1,5 @@
|
||||
Bugfix: Change the groups index to be case sensitive
|
||||
|
||||
Groups are considered to be case sensitive. The index must handle them case sensitive too otherwise we will have undeterministic behavior while editing or deleting groups.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/2109
|
||||
Reference in New Issue
Block a user