Repository navigation
getRootFolder should not setup the FS for any user - #22493
Conversation
|
I think this should be fine 👍 |
Fixes #22467 This can go wrong when an app (take the ldap app) DIs something that needs the rootFolder. This break if we use cookie auth since then we know the user at that point and thus try to setup the fs for that user. However if there are then incomming shares from an ldap user they will fails since the user manager can't find them yet. Now getRootFolder does not setup the fs for any user.
|
Please review: @PVince81 @nickvergessen @DeepDiver1975 |
| * @param \OC\Files\Mount\Manager $manager | ||
| * @param \OC\Files\View $view | ||
| * @param \OC\User\User $user | ||
| * @param \OC\User\User | null $user |
There was a problem hiding this comment.
not sure, does spacing kill type documentation?
http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.param.pkg.html
This only says that a|b works
|
Tested, works 👍 |
|
Note: this assumes that API consumers are using |
|
Potentially dangerous, see https://github.com/owncloud/core/pull/22410/files#r53318501 @icewind1991 please re-confirm |
I don't think it is. If you want to access a user folder you should init the mount points.. This logic does not change that. But indeed @icewind1991 please double check. |
|
#22410 manually sets up the fs so it's unaffected |
|
Right, makes sense. Thanks |
getRootFolder should not setup the FS for any user
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Fixes #22467
This can go wrong when an app (take the ldap app) DIs something that
needs the rootFolder. This break if we use cookie auth since then we
know the user at that point and thus try to setup the fs for that user.
However if there are then incomming shares from an ldap user they will
fails since the user manager can't find them yet.
Now getRootFolder does not setup the fs for any user.
@icewind1991 I plese have a look at this.