summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests/Controller
Commit message (Collapse)AuthorAgeFilesLines
* Don't use deprecated getMock() anymoreJoas Schilling2017-04-201-3/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust existing bruteforce protection codeLukas Reschke2017-04-141-0/+1
| | | | | | | - Moves code to annotation - Adds the `throttle()` call on the responses on existing annotations Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-091-1/+1
| | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3955 from nextcloud/downstream-27113Roeland Jago Douma2017-03-211-1/+2
|\ | | | | Can we get some faster phpunit execution?
| * [CI] Can we get some faster phpunit execution? (#27113)Thomas Müller2017-03-201-1/+2
| | | | | | | | | | | | | | | | * Don't backup globals and static attributes * Unset global variable to remove impact on followup tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-201-1/+6
|\ \ | |/ |/| Skip null groups in group manager
| * Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-171-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Skip null groups in group manager (#26871) * Skip null groups in group manager * Also skip null groups in group manager's search function * Add more group null checks in sharing code * Add unit tests for null group safety in group manager * Add unit tests for sharing code null group checks * Added tests for null groups handling in sharing code * Ignore moveShare optional repair in mount provider In some cases, data is inconsistent in the oc_share table due to legacy data. The mount provider might attempt to make it consistent but if the target group does not exist any more it cannot work. In such case we simply ignore the exception as it is not critical. Keeping the exception would break user accounts as they would be unable to use their filesystem. * Adjust null group handing + tests * Fix new group manager tests Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | shares-circlesMaxence Lange2017-03-171-6/+12
|/ | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-081-4/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix testsArthur Schiwon2016-12-221-2/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Use group display name in sharing API + UIVincent Petry2016-12-222-4/+91
|
* Add config switchLukas Reschke2016-11-211-4/+20
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fixes not allowed increasing of link share permissionsRoeland Jago Douma2016-11-131-1/+56
| | | | | | | | | | | | | | | Fixes the following: 1. user0 shares folder with user1 (RO but with sharing permissions) 2. user1 shares by link 3. user1 send 'publicUpload=true' OCS request to the link share before this increased the permissions of the link share. Which should not happen. now: API reponds with an error that the permissions can't be increased. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Only check the sharing backends for file/folder itemsJoas Schilling2016-11-101-11/+40
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* More testsRoeland Jago Douma2016-11-031-0/+193
| | | | | | | | | * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* unit tests updated and new addedBjoern Schiessle2016-11-011-172/+136
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* unified way to display remote shares and mail sharesBjoern Schiessle2016-11-011-0/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #1876 from nextcloud/shareesAPI_emailMorris Jobke2016-10-251-12/+244
|\ | | | | Add ShareesAPI E-mail search
| * Add ShareesAPI E-mail searchRoeland Jago Douma2016-10-241-12/+244
| | | | | | | | | | | | | | * Allow to search for SHARE_TYPE_EMAIL (4) * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move files_sharing Controllers => ControllerRoeland Jago Douma2016-10-242-0/+658
|/ | | | | | | lib/Controller is the default location for controllers. So lets put them all in there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move Share20OCS to ShareAPIControllerRoeland Jago Douma2016-10-241-0/+2002
| | | | | | | | | | | | It was already a controller just still residing in its old location. * Moved ShareAPIController to user plain userID instead of user object * Moved Share20OCS to ShareAPIController * Removed initisation of class from Application.php and leave it to the AppFramework * Fixed tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow space for federated share id searchVincent Petry2016-08-301-0/+52
|
* Sharee API to AppFrameworkRoeland Jago Douma2016-08-261-0/+1545
* Move to OCSController * Move to Controller folder * Use automatic DI * Use function parameters * Updated tests