-
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
[WIP] Migrate incognito mode to IUserSession #12912
Conversation
Also @Raydiation |
Looks good but I wouldnt put the icognito mode setter on the public interface. We dont want that app devs use this setting (since its already deprecated). So I'd just add it to the user session class and remove it from the public IUserSession interface |
We shouldn't deprecate it before we have a replacement. At the moment that's what the app developer need to use if he provides a public view on files. example: https://github.com/owncloud/gallery/blob/master/ajax/image.php#L26 |
@schiesbn app developers that dont want to migrate off incognito mode can still continue to use the public interface they're used to (OCP\User that is). App developers should in fact migrate away from incognito mode and the solution is to not rely on it. Therefore this is IMHO perfectly fine ;) |
As I tried to explain in the other issue many Apps and many places in core relay on getUser() to return the correct user, which is the user performing the current operation. Getting back a random user or false, depending if and who is logged in at a different browser window is not good can trigger many nasty bugs. If we want to find a way to remove the incognito mode, we need to do it in the right order:
Starting with 3+4 in parallel doesn't sounds like a good idea to me |
Deprecating methods should be done as soon as possible since it does no harm and tells developers that they need to migrate their code to a model without icognito mode. This is the first thing that should be done. Then you can start looking what is still dependant on it and fix it. |
Not if we don't know yet how the new model looks like and if it really works 😉 |
The new model is to check for public sharing in the encryption app and gallery ;) |
And fixing the path issues in the filesystem stuff that you talked about |
The inspection completed: 262 new issues, 6 updated code elements |
|
Yes - I know. Same on the other PR - looking at it tomorrow. - But thankfully the tests are even locally failing for me on master… => Need a new testing VM. |
Refer to this link for build results (access rights to CI server needed): Build result: FAILURE[...truncated 17 lines...]using GIT_SSH to set credentials using .gitcredentials to set credentials > git config --local credential.helper store --file=/tmp/git6992423690025864952.credentials # timeout=10 > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git config --local --remove-section credential # timeout=10 > git rev-parse origin/pr/12912/merge^{commit} # timeout=10 > git branch -a --contains cef2f8f6bd8da4004a5db250fb966ffe04e0e9ca # timeout=10 > git rev-parse remotes/origin/pr/12912/merge^{commit} # timeout=10Checking out Revision cef2f8f6bd8da4004a5db250fb966ffe04e0e9ca (origin/pr/12912/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f cef2f8f6bd8da4004a5db250fb966ffe04e0e9caFirst time build. Skipping changelog. > git remote # timeout=10 > git submodule init # timeout=10 > git submodule sync # timeout=10 > git config --get remote.origin.url # timeout=10 > git submodule update --init --recursiveTriggering pull-request-analyser-ng-simple » SLAVEConfiguration pull-request-analyser-ng-simple » SLAVE is still in the queue: Waiting for next available executor on SLAVEpull-request-analyser-ng-simple » SLAVE completed with result FAILUREStarted calculate disk usage of buildFinished Calculation of disk usage of build in 0 secondsStarted calculate disk usage of workspaceFinished Calculation of disk usage of workspace in 2 minutes 6 seconds💣 Test FAILed. 💣 |
is this a burning change for OC8 - which can not wait for OC8.1? |
The problem that we face here is #12891 As long as we don't touch any sharing related code for master anymore that uses the new public API instead of I'd propose that I open another PR where I add a quick'n dirty hack in |
As discussed at #12912 (comment)
Ultra-slim hack version: #12923 |
Refer to this link for build results (access rights to CI server needed): |
@LukasReschke time to revive the ultra-fat non-hack version ? 😉 |
@LukasReschke please rebase |
Let's reopen this later at some point. |
Fixes #12891 together with #12899
@schiesbn @PVince81