summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Don't log keys on checkSignatureJoas Schilling2021-01-181-0/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make sure to do priority app upgrades firstJulius Härtl2021-01-111-2/+2
| | | | | | | | Otherwise those apps might not be loaded when the others app migrations are running. The previous loading of authentication apps in the upgrade step never worked as it just returns in maintenance mode Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #24593 from nextcloud/backport/23912/stable19Morris Jobke2021-01-075-5/+83
|\ | | | | [stable19] use in objectstore copy
| * use in objectstore copyRobin Appelman2020-12-075-5/+83
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #24962 from nextcloud/backport/24683/stable19Julius Härtl2021-01-071-1/+7
|\ \ | | | | | | [stable19] [Fix #24682]: ensure federation cloud id is retruned if FN property not found
| * | [Fix #24682]: ensure federation cloud id is retruned if FN property not foundGuillaume Virlet2021-01-051-1/+7
| | | | | | | | | | | | Signed-off-by: Guillaume Virlet <github@virlet.org>
* | | Show unique displayname context in the sharing inputJulius Härtl2021-01-053-1/+10
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Avoid huge exception argument loggingRoeland Jago Douma2020-12-292-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | In some cases it might happen that you have an argument that deep down somewhere has an array with a lot of entries (think thousands). Now before we would just happily print them all. Which would fill the log. Now it will just print the first 5. And add a line that there are N more. If you are on debug level we will still print them all. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Actually set the TTL on redis setRoeland Jago Douma2020-12-211-1/+7
|/ | | | | | Else well the keys remain for ever and ever. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix typo Morris Jobke2020-12-041-1/+1
| | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remember me is not an app_passwordRoeland Jago Douma2020-12-041-2/+12
| | | | | | | | While technically they are stored the same. This session variable is used to indicate that a user is using an app password to authenticate. Like from a client. Or when having it generated automatically. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Generate a new session id if the decrypting the session data failsRoeland Jago Douma2020-12-041-0/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix vsprint parameterRoeland Jago Douma2020-12-031-1/+1
| | | | | | | %2\$; is not valid. On php7 this is just ignored but on php8 it gives an error. %2\$s; works. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix file size computation on 32bit platformsaler92020-12-021-5/+4
| | | | Signed-off-by: aler9 <46489434+aler9@users.noreply.github.com>
* Merge pull request #24327 from nextcloud/backport/24103/stable19Morris Jobke2020-12-011-1/+1
|\ | | | | [stable19] Only check path for being accessible when the storage is a object home
| * Only check path for being accessible when the storage is a object homeJulius Härtl2020-11-241-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #24354 from nextcloud/backport/24162/stable19Roeland Jago Douma2020-11-253-13/+48
|\ \ | | | | | | [stable19] set the display name of federated sharees from addressbook
| * | send expected format of cloud idArthur Schiwon2020-11-251-1/+2
| | | | | | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * | set the display name of federated sharees from addressbookArthur Schiwon2020-11-253-13/+47
| |/ | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Extra white space to follow other ifslui87kw2020-11-251-1/+1
| | | | | | | | Signed-off-by: lui87kw <lukas.ifflaender@uni-wuerzburg.de>
* | Avoid substr() error when strpos returns falsebladewing2020-11-251-6/+9
| | | | | | | | | | | | | | | | "Exception: substr() expects parameter 3 to be int, bool given" can occur on Line 378 $mimePart = substr($icon, 0, strpos($icon, '-')); This happens, when '-' is not found and strpos returns false instead of an int. When this occurs, e.g., Activity hangs. Signed-off-by: lui87kw <lukas.ifflaender@uni-wuerzburg.de>
* | Fix the config key on the sharing expire checkboxChristoph Wurst2020-11-241-1/+1
|/ | | | | | | We don't use `shareapi_internal_enforce_expire_date` anywhere. `shareapi_enforce_internal_expire_date` is the one we want. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Simple typo in commentsCarlos Ferreira2020-11-201-2/+2
|
* Merge pull request #24160 from nextcloud/backport/24069/stable19Roeland Jago Douma2020-11-161-3/+3
|\ | | | | [stable19] Fix default internal expiration date
| * Fix default internal expiration dateDaniel Calviño Sánchez2020-11-161-3/+3
| | | | | | | | | | | | | | The default expiration date for internal shares was set from the default link expiration date instead of the internal one. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Merge pull request #24076 from nextcloud/backport/23741/stable19Julius Härtl2020-11-161-1/+7
|\ \ | |/ |/| [stable19] Unlock when promoting to exclusive lock fails
| * Unlock when promoting to exclusive lock failsAshod Nakashian2020-11-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In certain cases changeLock to EXCLUSIVE fails and throws LockedException. This leaves the file locked as SHARED in file_put_contents, which prevents retrying (because on second call file_put_contents takes another SHARED lock on the same file, and changeLock doesn't allow more than a single SHARED lock to promote to EXCLUSIVE). To avoid this case, we catch the LockedException and unlock before re-throwing. Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
* | Don't throw on SHOW VERSION queryJoas Schilling2020-11-161-1/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only use index of mount point when it is thereJoas Schilling2020-11-121-1/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add mount point to quota warning messageRobin Appelman2020-11-121-1/+3
| | | | | | makes it more clear to the user what the quota applies to Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix iLike() falsely turning escaped % and _ into wildcardsJoas Schilling2020-11-111-3/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #23634 from nextcloud/backport/23374/stable19Morris Jobke2020-11-091-1/+16
|\ | | | | [stable19] Only retry fetching app store data once every 5 minutes in case it fails
| * Only retry fetching app store data once every 5 minutes in case it failsJulius Härtl2020-11-091-1/+16
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Make sure root storage is valid before checking its sizeJohn Molakvoæ (skjnldsv)2020-11-091-1/+4
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Improve query type detectionJoas Schilling2020-11-061-6/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #23931 from nextcloud/backport/23917/stable19Morris Jobke2020-11-061-5/+0
|\ | | | | [stable19] Do not emit UserCreatedEvent twice
| * fix: also remove use statement of UserCreatedEventTobias Assmann2020-11-061-1/+0
| | | | | | | | Signed-off-by: Tobias Assmann <tobias.assmann@ecsec.de>
| * fix: no more translation from postCreateUser hook to UserCreatedEvent ↵Tobias Assmann2020-11-061-4/+0
| | | | | | | | | | | | anymore, as event is already emitted in user manager Signed-off-by: Tobias Assmann <tobias.assmann@ecsec.de>
* | Bearer must be in the start of the auth headerRoeland Jago Douma2020-11-061-3/+3
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #23777 from nextcloud/backport/23024/stable19Julius Härtl2020-11-051-1/+1
|\
| * Add occ command to set theming valuesJulius Härtl2020-11-021-1/+1
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | No need to check if there is an avatar available, because it is generated on ↵Morris Jobke2020-11-021-1/+1
|/ | | | | | the fly nowadays Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use lib instead if core as l10n module in OC_FilesMorris Jobke2020-10-271-3/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Log the route not found exception on a lower levelRoeland Jago Douma2020-10-251-1/+1
| | | | | | This should be logged but it is not that critical to wanner level 3 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix updates of NULL appconfig valuesRoeland Jago Douma2020-10-231-9/+22
| | | | | | | | The comparisson of NULL is a bit special. So we need to handle this a tad beter else it might not replace NULL values. or allow you to set NULL values on updates. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Clear cached app config while waiting for the SCSSCache to finish processing ↵Morris Jobke2020-10-163-2/+19
| | | | | | the file Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* SCSSCacher - Lock should not be removedMorris Jobke2020-10-161-1/+0
| | | | | | This is within the failed lock acquiring branch. So the lock is free by another process and should not be removed because the cached file (that was created by the process having the lock) appeared on the filesystem. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Provide log statements for SCSS cacheMorris Jobke2020-10-161-10/+25
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #23214 from nextcloud/backport/22937/stable19Roeland Jago Douma2020-10-081-1/+5
|\ | | | | [stable19] Allow configuring the activity update interval of token
| * Allow configuring the activity update interval of tokenRoeland Jago Douma2020-10-061-1/+5
| | | | | | | | | | | | | | | | On some systems with a lot of users this creates a lot of extra DB writes. Being able to increase this interval helps there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>