Skip to content

Conversation

@aduffeck
Copy link
Contributor

@aduffeck aduffeck commented Jul 25, 2025

We have added support for tenantIds for users. Adapted the CreateShare Endpoints to respect theseif used.

refs #877

@aduffeck aduffeck force-pushed the tenant-id branch 4 times, most recently from 08172c6 to 2c20d36 Compare July 29, 2025 11:50
@dragonchaser dragonchaser marked this pull request as ready for review August 5, 2025 15:17
Comment on lines +64 to +74
logger.Error().Str("backend", "cs3").Err(err).Str("nameOrId", nameOrId).Msg("error sending get user by claim id grpc request: transport error")
return nil, errorcode.New(errorcode.ServiceNotAvailable, err.Error())
case res.GetStatus().GetCode() == cs3rpc.Code_CODE_OK:
return CreateUserModelFromCS3(res.GetUser()), nil
case res.GetStatus().GetCode() == cs3rpc.Code_CODE_NOT_FOUND:
// If the user was not found by username, try to get it by user ID
default:
logger.Debug().Str("backend", "cs3").Err(err).Str("nameOrId", nameOrId).Msg("error sending get user by claim id grpc request")
return nil, errorcode.New(errorcode.GeneralException, res.GetStatus().GetMessage())

}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if the search returns more than one user? names may not be unique

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refers to L58

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@butonic suggested to use upn to be safe

@dragonchaser dragonchaser marked this pull request as draft August 6, 2025 08:06
@dragonchaser dragonchaser marked this pull request as ready for review August 6, 2025 11:47
@dragonchaser dragonchaser merged commit 8238a40 into opencloud-eu:main Aug 6, 2025
53 checks passed
@openclouders openclouders mentioned this pull request Aug 6, 2025
1 task
@aduffeck aduffeck mentioned this pull request Aug 7, 2025
15 tasks
@ScharfViktor ScharfViktor mentioned this pull request Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants