summaryrefslogtreecommitdiffstats
path: root/lib/private/Repair
Commit message (Collapse)AuthorAgeFilesLines
* Log and continue on Dav reader failureJohn Molakvoæ (skjnldsv)2018-12-051-9/+22
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix SetVcardDatabaseUID when using postgresqlRobin Appelman2018-11-131-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Clear avatar cache with frontend repairJohn Molakvoæ (skjnldsv)2018-11-082-4/+76
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fixup! move migrationJohn Molakvoæ (skjnldsv)2018-10-301-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fixup! move migrationJohn Molakvoæ (skjnldsv)2018-10-301-12/+18
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* TestsJohn Molakvoæ (skjnldsv)2018-10-301-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Repair registration and autoload bumpJohn Molakvoæ (skjnldsv)2018-10-301-18/+22
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Repair StepJohn Molakvoæ (skjnldsv)2018-10-301-0/+127
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add repair stepRoeland Jago Douma2018-07-101-0/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Suppress potential SQL injection warning as they are false positivesMorris Jobke2018-07-091-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add repair job for pending cron jobsMorris Jobke2018-07-091-0/+74
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add visio mimetypesJoas Schilling2018-07-061-0/+17
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Background job to clean up old backups of the updaterMorris Jobke2018-06-131-0/+48
| | | | | | | * a one-time job gets scheduled after each update via a repair job * the job remove all directories inside data/updater-INSTANCEID/backups except the 3 most recent ones (determined by mtime of the folder) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add the jobRoeland Jago Douma2018-05-141-0/+48
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't use double quotes in MySQL queriesRobin Müller2018-02-161-2/+3
| | | | | | | | | | | | MySQL databases with the ANSI_QUOTES mode enabled treat " as an identifier quote (see https://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_ansi_quotes). So for such databases the 'occ upgrade' fails with an error message like this: ... unknown column 'oc_*' in where clause. This fix replaces the doulbe quotes with single quotes that should be always used in MySQL queries to quote literal strings. Signed-off-by: Robin Müller <robin.mueller@1und1.de>
* Move depsCache clearing to SCSSCacher/JSCombinerJulius Härtl2018-02-031-9/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add repair step to clear frontend related cachesJulius Härtl2018-02-031-0/+78
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Remove old repair steps that aren't executed anymoreMorris Jobke2018-01-227-707/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* check if the user still exists before we try to cleanup the previewsBjoern Schiessle2017-11-141-1/+12
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #7027 from nextcloud/Rello-patch-1Morris Jobke2017-11-091-5/+22
|\ | | | | Rello patch 1
| * Add the return which is being usedJoas Schilling2017-10-311-6/+9
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Mapping of m3u, m3u8, pls to audio streamsRello2017-10-311-0/+14
| | | | | | | | Signed-Off-By: Rello <Rello@users.noreply.github.com>
* | Update license headersMorris Jobke2017-11-0612-4/+23
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add logrote as a default background jobRoeland Jago Douma2017-10-241-0/+47
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont run invalid path repair step when upgrading from 11.0.5.2 and laterRobin Appelman2017-10-031-3/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Ask the schema whether the table and column existJoas Schilling2017-09-081-13/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #6331 from nextcloud/update-repair-stepMorris Jobke2017-09-041-2/+2
|\ | | | | Generate system wide key pair (update repair step after backport)
| * move repair step to stable12Bjoern Schiessle2017-09-011-2/+2
| | | | | | | | | | | | | | because we decided to backport it the repair step needs to be executed already on stable12 Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Add mimetype support for .URL (Windows) and .webloc (macOS) files. Update ↵Thomas Ebert2017-08-311-1/+14
|/ | | | | | places/link svg. Add filetype/link icon. Add repair step for mime types. Signed-off-by: Thomas Ebert <thomas.ebert@te-online.net>
* Merge pull request #5870 from nextcloud/generate-system-wide-key-pairBjörn Schießle2017-08-241-0/+110
|\ | | | | extend the identity proof manager to allow system wide key pairs
| * add prefix to user and system keys to avoid name collisionsBjoern Schiessle2017-08-101-0/+110
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #6004 from ↵Roeland Jago Douma2017-08-101-0/+60
|\ \ | |/ |/| | | | | nextcloud/forward-5902-repair-drop-account-terms-on-oc-migration [13] Repair step: drop account terms on oc migration
| * Add a repair step to drop the account_terms table on oc migrationJoas Schilling2017-08-071-0/+60
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Use indexed column path_hash to find the parentJoas Schilling2017-08-091-2/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add a method to compare empty strings with an expressionJoas Schilling2017-08-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix repair step for oracle...Joas Schilling2017-08-021-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use selectAlias()Joas Schilling2017-08-021-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Can not insert auto increment on oracleJoas Schilling2017-08-021-1/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* More phpstorm inspection fixesRoeland Jago Douma2017-07-241-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Also repair storage id's when repairing invalid entriesRobin Appelman2017-07-211-4/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-204-0/+12
| | | | | | | | | | This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues. As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections. The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix invalid path repair step not getting all invalid entriesRobin Appelman2017-07-181-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #5715 from nextcloud/master-5655Morris Jobke2017-07-131-25/+66
|\ | | | | Fixed repair step
| * chunk getting invalid paths and reuse queriesRobin Appelman2017-07-131-27/+61
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * use a generator instead of fetching all rows at onceRobin Appelman2017-07-131-2/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Don't throw an error when the table doesn't existJoas Schilling2017-07-121-0/+3
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #5424 from nextcloud/moveFromCache-from-sharedMorris Jobke2017-07-061-0/+129
|\ | | | | fix moving folders out of a cache jail
| * adjust to moved repair stepRobin Appelman2017-06-291-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Run repair step only onceMorris Jobke2017-06-221-3/+7
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Add repair step for invalid pathsRobin Appelman2017-06-211-0/+121
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>