We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a17f4d4 commit f2a5a8dCopy full SHA for f2a5a8d
1 file changed
apps/user_ldap/lib/User/Manager.php
@@ -166,8 +166,13 @@ function ($list, $attribute) {
166
* @param string $id the Nextcloud username
167
*/
168
public function isDeletedUser(string $id): bool {
169
- return $this->userConfig->getValueBool(
170
- $id, 'user_ldap', 'isDeleted');
+ try {
+ return $this->userConfig->getValueBool($id, 'user_ldap', 'isDeleted');
171
+ } catch (\InvalidArgumentException $e) {
172
+ // Most likely the string is too long to be a valid user id
173
+ $this->logger->debug('Invalid id given to isDeletedUser', ['exception' => $e]);
174
+ return false;
175
+ }
176
}
177
178
/**
0 commit comments