aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/External/Storage.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-131-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(ocm): signing ocm requestsMaxence Lange2024-12-041-0/+1
| | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-211-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-2/+4
| | | | 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>
* 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>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-6/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-06-061-30/+3
| | | | 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>
* 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>
* 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>
* 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 permission not being intCarl Schwan2022-10-171-4/+4
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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>
* improve errors for external share availability checkRobin Appelman2022-02-211-7/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Improve api documentation for file sharing external storageCarl Schwan2022-01-031-28/+24
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Handle external share with invalid hostCarl Schwan2021-12-201-3/+11
| | | | | | | | remoteIsOwnCloud might throw an exception when the host is localhost. Handle this case instead of aborting completely. The behavior is the same as that is done 10 lines under it Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-2/+2
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [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/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | 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>
* Pass $path to ocmPermissions2ncPermissionsDaniel Kesselberg2020-06-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-4/+4
| | | | | | | | | | | | | | | 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-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Catch Request exception in testRemoteUrlRoeland Jago Douma2019-02-151-0/+3
| | | | | | | Else the background job fails hard if the remote has for example an invalid certificate. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add interface to allow storages from opting out of encryptionRobin Appelman2018-11-291-1/+2
| | | | | | As opposed to hard-coding a list of excluded storages Signed-off-by: Robin Appelman <robin@icewind.nl>
* look for correct OCM permissionsBjoern Schiessle2018-07-021-6/+56
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use an actual function of the storage to determine needsPartFileRoeland Jago Douma2018-05-011-0/+3
| | | | | | | We have a function for it so better to override that. Also because other codes that might check this should get the right value. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Also replace all other occurencesMorris Jobke2017-12-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Also cache invalid DiscoveryService responseRoeland Jago Douma2017-12-131-1/+1
| | | | | | | | * Cache it for a day so we will retry eventually * Cache the status.php response as well so we will try it once a day as well 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>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3614 from nextcloud/discover-federatedsharing-endpointsBjörn Schießle2017-04-121-9/+7
|\ | | | | Discover federatedsharing endpoints
| * Do proper DIRoeland Jago Douma2017-04-111-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>