Skip to content

Commit

Permalink
Merge pull request #4907 from glpatcern/publink-fix
Browse files Browse the repository at this point in the history
public links: return error when owner could not be resolved
  • Loading branch information
diocas authored Nov 4, 2024
2 parents a5f2cc2 + 742d606 commit 1a51ab7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions changelog/unreleased/publink-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Bugfix: public links: return error when owner could not be resolved

https://github.com/cs3org/reva/pull/4907
3 changes: 3 additions & 0 deletions pkg/auth/manager/publicshares/publicshares.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ func (m *manager) Authenticate(ctx context.Context, token, secret string) (*user
if err != nil {
return nil, nil, err
}
if getUserResponse.Status.Code != rpcv1beta1.Code_CODE_OK {
return nil, nil, errtypes.NotFound(getUserResponse.Status.Message)
}

share := publicShareResponse.GetShare()
role := authpb.Role_ROLE_VIEWER
Expand Down

0 comments on commit 1a51ab7

Please sign in to comment.