Skip to content

Commit

Permalink
Fix parsing of grappa response (cs3org#3873)
Browse files Browse the repository at this point in the history
* Fix parsing of grappa response

* add changelog
  • Loading branch information
gmgigi96 committed Jun 5, 2023
1 parent dcfa962 commit 0222bff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/fix-parsing-grappa-response.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: Fix parsing of grappa response

https://github.com/cs3org/reva/pull/3873
2 changes: 1 addition & 1 deletion pkg/cbox/group/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ type GroupsResponse struct {
func (m *manager) fetchAllGroupAccounts(ctx context.Context) error {
url := fmt.Sprintf("%s/api/v1.0/Group?field=groupIdentifier&field=displayName&field=gid&field=isComputingGroup", m.conf.APIBaseURL)

var r GroupsResponse
for {
var r GroupsResponse
if err := m.apiTokenManager.SendAPIGetRequest(ctx, url, false, &r); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/cbox/user/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ func (i *Identity) UserType() userpb.UserType {
func (m *manager) fetchAllUserAccounts(ctx context.Context) error {
url := fmt.Sprintf("%s/api/v1.0/Identity?field=upn&field=primaryAccountEmail&field=displayName&field=uid&field=gid&field=type&field=source", m.conf.APIBaseURL)

var r IdentitiesResponse
for {
var r IdentitiesResponse
if err := m.apiTokenManager.SendAPIGetRequest(ctx, url, false, &r); err != nil {
return err
}
Expand Down

0 comments on commit 0222bff

Please sign in to comment.