Repository navigation
Clear enabled apps cache after loading authentication app - #11495
Conversation
|
💣 Test FAILed. 💣 Build result: FAILUREGitHub pull request #11495 of commit 312b600d903f4b267ac91721e9a2eda01157dbb7 automatically merged.Building on master in workspace /var/lib/jenkins/jobs/pull-request-analyser-ng/workspace@2 > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/owncloud/core.git # timeout=10Fetching upstream changes from https://github.com/owncloud/core.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/owncloud/core.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/11495/merge^{commit} # timeout=10Checking out Revision 4de08f4d568d45d80645f9fa87565a9b425a88dc (detached) > git config core.sparsecheckout # timeout=10 > git checkout -f 4de08f4d568d45d80645f9fa87565a9b425a88dc > git rev-list d113d53b0356e4bc5a2aaff4016fd32e17c49300 # timeout=10 > 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 » sqlite,vm-slave-02Touchstone configurations resulted in FAILURE, so aborting...Started 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 0 seconds:bomb: Test FAILed. :bomb: |
|
very nice! 👍 |
|
Since getEnabledApps() depends on an authentication app to be loaded, especially in the case of LDAP, the cache from getEnabledApps() is now cleared to make sure that subsequent calls will properly return apps that were enabled for groups. This is because getEnabledApps() uses the inGroups() function from the group manager provided by LDAP or any other authentication app.
312b600 to
36d2282
Compare
|
I just force-pushed a better solution. |
|
Unit test won't be possible here as I can't mock Please review @icewind1991 @LukasReschke @blizzz @schiesbn |
|
🚀 Test PASSed. 🚀 |
|
The inspection completed: No new issues |
|
Makes sense 👍 |
…rloadingauthapp Clear enabled apps cache after loading authentication app
|
@karlitschek will backport this bugfix to stable7 |
|
Backported as 24dbdd2 to stable7 and verified that it also works there. |
|
Thanks |
Since getEnabledApps() depends on an authentication app to be loaded,
especially in the case of LDAP, the cache from getEnabledApps() is now
cleared to make sure that subsequent calls will properly return apps
that were enabled for groups.
This is because getEnabledApps() uses the inGroups() function from the
group manager provided by LDAP or any other authentication app.
Fixes #11484
TODO