Skip to content

Commit

Permalink
Merge pull request #2109 from owncloud/fix-groups-index
Browse files Browse the repository at this point in the history
fix: make groups index case sensitive
  • Loading branch information
David Christofas authored Jun 1, 2021
2 parents 06da18c + 03aa641 commit 99b517a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accounts/pkg/service/v0/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
5 changes: 5 additions & 0 deletions changelog/unreleased/fix-groups-index.md
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 99b517a

Please sign in to comment.