summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Service
Commit message (Collapse)AuthorAgeFilesLines
* fix(external_storage): Cast id to intbackport/49602/stable30Oleksander Piskun2024-12-031-2/+2
|
* chore: Add SPDX headerAndy Scherzinger2024-06-069-209/+26
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* mark MOUNT_TYPE_PERSONAl as deprecatedMaxence Lange2024-02-241-0/+2
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* full uppercase constMaxence Lange2024-02-242-5/+4
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(external): Get storage before update itJoas Schilling2023-10-261-0/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* use fresh builders when deleting storagesRobin Appelman2023-08-141-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #39605 from nextcloud/bugfix/noid/final-events-cleanupJoas Schilling2023-08-041-1/+2
|\ | | | | fix!: Final round of moving to IEventDispatcher
| * fix!: Move getEventDispatcher usage to IEventDispatcherJoas Schilling2023-07-281-1/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Migrate files external to PSR LoggerInterfaceBenjamin Gaussorgues2023-08-012-12/+9
|/ | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* getStorage before removeMaxence Lange2023-07-111-0/+6
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Additional type hinting found by psalmCarl Schwan2022-10-181-5/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Specify type to internal storage classCarl Schwan2022-10-171-0/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix type of getVisibilityTypeCarl Schwan2022-10-173-3/+3
| | | | | | This is a int not a string Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in apps/ subdirectoryluz paz2022-09-051-1/+1
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Apply suggestions from code reviewRobin Appelman2022-03-241-1/+1
| | | | | | | Co-authored-by: Louis <6653109+artonge@users.noreply.github.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Robin Appelman <robin@icewind.nl>
* force full setup after external storage config changeRobin Appelman2022-03-243-5/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove old legacy external storage migration logicRobin Appelman2022-02-091-56/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0410-10/+5
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Rename External storages to External storageszaimen2021-05-204-5/+5
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* better cleanup of filecache when deleting an external storageRobin Appelman2021-05-191-38/+1
| | | | | | this way it can delete the cache entries even with per-user credentials Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix types in the Group ManagerRoeland Jago Douma2021-03-031-1/+1
| | | | | | | | | Psalm found an issue. However the issue found was because of lying docblocks. Fixed those and did some typing to make it all better. For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix a few RedundantCastRoeland Jago Douma2021-03-011-1/+1
| | | | | | | Reported by psalm For #25641 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-164-4/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Don't leave cursors open when tests failJoas Schilling2020-11-091-1/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Remove @suppress SqlInjectionCheckerMorris Jobke2020-09-161-4/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix "misplaced variables" warning of Psalm in PHPDoc statementsMorris Jobke2020-08-171-1/+1
| | | | | | Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix some MissingDocblockType or InvalidDocblock warnings.Daniel Kesselberg2020-08-141-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* remove saved credentails if the user no longer has any storage configured ↵Robin Appelman2020-07-301-4/+9
| | | | | | using them Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-104-15/+15
| | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headers for 19Christoph Wurst2020-04-294-0/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-102-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>