summaryrefslogtreecommitdiffstats
path: root/lib/private
Commit message (Collapse)AuthorAgeFilesLines
* Add sanitizers for JSON outputLukas Reschke2020-12-112-0/+3
| | | | | | | Those functions set proper content-types that prevent rendering of data. Therefore it's safe to mark them as sanitizers. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #24416 from nextcloud/fix/app-store-check-php-compatRoeland Jago Douma2020-12-101-7/+25
|\ | | | | Check php compatibility of app store app releases
| * Check php compatibility of app store app releasesChristoph Wurst2020-12-041-7/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Apps might increase the minimum php version requirement, in which case an update could break the app or even the whole instance. We must not install those releases, or better, don't even show them for update/installation. This extends the app fetcher code to filter out the releases that are not installable. The filter respects minimum and maximum requirements. E.g. apps that are still only released for php7.3 won't show up for php7.4 instances. This behavior is new but if an app lists an explicit version requirement, then we ought to repect that. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #23044 from nextcloud/migration-10.5Roeland Jago Douma2020-12-1011-2/+603
|\ \ | | | | | | Handle owncloud migration to latest release
| * | Make sure the migrations table schema is always checkedJulius Härtl2020-12-092-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net> Revert "Make sure the migrations table schema is always checked" This reverts commit 258955ef738a52d9da2ac2fe59466e6093d7e9bc. Set current vendor during upgrade and perform migrations table change if needed Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Properly migrate from new owncloud avatar locationJulius Härtl2020-12-091-73/+42
| | | | | | | | | | | | | | | | | | as the files are not scanned we cannot use the OCP\Files api Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Readd repair steps that are relevant when migrating from ownCloudJulius Härtl2020-12-097-0/+615
| | | | | | | | | | | | | | | | | | This reverts commit d9b1492e03ab9fe58bb87baaeba745790ca15c53. Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Allow major/minor match for owncloud versionJulius Härtl2020-12-091-1/+4
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Avoid checking for brute force protection capabilities when upgradingJulius Härtl2020-12-091-0/+4
| | | | | | | | | | | | | | | | | | This might happen a releases that doesn't have this table yet Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Drop fk constraints on locks tableJulius Härtl2020-12-091-0/+9
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Address minor commentsJulius Härtl2020-12-091-1/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Introduce deck share type to ShareAPIControllerJulius Härtl2020-12-091-0/+11
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Dummy general share checks for deckJulius Härtl2020-12-091-0/+1
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Let sharees endpoint properly handle deck sharesJulius Härtl2020-12-091-0/+4
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Add share type for deckJulius Härtl2020-12-091-0/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Allow apps to register their share providers from outsideJulius Härtl2020-12-092-0/+27
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #24398 from nextcloud/fix/do-not-update-incompatible-appJoas Schilling2020-12-092-1/+10
|\ \ | | | | | | Do not update incompatible apps
| * | Do not update incompatible appsChristoph Wurst2020-12-042-1/+10
| |/ | | | | | | | | | | | | | | | | | | Previously there was no (platform) dependency check for an app that was installed before. So Nextcloud happily upgraded an app that now requires a php version newer than the current one. Which means in the lucky case you see a failing upgrade due to the language incompatibility, or in the unlucky case you see unexpected errors later in production. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #24598 from ↵Joas Schilling2020-12-081-1/+8
|\ \ | | | | | | | | | | | | nextcloud/techdebt/noid/wrap-the-exception-to-make-debuggin-easier Make debugging migration exceptions easier
| * | Make debugging migration exceptions easierJoas Schilling2020-12-071-1/+8
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #24486 from nextcloud/feature/noid/phone-number-validationJoas Schilling2020-12-084-10/+222
|\ \ | | | | | | Phone number validation and search
| * | Fix PHP code styleJoas Schilling2020-12-081-1/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add a repairstep to validate the phone numbersJoas Schilling2020-12-072-1/+92
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Make the throwing optional, so background tasks don't breakJoas Schilling2020-12-071-3/+11
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add a config for default region of phone numbersJoas Schilling2020-12-071-12/+36
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Also translate the phone number when coming in via the accounts manager API ↵Joas Schilling2020-12-071-2/+26
| | | | | | | | | | | | | | | | | | directly Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add an endpoint to search for accounts based on phone numberJoas Schilling2020-12-071-0/+19
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Add a database table for the accounts data so we can search it betterJoas Schilling2020-12-071-2/+47
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Make code strictJoas Schilling2020-12-072-5/+6
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | GD imagesRoeland Jago Douma2020-12-071-2/+15
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | fix appconfig testsRoeland Jago Douma2020-12-071-2/+2
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix locking logicRoeland Jago Douma2020-12-071-1/+1
|/ | | | | | The comparrison on php8 return true while <php8 it is false. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #24552 from nextcloud/enh/remember_me_is_not_app_passwordRoeland Jago Douma2020-12-041-2/+12
|\ | | | | Remember me is not an app_password
| * 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>
* | Merge pull request #24550 from nextcloud/enh/fix/new_session_id_if_decrypt_failsMorris Jobke2020-12-041-0/+1
|\ \ | | | | | | Generate a new session id if the decrypting the session data fails
| * | 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>
* | Don't log params of imagecreatefromstringVincent Petry2020-12-041-0/+3
| | | | | | | | | | | | To prevent flooding the log with actual image data. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Fix the download of multiple files from the webUIRoeland Jago Douma2020-12-031-0/+1
|/ | | | | | needed a setupFS call Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #24498 from nextcloud/enhancement/nextcloud-log-normalizerJoas Schilling2020-12-031-2/+1
|\ | | | | Replace abandoned log normalizer with our fork
| * Replace abandoned log normalizer with our forkChristoph Wurst2020-12-031-2/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Also handle legacy cipher support when encryption is disabled but an old ↵Julius Härtl2020-12-032-2/+4
|/ | | | | | master key is present Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #24519 from nextcloud/fix/bug/emailtemplateMorris Jobke2020-12-031-1/+1
|\ | | | | Fix vsprint parameter
| * 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>
* | [3rdparty] Migrate to Opis/ClosureRoeland Jago Douma2020-12-023-8/+4
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #24113 from nextcloud/extend-cache-eventsRoeland Jago Douma2020-12-023-6/+41
|\ | | | | extend cache events
| * code style and dispatchTypedRobin Appelman2020-12-021-2/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * rename cache event to follow new naming standardsRobin Appelman2020-11-261-8/+22
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * extend cache eventsRobin Appelman2020-11-263-5/+27
| | | | | | | | | | | | | | | | - adds cache remove event - expose storage id in event - emit events during cache move Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #23278 from nextcloud/enh/noid/user-limitsChristoph Wurst2020-12-022-3/+111
|\ \ | | | | | | Allow subscription to indicate that a userlimit is reached