summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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-202-2/+27
|\ \ | | | | | | Skip null groups in group manager
| * | Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-172-2/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* | | Fix public link download buttonVincent Petry2017-03-201-0/+4
| |/ |/| | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | shares-circlesMaxence Lange2017-03-173-7/+41
| | | | | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* | Add CleanupRemoteStorages commandJörn Friedrich Dreyer2017-03-171-0/+193
|/ | | | | | | | | | | | | | | | | | | | cleanup files, address review Fix CleanupRemoteStoragesTest tests Fix test expectation. Added files count to check filecache deletion. Sort by numeric id for deterministic test results Removed precise order test and added storage check Remove inaccurate removal message check which has a different order on Oracle. Added more checks to confirm that existing storages still exist. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove legacy class OC_Group and OC_UserMorris Jobke2017-03-091-8/+17
| | | | | | * basically a straight replacement of the wrapped code at the calling code parts Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-084-7/+26
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow to access mail shares even if public links are disabledBjoern Schiessle2017-01-041-1/+33
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* 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
|
* use unmasked permissions in shared scannerRobin Appelman2016-12-141-0/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* apply permissions mask for shared storageRobin Appelman2016-12-021-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #2165 from nextcloud/sharing-activities-updateRoeland Jago Douma2016-11-221-81/+0
|\ | | | | Move file sharing activities to the new API
| * Move file sharing activities to the new APIJoas Schilling2016-11-161-81/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add config switchLukas Reschke2016-11-211-4/+20
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #2100 from nextcloud/do_not_increse_link_share_permsRoeland Jago Douma2016-11-141-1/+56
|\ | | | | Fixes not allowed increasing of link share permissions
| * 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>
* | Merge pull request #2067 from nextcloud/fileinfo-lazy-substoragesMorris Jobke2016-11-141-1/+2
|\ \ | |/ |/| only query substorages to calculate the final mtime/size/etag when we need it
| * only query substorages to calculate the final mtime/size/etag lazilyRobin Appelman2016-11-101-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Only check the sharing backends for file/folder itemsJoas Schilling2016-11-101-11/+40
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add testsRoeland Jago Douma2016-11-071-0/+224
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cleanup OC_Group usage a bitRoeland Jago Douma2016-11-042-25/+49
| | | | | | This is deprecated internal stuff. Should not be used anymore. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Merge pull request #1978 from nextcloud/remove-send-mail-optionMorris Jobke2016-11-022-19/+27
|\ | | | | Remove send mail option
| * remove the 'shareapi_allow_mail_notification' settingBjoern Schiessle2016-11-021-1/+27
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
| * remove 'send mail notification' option from sharing, replaced by ↵Bjoern Schiessle2016-11-021-18/+0
| | | | | | | | | | | | send-by-mail feature Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Merge pull request #1940 from nextcloud/new-appstoreMichael Grosser2016-11-021-1/+2
|\ \ | |/ |/| Use new appstore API
| * Fix testsLukas Reschke2016-10-311-1/+2
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | unit tests updated and new addedBjoern Schiessle2016-11-012-175/+143
| | | | | | | | 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>
* | Use Webdav PUT for uploads in the web browserVincent Petry2016-10-241-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - uses PUT method with jquery.fileupload for regular and public file lists - for IE and browsers that don't support it, use POST with iframe transport - implemented Sabre plugin to handle iframe transport and redirect the embedded PUT request to the proper handler - added RFC5995 POST to file collection with "add-member" property to make it possible to auto-rename conflicting file names - remove obsolete ajax/upload.php and obsolete ajax routes Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix testsRoeland Jago Douma2016-10-241-19/+19
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move files_sharing Controllers => ControllerRoeland Jago Douma2016-10-242-3/+3
|/ | | | | | | lib/Controller is the default location for controllers. So lets put them all in there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix middleware testsRoeland Jago Douma2016-10-241-13/+17
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move Share20OCS to ShareAPIControllerRoeland Jago Douma2016-10-242-72/+75
| | | | | | | | | | | | 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>
* Fix testsRoeland Jago Douma2016-10-211-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Adding Open Graph Support for public shares http://ogp.me/Thomas Müller2016-10-211-1/+5
| | | | | | In case no preview is available we display the ownCloud logo Fix unit test
* Merge pull request #1835 from nextcloud/downstream-24948Morris Jobke2016-10-203-4/+4
|\ | | | | Move OC\Files\Storage\Shared to the right namespace
| * Move OC\Files\Storage\Shared to the right namespaceJoas Schilling2016-10-203-4/+4
| |
* | Fix post_unshareFromSelf hook parameter formatVincent Petry2016-10-201-0/+22
|/ | | | | | | | | | When unsharing from self in a group share situation, the share items passed to the post_unshareFromSelf hook were using the wrong format in which the attribute names (ex: "share_type") have non camel-case format. This fix makes sure that in group sharing case we use the correct format. It looks like the code was already producing it but in array_merge it was not using it and adding the unprocessed one.
* remove duplicate traitRobin Appelman2016-10-121-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix share tests not passing pathRobin Appelman2016-10-121-4/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more robust test setupRobin Appelman2016-10-123-11/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* phpunit is weirdRobin Appelman2016-10-121-3/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Generate coverage for quick DB testsLukas Reschke2016-10-053-3/+3
| | | | | | This adds the "QUICKDB" group which excludes some tests that abuse unit tests as integration tests as displayed in https://github.com/nextcloud/server/issues/1626 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Inject IHTTPClientServiceLukas Reschke2016-09-291-1/+21
| | | | | | | | | | Otherwise the unit test execution will do a ton of external HTTP requests which fail and then timeout… See https://blackfire.io/profiles/compare/3c67acfa-a11e-4aec-bcd4-c945b006f01e/graph for reference Pretty similar to https://github.com/nextcloud/server/pull/1565 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>