Uh oh!
There was an error while loading. Please reload this page.
Do not allow invalid users to be created - #14652
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
🤖 beep boop beep 🤖 Here are the logs for the failed build: Status of 16946: failureDB=sqlite, ENABLE_REDIS=false, PHP=7.3Show full logTESTS=integration-federation_features
Show full logTESTS=acceptance, TESTS-ACCEPTANCE=app-files
TESTS=sqlite-php7.1-samba-non-nativeShow full log |
19142fe to
6b56980CompareMorrisJobke
commented
Mar 14, 2019
CI fixed in #14640 Status of 16951: killedDB=sqlite, ENABLE_REDIS=false, PHP=7.3Show full logTESTS=integration-federation_features
Show full logTESTS=integration-downloadTESTS=acceptance, TESTS-ACCEPTANCE=app-files
Show full log |
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6b56980 to
969fc45CompareMorrisJobke
commented
Mar 14, 2019
Retriggered CI. |
| private function verifyUid(string $uid): bool { | ||
| $appdata = 'appdata_' . $this->config->getSystemValueString('instanceid'); | ||
| if ($uid === '.htaccess' || $uid === 'files_external' || $uid === '.ocdata' || $uid === 'owncloud.log' || $uid === 'nextcloud.log' || $uid === $appdata) { |
There was a problem hiding this comment.
Why not reject all UIDs for which there exists a file or folder in the data directory? Also, you forgot index.html, owncloud.db, owncloud.db-shm, owncloud.db-wal.
There was a problem hiding this comment.
Why not reject all UIDs for which there exists a file or folder in the
datadirectory?
We then need to first check the existing user as well, right?
There was a problem hiding this comment.
I don't understand.. What do you want to check, when?
There was a problem hiding this comment.
because otherwise a valid UID is not valid anymore once the user is created and thus has a user folder in there.
There was a problem hiding this comment.
What's the problem about having existing users with an invalid UID (which was valid before)?
There was a problem hiding this comment.
So, what about those additional files? And Why not reject all UIDs for which there exists a file or folder in the data directory??
There was a problem hiding this comment.
So, what about those additional files? And
Why not reject all UIDs for which there exists a file or folder in the data directory??
Makes sense 👍 We should additionally keep the list here to avoid future collisions for not yet created log files or something like that.
There was a problem hiding this comment.
Hey, has this been implemented already?
blizzz
commented
Mar 15, 2019
Just discussed with @nickvergessen:
|
rullzer
commented
Apr 11, 2019
/backport to stable15 |
rullzer
commented
Apr 11, 2019
/backport to stable14 |
backport to stable15 in #15071 |
backport to stable14 in #15072 |
Signed-off-by: Roeland Jago Douma roeland@famdouma.nl