summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #25449 from nextcloud/backport/25393/stable19Roeland Jago Douma2021-02-172-1/+141
|\ | | | | [stable19] add repair job for unencoded group share uris
| * adjust applicable versionArthur Schiwon2021-02-171-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * compatibility to Nc 19Arthur Schiwon2021-02-172-3/+3
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * add missing changes from backport sourceArthur Schiwon2021-02-171-1/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * show suggestion to clean up possible invalid shares laterArthur Schiwon2021-02-021-0/+6
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * add repair job for unencoded calendarsArthur Schiwon2021-02-022-0/+133
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Merge pull request #25389 from nextcloud/backport/25302/stable19Roeland Jago Douma2021-02-091-1/+1
|\ \ | | | | | | [stable19] Use RFC-compliant URL encoding for cookies
| * | Use RFC-compliant URL encoding for cookiesMarco Ziech2021-01-291-1/+1
| |/ | | | | | | | | | | | | PHP 7.4.2 changed the way how cookies are decoded, applying RFC-compliant raw URL decoding. This leads to a conflict Nextcloud's own cookie encoding, breaking the remember-me function if the UID contains a space character. Fixes #24438 Signed-off-by: Marco Ziech <marco@ziech.net>
* | revert(comment)Samuel2021-02-051-1/+0
| | | | | | | | Signed-off-by: Samuel <faust64@gmail.com>
* | revert(exception): keep throwing an exception for nowSamuel2021-02-051-1/+2
| | | | | | | | Signed-off-by: Samuel <faust64@gmail.com>
* | fix(translation): replace static error messageSamuel2021-02-051-1/+2
|/ | | | | | as suggested by @kesselb in nextcloud/server#25490 Signed-off-by: Samuel <faust64@gmail.com>
* The objectid is a stringRoeland Jago Douma2021-01-291-1/+1
| | | | | | | This allows the query to use the index. Else it has to resort on scanning all the rows. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #25121 from nextcloud/backport/25036/stable19blizzz2021-01-281-0/+29
|\ | | | | [stable19] respect DB restrictions on number of arguments in statements and queries
| * CI satisfactionArthur Schiwon2021-01-151-1/+0
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * DB: warn on parameter number constraintsArthur Schiwon2021-01-151-0/+30
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | 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>