summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Add non-breaking space in the file size"szaimen2022-02-101-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Merge pull request #30688 from nextcloud/backport/30499/stable23MichaIng2022-01-151-70/+0
|\ | | | | [stable23] Remove inefficient fed share scanner
| * Remove inefficient fed share scannerVincent Petry2022-01-141-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>
* | Add non-breaking space in the file sizeCarl Schwan2022-01-141-1/+1
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Handle LocalServerException when scanning external sharesCarl Schwan2022-01-091-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-071-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Handle external share with invalid hostCarl Schwan2021-12-291-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>
* Discard share notification for non-existing groupsVincent Petry2021-12-171-1/+1
| | | | | | | | | | Group shares might exist even after a group got deleted. This fix catches the situation and discards the notification for the obsolete group. Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Joas Schilling <coding@schilljs.com>
* Limit more contact searchesJoas Schilling2021-12-132-3/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* code checker fixes for instanceOfStorageRobin Appelman2021-12-021-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* background scan the source storage when a background scan on a storage jail ↵Robin Appelman2021-12-021-0/+1
| | | | | | is triggered Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge branch 'master' into imountpoint-ocp-storageJohn Molakvoæ2021-10-2271-358/+728
|\
| * update testsRobin Appelman2021-10-191-17/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * use the correct navigation manager for the sharesRobin Appelman2021-10-191-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * call setupSharingMenus againRobin Appelman2021-10-191-13/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * move files_sharing to IBootStrapRobin Appelman2021-10-192-68/+47
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Merge pull request #28377 from nextcloud/fix/shared-ext-storage-scanszaimen2021-09-101-1/+16
| |\ | | | | | | Scan the shared external storage source on access
| | * Return proper watcher if SharedStorage originates from ExternalMountJohn Molakvoæ (skjnldsv)2021-09-101-1/+16
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * | Merge pull request #28764 from nextcloud/feat/sharing-link-eventJohn Molakvoæ2021-09-102-2/+100
| |\ \
| | * | Emit event on link share actionJohn Molakvoæ2021-09-102-2/+100
| | |/ | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * / use specific email getter where necessaryArthur Schiwon2021-09-091-1/+1
| |/ | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * Let users choose a share_folderHinrich Mahler2021-09-065-6/+47
| |
| * add event for when a share is mountedRobin Appelman2021-08-242-1/+75
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * 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-273-12/+14
| | | | | | | | | | | | 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-273-15/+28
| | | | | | | | | | | | | | 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>
| * Merge pull request #27875 from goyome/goyome-patch-group-shares-limitblizzz2021-07-141-1/+1
| |\ | | | | | | No limit in the number of group shares
| | * No limit in the number of group sharesGuillaume Colson2021-07-081-1/+1
| | | | | | | | | | | | | | | | | | By default, autoaccept doesn't work if the user has more than 50 group shares Signed-off-by: Guillaume COLSON <guillaume.colson@univ-lorraine.fr>
| * | Update "Sending password by Nextcloud Talk failed" sentenceszaimen2021-07-071-1/+1
| |/ | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
| * Migrate HintException to OCPGary Kim2021-06-301-2/+2
| | | | | | | | Signed-off-by: Gary Kim <gary@garykim.dev>
| * Use DI for files_sharing CacheMorris Jobke2021-06-172-11/+13
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Use proper methods for display name retrievalMorris Jobke2021-06-171-1/+8
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Merge pull request #26571 from nextcloud/bugfix/noid/existing-link-no-reshareblizzz2021-06-161-0/+6
| |\ | | | | | | Only allow removing existing shares that would not be allowed due to reshare restrictions
| | * When changing the share owner, downgrade permissions where neededJulius Härtl2021-06-091-0/+1
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| | * Drop share if moved to a parent share that does not allow resharingJulius Härtl2021-06-091-0/+5
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | Use product name in places where it is appropriate rather than the instance nameJulius Härtl2021-06-161-1/+2
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * | use searchoperation for storage filter instead of db expressionRobin Appelman2021-06-141-8/+13
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | rework search api to allow searching on multiple caches at onceRobin Appelman2021-06-141-11/+11
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | 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-0469-133/+66
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Also make other shares listen to the "Allow sharing with groups"Joas Schilling2021-05-261-1/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Merge pull request #26727 from nextcloud/group-exclude-link-shareMorris Jobke2021-05-212-24/+34
| |\ | | | | | | Add option to exclude groups from creating link shares
| | * load share settings from the share manager in more placesRobin Appelman2021-05-122-24/+34
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Merge pull request #25679 from nextcloud/drop/ocp-userMorris Jobke2021-05-211-3/+3
| |\ \ | | | | | | | | Drop \OCP\User
| | * | Drop \OCP\UserChristoph Wurst2021-05-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Inlines and remaining usages and drops the deprecated public API. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>