aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/External
Commit message (Collapse)AuthorAgeFilesLines
* fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-051-3/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-215-88/+35
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(deps): Bump nextcloud/coding-standard in /vendor-bin/cs-fixerdependabot/composer/vendor-bin/cs-fixer/nextcloud/coding-standard-1.3.2dependabot[bot]2024-10-191-12/+12
| | | | | | | | | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 1.3.1 to 1.3.2. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v1.3.1...v1.3.2) --- updated-dependencies: - dependency-name: nextcloud/coding-standard dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-154-6/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(files_sharing): Add Storage parameter strong typesprovokateurin2024-10-071-9/+10
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files_sharing): Fix all IStorage return typesprovokateurin2024-09-261-22/+12
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files_sharing): Check if propfind response is valid before accessing ↵fix/files_sharing/ocm-permissionsprovokateurin2024-09-261-0/+4
| | | | | | share permission props Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(files_sharing): Make permissions prop checks less error proneprovokateurin2024-09-261-6/+9
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files_sharing): Parse OCM share permissions from OCM and not OCS propprovokateurin2024-09-261-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(federation): Do not overwrite certificate bundlefix/federation-certificate-storeJulius Härtl2024-09-201-14/+17
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Storage): Fix method docs inheritancefix/storage/method-docs-inheritanceprovokateurin2024-09-171-5/+0
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Storage): Document getOwner() can return falseprovokateurin2024-09-171-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Fix psalm issues, put back private versions of getter in private ↵Côme Chilliet2024-09-161-0/+1
| | | | | | Storage interface Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Handle null checks with the ?? operatorrefactor/elvisChristoph Wurst2024-09-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* refactor: Use the elvis operatorChristoph Wurst2024-09-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-12/+12
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-067-161/+21
| | | | 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>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* optimize builtin storage wrappersRobin Appelman2023-11-081-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #39044 from nextcloud/more-empty-mount-checkingRobin Appelman2023-10-241-0/+4
|\ | | | | Fix root mounts not being setup in some cases
| * add more checks to ensure mounts aren't emptyRobin Appelman2023-09-121-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(federation): Use `sharing.federation.allowSelfSignedCertificates` config ↵Joas Schilling2023-10-111-0/+4
| | | | | | | | | | | | for all OCM requests Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-1/+1
| | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | set authType to basicMaxence Lange2023-09-201-0/+1
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* | ocm controllerMaxence Lange2023-09-201-39/+53
|/ | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(caching): Avoid checking existence before fetchingChristoph Wurst2023-06-121-2/+3
| | | | | | | | The cache might expire between checking for key existence and fetching the value. In this rare case the code continues with a null value when it doesn't expect one. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Refactors "strpos" calls in /apps/files_sharing to improve code readability.Faraz Samapoor2023-06-021-1/+1
| | | | Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
* Avoid extra parenthesis around SQL in IN expressionsCôme Chilliet2023-02-211-5/+5
| | | | | | | | The expression builder already suround the SQL with parenthesis when using in(), so we must not add another pair, this confuses at least sqlite. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* perf(federation): Only request root share info for checking availabilityJulius Härtl2023-01-311-3/+3
| | | | | | Otherwise this would request a full recursive dirctory listing while the result is never being used Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Fix various other small psalm issuesCarl Schwan2022-10-172-9/+3
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix incorrect argument name in inherited methodCarl Schwan2022-10-171-2/+2
| | | | | | The arguments now need to be the same as in the parent method Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix permission not being intCarl Schwan2022-10-171-4/+4
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* fix external share scanner not propagating locking-opt-outRobin Appelman2022-08-031-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Disable locking on federated sharesCarl Schwan2022-08-031-0/+5
| | | | | | | The old inneficiant code didn't do locking and adding locking is creating issues Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Revert "Remove inefficient fed share scanner""Carl Schwan2022-08-031-70/+0
| | | | | | This reverts commit 6667007bf235b90a7dd105c881cf5802b2a3f83e. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Revert "Remove inefficient fed share scanner"Carl Schwan2022-06-101-0/+70
| | | | | | This reverts commit ce319143142e2ee998ef4794b04ad684c4ffa911. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #31713 from nextcloud/fed-performanceRobin Appelman2022-04-071-1/+8
|\ | | | | Federated share performance improvements
| * only request free space once for external sharesRobin Appelman2022-04-041-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * use all possible permissions dav propertiesRobin Appelman2022-04-041-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * don't overwrite the etag from storage backends that already provide "good" etagsRobin Appelman2022-04-041-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Use querybuilder for share external mountpointCarl Schwan2022-04-061-7/+9
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* invalidate mount cache after accepting or renaming federated shareRobin Appelman2022-03-251-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust tests to new fs setupRobin Appelman2022-03-041-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-231-1/+1
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* improve errors for external share availability checkRobin Appelman2022-02-211-7/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove inefficient fed share scannerVincent Petry2022-01-101-70/+0
| | | | | | | | | | Remove scanAll which relies on the "shareinfo" endpoint that returns the full cache tree. The latter can become big for big shares and result in timeouts. Furthermode, the full tree would be retrieved again for each and every detected change which can become expensive quickly. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Handle LocalServerException when scanning external sharesCarl Schwan2022-01-061-2/+11
| | | | | | | | When remoteIsOwnCloud trows LocalServerException, the storage is unavailable and instead of crashing the scanner, ignore the specific storage. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix passing on the parameterJoas Schilling2022-01-051-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>