aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Controller
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Migrate IgnoreOpenAPI attributes to OpenAPIprovokateurin2024-01-181-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-232-6/+5
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* refactor: Rename OpenAPI type aliases to their namespacesjld31032023-11-021-3/+3
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* fix(files_external): basic auth user storage triggerJohn Molakvoæ2023-10-101-0/+1
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add single status code descriptions for OpenAPIjld31032023-09-271-0/+2
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* admin have no special rights on users' entriesMaxence Lange2023-09-011-1/+1
| | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* files_external: Fix OpenAPIjld31032023-08-071-1/+3
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* feat(files_external): migrate to vueJohn Molakvoæ2023-08-015-50/+48
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Migrate files external to PSR LoggerInterfaceBenjamin Gaussorgues2023-08-014-59/+18
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* files_external: Add OpenAPI specjld31032023-07-111-3/+8
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Force cast getCode to intCarl Schwan2022-10-161-2/+2
| | | | | | Otherwise psalm complains that the type can also be a non-falsy-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>
* Add option to disallow creation of local storagesVincent Petry2021-12-154-7/+54
| | | | | | | Introduce a new config option to prevent web UI admins to create or edit external storages of type "local". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* move files_external to IBootstrapRobin Appelman2021-06-161-2/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove depricated methods from MountConfigRobin Appelman2021-06-161-17/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-046-8/+3
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-114-15/+15
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* dont offer to edit external config settings if we can't edit themRobin Appelman2021-01-084-22/+53
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-164-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move OC_Mount_Config to proper classname and remove OC::$CLASSPATH usage in ↵Morris Jobke2020-07-102-2/+2
| | | | | | files_external Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-105-9/+1
| | | | | | | | | | | | | | | 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 php keywords in lowercaseChristoph 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-093-3/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix (array) indent style to always use one tabChristoph Wurst2020-04-091-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-315-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-265-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use placeholder values for password fields in external storage webuiRobin Appelman2020-03-124-34/+58
| | | | | | | | | | 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 headersChristoph Wurst2019-12-056-8/+12
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-225-38/+37
| | | | | | | | | | | * 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>
* allow setting user provided global credentials trough credentials popupRobin Appelman2019-09-091-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unused import statementsMorris Jobke2018-02-141-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Simplify ternary operator statementsMorris Jobke2018-01-261-3/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* [files_external] OCS endpoint to proper OCSControllerRoeland Jago Douma2018-01-181-0/+108
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Allow 2048 and 4096 bit SFTP keysRoeland Jago Douma2017-06-291-4/+6
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix translationsJoas Schilling2017-04-184-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Allow using '/' as external storage rootRobin Appelman2017-03-231-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix typo in sftp public keyMartin2017-03-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update with robinJoas Schilling2016-07-215-5/+5
|
* Fix apps/Joas Schilling2016-07-215-9/+19
|
* Allow regular users to specify global credentials passwordLukas Reschke2016-06-271-3/+39
| | | | | | | | | While the UI is existent the feature simply doesn't work because admin privileges are required for the controller. This adds proper permission checks and also unit tests. To test this: 1. Enable external storage 2. Login as non-admin user 3. Go to personal page and try to change global credentials
* Add "Global Auth" option to external storageRobin Appelman2016-06-211-1/+19
| | | | | | | | This adds the "Global Auth" option to the external storage implementation, it is basically done by reverting c2c6caee93c491de9fa9a2e7c2eea036f4974e61 from https://github.com/owncloud/core/pull/22468. This was taken from owncloud/core which is AGPL licensed. Commited with "icewind@owncloud.com" to keep the license header signature in sync. ![2016-06-21_14-01-06](https://cloud.githubusercontent.com/assets/878997/16228662/9c243136-37b8-11e6-9700-c1076ddb3d17.png)
* Fix conversion issuesJuan Pablo Villafáñez2016-06-204-0/+6
| | | | Change to phpdoc type for automatic conversion
* Change the default value to true instead of nullJuan Pablo Villafáñez2016-06-084-7/+7
|
* Rename variableJuan Pablo Villafáñez2016-06-074-14/+14
|
* Add support to know where the storage test comes fromJuan Pablo Villafáñez2016-06-074-13/+17
|
* Update license headersLukas Reschke2016-05-264-0/+4
|
* Move remaining classes to PSR-4Joas Schilling2016-05-244-7/+7
|
* Move stuff from outside lib/ to PSR-4Joas Schilling2016-05-245-0/+1009