Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/unreleased/users-owncloudsql-fallback.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: users owncloudsql now always returns a userid

When joining the ownclouduuid is disabled we now fall back to the userid.

https://github.com/cs3org/reva/pull/4135
4 changes: 4 additions & 0 deletions pkg/user/manager/owncloudsql/owncloudsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ func (m *manager) convertToCS3User(ctx context.Context, a *accounts.Account, ski
GidNumber: m.c.Nobody,
UidNumber: m.c.Nobody,
}
// fall back to userid
if u.Id.OpaqueId == "" {
u.Id.OpaqueId = a.UserID
}
if u.Username == "" {
u.Username = u.Id.OpaqueId
}
Expand Down