-
Notifications
You must be signed in to change notification settings - Fork 2.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
Use OCP classes as much as possible in files_external #15363
Conversation
👍 |
Looks good! 👍 |
Should we merge for oC 8.1? @DeepDiver1975 |
A new inspection was created. |
I rebased this to invoke new CI run. |
Use OCP classes as much as possible in files_external
I'm going to revert this - please resubmit with externals storage tests not failing - THX |
Eek, I wonder what happened. Investigating. |
no worries - shit happens |
Right, it looks like (for some reason) the UserManager cannot find the user passed in to the files_external code, so it returns null, triggering the error when @PVince81 @icewind1991 @DeepDiver1975 What should we do? Emulate the old behaviour and guess? Or bomb out with some sort of UserNotFound exception? |
To progress towards #4774 , I've modified files_external so that it uses OCP as much as is possible with the current public interfaces.
Also makes the code slightly cleaner and easier to work with in unit tests.
cc @DeepDiver1975 @rullzer @PVince81 @icewind1991