aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* Adds a "Request password" button to the public share authentication page for ↵Cyrille Bollu2022-04-112-0/+6
| | | | | | | | | | | | | | | | | | shares of type TYPE_EMAIL, when the "video verification" checkbox isn't checked. Users accessing non-anonymous public shares (TYPE_EMAIL shares) can now request a temporary password themselves. - Creates a migration step for the files_sharing app to add the 'password_expiration_time' attribute to the oc_shares table. - Makes share temporary passwords' expiration time configurable via a system value. - Adds a system config value to allow permanent share passwords -Fixes a typo in a comment in apps/files_sharing/src/components/SharingEntryLink.vue See https://github.com/nextcloud/server/issues/31005 Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
* Merge pull request #31194 from ↵Vincent Petry2022-04-061-0/+12
|\ | | | | | | | | nextcloud/feat/allow-to-exclude-groups-from-password-enforcement Allow to disable password policy enforcement for selected groups
| * Allow to disable password policy enforcement for selected groupsCarl Schwan2022-04-051-0/+12
| | | | | | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* | Merge pull request #31684 from nextcloud/user-share-permissions-mergeSimon L2022-04-051-0/+44
|\ \ | | | | | | take permissions from multiple paths into account for share permissions
| * | take permissions from multiple paths into account for share permissionsRobin Appelman2022-03-311-0/+44
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | ensure user folder is created in ApiTestRobin Appelman2022-04-041-0/+3
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #31240 from nextcloud/Valdnet-patch-3Louis2022-03-311-1/+1
|\ \ \ | | | | | | | | l10n: Add a dot
| * | | Fix testValdnet2022-03-311-1/+1
| | | | | | | | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* | | | Fix ILogger instances in application tests for core parametersCôme Chilliet2022-03-241-2/+2
| |/ / |/| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Add test to spelling unificationLouis Chemineau2022-03-211-1/+1
| |/ |/| | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | simplify setup of circular SetupManager<->ManagerRobin Appelman2022-03-041-6/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | move logic to decide what to setup to setupmanagerRobin Appelman2022-03-041-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | adjust tests to new fs setupRobin Appelman2022-03-041-7/+15
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | make share cache test resilient against skeleton files not being thereRobin Appelman2022-02-251-5/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Support CRUD share permissionsLouis Chemineau2022-02-151-0/+93
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Revert "Add non-breaking space in the file size"szaimen2022-02-101-4/+4
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Add non-breaking space in the file sizeCarl Schwan2022-01-141-4/+4
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Replace license information to SPDX expressionLouis Chemineau2022-01-114-7/+7
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* 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>