-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Move \OC\User\NoUserException to OCP #33239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Possible performance regression detected Show Output |
This bot is not working correctly :( |
55bffd4 to
d8e6255
Compare
|
Failures don't seem related, but re-triggered failed jobs. |
| * @throws LockedException | ||
| * @throws PreConditionNotMetException | ||
| * @throws NoUserException | ||
| * @throws \OCP\User\NoUserException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not consistent with having a use, you do not need to namespace it here
| * @param string $uid the username | ||
| * @return bool|string | ||
| * @throws NoUserException | ||
| * @throws \OCP\User\NoUserException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
| * | ||
| * @param string|IUser|null $user | ||
| * @throws \OC\User\NoUserException if the user is not available | ||
| * @throws \OCP\User\NoUserException if the user is not available |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @throws \OCP\User\NoUserException if the user is not available | |
| * @throws NoUserException if the user is not available |
| * @param string $userId user ID | ||
| * @return \OCP\Files\Folder | ||
| * @throws NoUserException | ||
| * @throws \OCP\User\NoUserException |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same
| */ | ||
| public function testLocalMountWhenUserDoesNotExist() { | ||
| $this->expectException(\OC\User\NoUserException::class); | ||
| $this->expectException(\OCP\User\NoUserException::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $this->expectException(\OCP\User\NoUserException::class); | |
| $this->expectException(NoUserException::class); |
|
|
||
| public function testNullUserThrows() { | ||
| $this->expectException(\OC\User\NoUserException::class); | ||
| $this->expectException(\OCP\User\NoUserException::class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| $this->expectException(\OCP\User\NoUserException::class); | |
| $this->expectException(NoUserException::class); |
|
/rebase |
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
d8e6255 to
cdd4db3
Compare
|
Comments to address :) |
|
Closing as I don't see time near to properly finish this for now |
The NoUserException might be useful for apps and is already used quite a lot as
IRootFolder::getUserFoldermay throw it.First commit is the new class, second refactors the server usages.