summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Check
Commit message (Collapse)AuthorAgeFilesLines
* 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