-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Move \OC\User\NoUserException to OCP #33239
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 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
* @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
@@ -366,7 +366,7 @@ public static function initMountManager() { | |||
* Initialize system and personal mount points for a user | |||
* | |||
* @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 |
* @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
@@ -340,16 +340,16 @@ public function testHooks() { | |||
* | |||
*/ | |||
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::getUserFolder
may throw it.First commit is the new class, second refactors the server usages.