proxy: Return an error when autoprovision a user fails

Fixes: #6194
This commit is contained in:
Ralf Haferkamp
2023-05-24 16:21:12 +02:00
parent efc5e249e2
commit 3dc0fff1f4
2 changed files with 6 additions and 0 deletions

View File

@@ -229,6 +229,8 @@ func (c cs3backend) isAlreadyExists(resp *http.Response) (bool, error) {
return false, err
}
c.logger.Warn().Str("OData Error", oDataErr.Error.Message).Msg("Error Response")
if oDataErr.Error.Code == errorcode.NameAlreadyExists.String() {
return true, nil
}