aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/External
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* 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>
* move files_sharing to IBootStrapRobin Appelman2021-10-191-14/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Let users choose a share_folderHinrich Mahler2021-09-061-1/+1
|
* Fix remote share deletion when deleting userVincent Petry2021-07-271-23/+54
| | | | | | | When deleting a user, we should only delete the direct remote user shares or the remote group based subshares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Replace ILogger with LoggerInterface in remote share managerVincent Petry2021-07-271-10/+10
| | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Carl Schwan <carl@carlschwan.eu>
* Fix remote group share decline+accept code pathVincent Petry2021-07-271-1/+7
| | | | | | | | When declining a remote group share through the dialog that appears when notifications are off, the mount point is now correctly saved when re-accepting. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix external share manager with multiple user groupsVincent Petry2021-07-271-8/+15
| | | | | | Use query builder with proper matching for finding the group names. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix remote group share API interactionsVincent Petry2021-07-271-8/+36
| | | | | | | | | | Accepting and declining can now be done repeatedly on both the parent group share and sub-share with the same effects. Added unit tests to cover these cases, and also when the same operation is repeated. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix re-accepting or re-rejecting remote group sharesVincent Petry2021-07-271-42/+97
| | | | | | | | | | | | | When accepting a group share, a sub-share entry is created which also has a different id. When accepting or rejecting the sub-share, simply update the "accepted" flag instead of trying to re-insert the entry. Adjust getShare to also properly validate group share membership when called on a sub-share id. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add logging to external shares managerVincent Petry2021-07-271-13/+24
| | | | | | | Instead of just returning false, also log the exception to make debugging database issues easier. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix received federated group sharesVincent Petry2021-07-271-9/+41
| | | | | | | | | | | | Fix pending shares endpoint to consider user-specific sub-entries for group shares whenever a share was accepted or declined. Added unit test for adding remote group shares. Fixed "removeUserShares" to not send a remote request as we never send remote requests for group shares. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Correctly check the reception of a remote feedbackLouis Chemineau2021-06-091-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-047-10/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Rename External storages to External storageszaimen2021-05-201-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* catch notfound and forbidden exception in smb::getmetadataRobin Appelman2021-03-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-182-3/+3
| | | | | | | | | | 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>