summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove inefficient fed share scannerVincent Petry2022-01-101-12/+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>
* Fix tests on PHP 8.1 for encryption, files_sharing, files_version,Côme Chilliet2021-12-161-0/+4
| | | | | | files_trashbin and theming apps Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Limit more contact searchesJoas Schilling2021-12-081-2/+10
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move common logic to share managerJoas Schilling2021-11-091-1/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* update testsRobin Appelman2021-10-192-2/+19
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #28764 from nextcloud/feat/sharing-link-eventJohn Molakvoæ2021-09-101-3/+3
|\
| * Emit event on link share actionJohn Molakvoæ2021-09-101-3/+3
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* | use specific email getter where necessaryArthur Schiwon2021-09-091-4/+4
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add event for when a share is mountedRobin Appelman2021-08-241-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix remote share deletion when deleting userVincent Petry2021-07-271-28/+147
| | | | | | | 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-3/+3
| | | | | | 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-0/+36
| | | | | | | | 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-2/+10
| | | | | | 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-3/+163
| | | | | | | | | | 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>
* Add logging to external shares managerVincent Petry2021-07-271-0/+2
| | | | | | | 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-83/+143
| | | | | | | | | | | | 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>
* Allow to get a local cloud id without going through the contacts managerJulius Härtl2021-07-142-2/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update "Sending password by Nextcloud Talk failed" sentenceszaimen2021-07-071-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Use product name in places where it is appropriate rather than the instance nameJulius Härtl2021-06-161-1/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0436-51/+20
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Make dav respect disallowing sharing with groupsThomas Citharel2021-05-261-24/+28
| | | | | | Closes #25390 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Merge pull request #26727 from nextcloud/group-exclude-link-shareMorris Jobke2021-05-211-1/+36
|\ | | | | Add option to exclude groups from creating link shares
| * load share settings from the share manager in more placesRobin Appelman2021-05-121-1/+36
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | l10n: Unify spelling in testValdnet2021-05-201-1/+1
| |
* | l10n: Unify spelling in testValdnet2021-05-201-2/+2
|/
* Add bruteforce protection to the shareinfo endpointRoeland Jago Douma2021-05-121-0/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #26784 from nextcloud/Valdnet-patch-8rakekniven2021-04-281-1/+1
|\ | | | | l10n: Change to a capital letter
| * Change size of the letter in testValdnet2021-04-281-1/+1
| |
* | Fix unit testsJoas Schilling2021-04-271-1/+1
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Unit tests for federated share expiration dateVincent Petry2021-04-152-1/+198
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Bump js licensesJohn Molakvoæ (skjnldsv)2021-03-314-41/+67
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Map old account scope properties to new namesVincent Petry2021-03-261-4/+4
| | | | | | | | Use new scope values in settings page. Adjust all consumers to use the new constants. Map old scope values to new ones in account property getter. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Merge pull request #26194 from ↵John Molakvoæ2021-03-181-135/+0
|\ | | | | | | | | nextcloud/techdebt/noid/remove-duplicate-sharing-unit-integration-tests-group-permission Remove duplicate unit test in sharing that checks for group permission updates
| * Remove duplicate unit test in sharing that checks for group permission updatesMorris Jobke2021-03-181-135/+0
| | | | | | | | | | | | | | | | * it was skipped before anyways * it is covered for example in build/integration/sharing_features/sharing-v1-part3.feature#L517-L548 (see https://github.com/nextcloud/server/blob/54f8f75f6f82ca102b1cfdb88caf0d06e6c9ba31/build/integration/sharing_features/sharing-v1-part3.feature#L517-L548) * more permission updates are tested in the webdav section, where an OCS API is called and the WebDAV response is checked for the properly changed permission Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #26193 from ↵Morris Jobke2021-03-181-169/+0
|\ \ | | | | | | | | | | | | nextcloud/techdebt/noid/remove-sharing-duplicate-unit-integration-tests Permission tests for the sharing are fully covered in sharing v1 integration tests
| * | Permission tests for the sharing are fully covered in sharing v1 integration ↵Morris Jobke2021-03-181-169/+0
| |/ | | | | | | | | | | | | | | tests See build/integration/sharing_features/sharing-v1*.features for the exact same tests. Especially part3 that covers most of the different permission setups over webdav. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #25331 from ↵Morris Jobke2021-03-181-1/+26
|\ \ | |/ |/| | | | | nextcloud/fix-valid-storages-removed-when-cleaning-remote-storages Fix valid storages removed when cleaning remote storages
| * Fix valid storages removed when cleaning remote storagesDaniel Calviño Sánchez2021-01-281-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The remote URL of a share is always stored in the database with a trailing slash. However, when a cloud ID is generated trailing slashes are removed. The ID of a remote storage is generated from the cloud ID, but the "cleanup-remote-storage" command directly used the remote URL stored in the database. Due to this, even if the remote storage was valid, its ID did not match the ID of the remote share generated by the command and ended being removed. Now the command generates the ID of remote shares using the cloud ID instead, just like done by the remote storage, so there is no longer a mismatch. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Fix CS in CacheTestVincent Petry2021-03-161-1/+1
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Merge pull request #25136 from nextcloud/cachejail-search-filterVincent Petry2021-03-151-0/+36
|\ \ | | | | | | do cachejail search filtering in sql
| * | fix search in nested jailsRobin Appelman2021-01-261-0/+36
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-184-16/+16
|/ | | | | | | | | | 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>
* Re-use fetched dependencies in lib/base.phpMorris Jobke2021-01-203-4/+4
| | | | | | | | Reduces calls to DI container by reusing already fetched dependencies. For status.php it went from 355 to 344. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-1618-15/+25
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Show unique displayname context in the user share list entriesJulius Härtl2020-12-141-0/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #24630 from nextcloud/enh/noid/unknown_named_parameterRoeland Jago Douma2020-12-101-1/+1
|\ | | | | Error: Unknown named parameter $remote_id
| * Fix variable name for testDaniel Kesselberg2020-12-101-1/+1
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #24605 from nextcloud/enh/share-deckRoeland Jago Douma2020-12-102-7/+29
|\ \ | |/ |/| Add deck share provider support
| * Address minor commentsJulius Härtl2020-12-091-4/+4
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Adjust mountprovider testsJulius Härtl2020-12-092-3/+25
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>