Skip to content

Commit

Permalink
CLOUDP-169104: Fix encoding for AWS IAM usernames (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
andmatei committed Apr 13, 2023
1 parent f602eb4 commit 056a756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongodbatlas/database_users.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func (s *DatabaseUsersServiceOp) Get(ctx context.Context, databaseName, groupID,
}

basePath := fmt.Sprintf(dbUsersBasePath, groupID)
escapedEntry := url.PathEscape(username)
escapedEntry := url.QueryEscape(username)
path := fmt.Sprintf("%s/%s/%s", basePath, databaseName, escapedEntry)

req, err := s.Client.NewRequest(ctx, http.MethodGet, path, nil)
Expand Down

0 comments on commit 056a756

Please sign in to comment.