Merge pull request #2109 from owncloud/fix-groups-index

fix: make groups index case sensitive
This commit is contained in:
David Christofas
2021-06-01 14:46:09 +02:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -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
}

View 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