aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/IntegrityCheck
Commit message (Collapse)AuthorAgeFilesLines
* fix(IntegrityCheck): Ensure the check is run if no results are availableFerdinand Thiessen2024-07-031-5/+10
| | | | | | | | | If there are no cached results the current implementation was also returning an empty array, but this was the same as when there was a successful run. So to distinguish this we return `null` if there are *no* results. In this case we need to rerun the integrity checker. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-247-151/+22
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* feat(appconfig): switching integrity check to lazy config valuesMaxence Lange2024-03-111-52/+16
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Revert "switching to new IAppConfig"Maxence Lange2024-01-301-16/+52
| | | | | | | This reverts commit c693c58d253168e712cde57b2dd8ea3262b900e8. Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* switching to new IAppConfigMaxence Lange2024-01-301-52/+16
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-13/+13
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-1/+1
| | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>
* Merge pull request #36895 from apasov/patch-1Arthur Schiwon2023-05-081-1/+1
|\ | | | | Fix json_decode expecting a string
| * Update Checker.phpIlya Apasov2023-02-281-1/+1
| | | | | | Signed-off-by: Ilya Apasov <apasov@users.noreply.github.com>
* | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-052-3/+3
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* composer run cs:fixCôme Chilliet2023-01-201-9/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Simlify tests for integrity check on modified mimetype listsJulius Härtl2022-06-071-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix Iterator return typesCôme Chilliet2021-11-232-8/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove some mentions of ownCloud from our api documentationCarl Schwan2021-07-291-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-7/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Also load CA properly in integrity checkRoeland Jago Douma2021-01-201-1/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup the constructorJoas Schilling2021-01-181-12/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Force run the verification of the signature on occJoas Schilling2021-01-181-4/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-295-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-105-36/+35
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-12/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-057-8/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Exclude .rnd files from integrity checkDaniel Kesselberg2019-07-211-4/+5
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Remove empty linesXheni Myrtaj2019-07-041-2/+0
| | | | Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
* Added Tests for modified mimetypelistXheni Myrtaj2019-07-041-0/+2
| | | | Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
* Update lib/private/IntegrityCheck/Checker.phpXheni Myrtaj2019-05-311-1/+1
| | | Co-Authored-By: Morris Jobke <hey@morrisjobke.de>
* Fix indentationXheni Myrtaj2019-05-291-21/+21
| | | | Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
* Do not fail integrity check if mimetype list is changedXheni Myrtaj2019-05-291-22/+37
| | | | Signed-off-by: Xheni Myrtaj <myrtajxheni@gmail.com>
* Remove the upload and memory settingJoas Schilling2019-03-041-33/+1
| | | | | | | | | | * Remove unneeded private method phpFileSize() * Bump autoloader * Remove setUploadLimit tests * Remove integrity check hacks for upload limit Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use more precise regexDaniel Kesselberg2019-02-141-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Apply code style fixes from owncloud, revert regexDaniel Kesselberg2019-02-141-5/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Exclude file name patterns; ignore gentoo webapp filesRomain Rivière2019-02-141-7/+25
| | | | Signed-off-by: Romain Rivière <lecoyote@lecoyote.org>
* Handle strict typing in Checker and fix testsRoeland Jago Douma2018-02-211-1/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make OC\IntegrityCheck strictRoeland Jago Douma2018-02-216-33/+38
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Also replace all other occurencesMorris Jobke2017-12-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-062-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove ownCloud Root Authority as per todoJoas Schilling2017-03-221-8/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #2724 from nextcloud/fix-23591Lukas Reschke2016-12-212-18/+59
|\ | | | | [downstream] Report failures for SignApp and SignCore
| * Add proper testsLukas Reschke2016-12-192-20/+18
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
| * Check return value for file_put_contents. Add return value to the commandsVictor Dubiniuk2016-12-162-12/+55
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Consider all channel except blank and git to be signedVictor Dubiniuk2016-12-161-7/+3
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Make sure memory limit is > post size and upload filesizeJoas Schilling2016-09-131-1/+1
|
* Fix intergrity checkerRoeland Jago Douma2016-09-071-1/+5
| | | | | | * Set salt length to 0 See https://tools.ietf.org/html/rfc3447#page-38 * Fix tests for new phpunit
* Fix othersJoas Schilling2016-07-217-8/+17
|
* Fix typoLukas Reschke2016-07-211-1/+1
|
* Port ↵Lukas Reschke2016-07-212-1/+19
| | | | https://github.com/nextcloud/server/commit/2d373416d8e54a7de84879a365c372a85104c6df to master
* Use proper certificatesLukas Reschke2016-07-211-2/+9
| | | | Ports https://github.com/nextcloud/server/commit/bcf693539be82e872ba4d6cceb1f430a4bb841d9
* Make code integrity check work when OC is not installed yetVincent Petry2016-06-241-3/+12
|