summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Check
Commit message (Collapse)AuthorAgeFilesLines
* consider local external storages, tooArthur Schiwon2020-12-151-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* enables the file name check also to match name of mountpointsArthur Schiwon2020-12-151-2/+20
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Only execute plain mimetype check for directories and do the fallback only ↵Morris Jobke2020-11-301-2/+6
| | | | | | | | for non-directories Ref #23096 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make sure to check the mimetype on the path if a secure one could not be ↵Julius Härtl2020-09-291-0/+13
| | | | | | detemined though the content Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update urls to stackoverflow.com to "HTTPS"J0WI2020-09-171-3/+3
| | | | Signed-off-by: J0WI <J0WI@users.noreply.github.com>
* Flow: Include root folder for shared storages when fetching system tagsJulius Härtl2020-06-151-1/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add visibility to all constantsChristoph Wurst2020-04-101-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-3/+0
| | | | | | | | | | | | | | | 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>
* Use elseif instead of else ifChristoph Wurst2020-04-103-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-092-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use a blank line after the opening tagChristoph Wurst2020-04-092-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-099-9/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Remove unused importsChristoph Wurst2020-03-251-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* make the mime type checker for flow available to regular usersArthur Schiwon2020-01-091-0/+4
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Allow to specify apps that somethign is a dirJoas Schilling2019-12-102-4/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Improve mimetype detection in workflow componentsJoas Schilling2019-12-101-82/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Only cache the mimetype if the file existsJoas Schilling2019-10-141-15/+35
| | | | | | | | | | | | | Otherwise files access control will cache "application/octet-stream" for all the target node on: rename, move, copy and all other methods which create a new item To check this: 1. Add an automated tagging rule which tags on mimetype NOT "httpd/unix-directory" 2. Add an access control rule which checks for any mimetype 3. Create a folder and rename it, the folder should not be tagged, but it is Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't call basename on nullJoas Schilling2019-10-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Correctly detect the mimetype from uploadsJoas Schilling2019-09-261-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix type hinting on setFileInfoJulius Härtl2019-09-102-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* let a dedicate service serve a stateful processArthur Schiwon2019-09-096-27/+0
| | | | | | | | * includes making ICheck not requiring any context setter * and IFileCheck extending the IEntityCheck as entity data can be handed in via Dispatcher Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* require IChecks to receive entity contextArthur Schiwon2019-09-0910-45/+97
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* seperate setFileInfo from ICheckArthur Schiwon2019-09-098-42/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Extend missing check classesJulius Härtl2019-09-094-0/+54
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* extends ICheck with scope and entity support, provide them as initialStateArthur Schiwon2019-09-097-0/+51
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* A folder should get a folder mimetypeRoeland Jago Douma2018-10-291-0/+5
| | | | | | | | | | | If doing achunked upload the mimetype of the folder would otherwise be guessed from the path. Which always returned application/octet-stream. If an access control rule to block that is in place this means that all chunked uploads fail hard in directories as the isCreatable on the directory always fails. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Ignore case for is and !isDaniel Kesselberg2018-10-051-4/+9
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Remove unused importDaniel Kesselberg2018-10-041-2/+0
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Make code strictDaniel Kesselberg2018-10-031-2/+3
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Add FileName to Workflow engineDaniel Kesselberg2018-10-031-0/+74
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Fix mimetype detection for junked uploadsJoas Schilling2018-08-241-4/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make the Outlook and Thunderbird addons identifyableJoas Schilling2018-02-271-2/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Use non aliased method insteadMorris Jobke2018-02-131-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Request->getHeader() should always return a stringMorris Jobke2018-01-171-2/+2
| | | | | | | | PHPDoc (of the public API) says that this method returns string but it also returns null, which is not allowed in some method calls. This fixes that behaviour and returns an empty string and fixes all code paths that explicitly checked for null to be still compliant. Found while enabling the strict_typing for lib/private for the PHP7+ migration. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Also add the root of external storages to the file id listJoas Schilling2017-03-301-5/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix workflow engine mimetype detection when creating a directoryJoas Schilling2017-03-231-0/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix mimetype detection on public uploads for the workflow engineJoas Schilling2017-03-061-1/+20
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Make mimetype also work for READ and DELETE operationsJoas Schilling2016-09-051-0/+39
|
* Better detection of mimetypes while uploading a zip on a macJoas Schilling2016-09-051-8/+46
|
* Translate the errorsJoas Schilling2016-08-019-26/+69
|
* Load the timezones via select2Joas Schilling2016-08-011-9/+8
|
* Add request timeJoas Schilling2016-08-011-0/+125
|
* Add remote addressJoas Schilling2016-08-011-0/+148
|
* Add Request URLJoas Schilling2016-08-011-0/+89
|
* User agent checkJoas Schilling2016-08-011-0/+71
|
* Add file mime typeJoas Schilling2016-08-012-0/+192
|
* Add file size as checkJoas Schilling2016-08-011-0/+113
|
* Add system tag checkJoas Schilling2016-08-011-0/+155
|
* Add L10N supportJoas Schilling2016-07-271-3/+9
|
* Add workflowengineMorris Jobke2016-07-261-0/+108