summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Service
Commit message (Collapse)AuthorAgeFilesLines
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-11/+10
| | | | | | | | | | | | | | | 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-102-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-091-1/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use placeholder values for password fields in external storage webuiRobin Appelman2020-03-121-1/+4
| | | | | | | | | | This prevents the password from being sent to the webui. While an admin will always be able to retrieve the passwords (as they can do arbitrairy code execution by design) this prevents casual password snooping Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 18Christoph Wurst2019-12-201-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #18256 from nextcloud/files-aditional-scripts-new-eventsRoeland Jago Douma2019-12-091-1/+3
|\ | | | | Use non-depricated events for loading additional scripts in files app
| * use OCP\EventDispatcher\GenericEvent in more placesRobin Appelman2019-12-091-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | rejig right to left join for sqlite's satisfactionArthur Schiwon2019-12-061-3/+3
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Update license headersChristoph Wurst2019-12-0510-11/+24
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* extend with group deletion handlingArthur Schiwon2019-11-281-6/+14
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* when a user was delete remove them from applicable list, unlessArthur Schiwon2019-11-281-0/+24
| | | | | | it is the only user, then remove the mount Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Some php-cs fixesRoeland Jago Douma2019-11-226-20/+19
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* delay sending event from app init to when they are neededArthur Schiwon2019-08-021-0/+13
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* typos in doc, no code changesArthur Schiwon2019-02-151-2/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add LDAP ConfigHandler for external storages and "$home" varArthur Schiwon2019-02-141-1/+1
| | | | | | | | * handler registered upon OCA\\Files_External::loadAdditionalBackends event as user_ldap is loaded before files_external * new configuration field "ldapExtStorageHomeAttribute" (not in GUI yet) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* files_external: allow to register config handlers for flexible placeholdersArthur Schiwon2019-02-141-0/+68
| | | | | | | | * BackendService (directly accessable via \OC_Server) offers registerConfigHandler * SimpleSubstitutionTrait brings reusable logic for simple string replacments * internal $user replacement mechanism was migrated Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix UniqueConstraintViolationException while insert into files_external ↵Morris Jobke2018-11-141-18/+28
| | | | | | | | config tables * followup to #12371 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* move log constants to ILoggerArthur Schiwon2018-04-262-4/+6
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Less deprecated calls to OCP\Util::writeLogMorris Jobke2018-04-221-5/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused import statementsMorris Jobke2018-02-141-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-232-20/+19
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Handle invalid ext storage backend to keep mount point visibleVincent Petry2017-09-041-2/+8
| | | | | | | | Keep mount point visible and also ext storage config visible when dealing with configs relating to storage backends or auth mechanisms that were provided by an app that is currently disabled. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add Phan plugin to check for SQL injectionsLukas Reschke2017-07-201-0/+4
| | | | | | | | | | 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>
* use the correct param type when getting external storages for groupsRobin Appelman2017-05-221-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix translationsJoas Schilling2017-04-181-4/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* [files_external] Remove unneeded update stepsMorris Jobke2017-04-121-46/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* get files_external mounts more efficientlyRobin Appelman2016-09-052-0/+48
|
* Fix oracle support of external storage appJoas Schilling2016-08-151-1/+1
|
* Update with robinJoas Schilling2016-07-219-9/+9
|
* Fix apps/Joas Schilling2016-07-2111-19/+30
|
* Add option to `occ files_external:list` to show all configured mountsRobin Appelman2016-06-232-0/+31
|
* Update license headersLukas Reschke2016-05-267-2/+13
|
* Move remaining classes to PSR-4Joas Schilling2016-05-244-9/+7
|
* Move stuff from outside lib/ to PSR-4Joas Schilling2016-05-2411-0/+2167