aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #21189 from owncloud/fix_21187Thomas Müller2015-12-151-1/+1
|\ | | | | File shares can't have create permissions
| * File shares can't have create permissionsRoeland Jago Douma2015-12-141-1/+1
| | | | | | | | fixes #21187
* | Fixed JS unit tests for fed owner display nameVincent Petry2015-12-141-0/+4
| |
* | show display name but internally use the user nameBjörn Schießle2015-12-141-0/+1
|/
* Add test case for group share propagationRobin Appelman2015-12-104-78/+215
|
* More fixes to the docsJoas Schilling2015-12-081-0/+2
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-072-0/+11
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-071-1/+0
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Only return the exact match, when it's allowedJoas Schilling2015-12-021-5/+23
|
* Merge pull request #20688 from owncloud/publiclink-getdownloadurl-webdavThomas Müller2015-11-301-4/+4
|\ | | | | Fix public link getDownloadUrl to return Webdav public link
| * Fix public link getDownloadUrl to return Webdav public linkVincent Petry2015-11-251-4/+4
| | | | | | | | | | | | | | | | This is for apps that use getDownloadUrl() to access the Webdav endpoint for example for streaming. Also happens when clicking on the download action of a file. Note that the regular visible download URL is still the same.
* | Adding more DB groups to test suitsThomas Müller2015-11-302-0/+4
| | | | | | | | Adding more DB groups to test suits
* | Apply DB group annotation ...Thomas Müller2015-11-3024-38/+108
| |
* | Merge pull request #20691 from owncloud/share2.0_di_fixesThomas Müller2015-11-251-90/+138
|\ \ | | | | | | [Sharing 2.0] di fixes
| * | [Sharing 2.0] Use the rootfolder to get the path of a shareRoeland Jago Douma2015-11-241-43/+58
| | | | | | | | | | | | | | | We need to use the rootfolder here since we also other people than the shareOwner can request a share.
| * | [Sharing 2.0] Move authentication to the OCS APIRoeland Jago Douma2015-11-241-49/+82
| | |
| * | [Sharing 2.0] Removed unused DI stuffRoeland Jago Douma2015-11-241-7/+7
| |/ | | | | | | | | The share manager etc should not care about filtering stuff. They should return what is asked for them.
* | Merge pull request #20439 from owncloud/etag-propagate-in-storageThomas Müller2015-11-253-175/+2
|\ \ | |/ |/| Take submount etag into account for folder etags
| * update testsRobin Appelman2015-11-191-1/+2
| |
| * take the etag of child mounts into account for the folder etagRobin Appelman2015-11-192-174/+0
| | | | | | | | this replaces shared etag propagation
* | Fix port issue - options.host already has the port attachedThomas Müller2015-11-221-4/+2
| |
* | Make public link share page work with Webdav and add operationsVincent Petry2015-11-221-2/+18
| | | | | | | | | | | | | | | | The public page now uses the public.php/webdav endpoint. Also enabled more file operations like rename, move, delete and create folder from the public page, which are now all possible thanks to the public.php/webdav endpoint.
* | Make files app use Webdav for most operationsVincent Petry2015-11-221-17/+9
|/
* [Share2.0] OCS Share API getShare uses new codeRoeland Jago Douma2015-11-161-13/+246
|
* Add tests for FileInfo ownerRobin Appelman2015-11-101-0/+16
|
* The new sharing code now handles deletionRoeland Jago Douma2015-11-051-0/+113
| | | | OCS -> ShareManager -> DefaultShareProvider
* Bring back delete permission in share overviewVincent Petry2015-10-291-17/+9
|
* Update license headersLukas Reschke2015-10-2611-9/+11
|
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-252-29/+27
| | | | | | | | | | Currently the `getPath` methods returned `NULL` in case when a file with the specified ID does not exist. This however mandates that developers are checking for the `NULL` case and if they do not the door for bugs with all kind of impact is widely opened. This is especially harmful if used in context with Views where the final result is limited based on the result of `getPath`, if `getPath` returns `NULL` PHP type juggles this to an empty string resulting in all possible kind of bugs. While one could argue that this is a misusage of the API the fact is that it is very often misused and an exception will trigger an immediate stop of execution as well as log this behaviour and show a pretty error page. I also adjusted some usages where I believe that we need to catch these errors, in most cases this is though simply an error that should hard-fail.
* Add backgroundjob to expire link sharesRoeland Jago Douma2015-10-201-0/+204
| | | | | | Simple background job to expire the link shares. * added unit tests
* Make shared folder size propagation test work with object home storageRobin Appelman2015-10-161-6/+4
|
* Fix shared storage tests for non local home storageRobin Appelman2015-10-161-3/+3
|
* fix sabre connector tests when using a non local home storageRobin Appelman2015-10-161-2/+5
|
* Merge pull request #19414 from owncloud/swift_primary_storage_testsThomas Müller2015-10-082-0/+8
|\ | | | | Swift primary storage tests
| * test objectstore with ceph dockerJörn Friedrich Dreyer2015-10-062-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use default config for swift primary storage test config allow testsuite to complete fix timeout, script cleanup, enable debug for now use btrfs loopback device, requires privileged container and absolute path throw exception when storage has problems debug by echo ... sleep more, more debug
* | Merge pull request #19589 from owncloud/shares-external-mount-providerThomas Müller2015-10-071-6/+27
|\ \ | | | | | | Move the setup of external share mounts to a mountprovider
| * | fix testRobin Appelman2015-10-051-1/+6
| | |
| * | Make the external share manager a mount providerRobin Appelman2015-10-051-6/+22
| | |
* | | Merge pull request #19511 from owncloud/etag-share-permissions-updateRobin Appelman2015-10-061-0/+14
|\ \ \ | | | | | | | | Mark shares as dirty when changing permissions
| * | | clear hooks for testsRobin Appelman2015-10-061-0/+1
| | | |
| * | | Mark shares as dirty when changing permissionsRobin Appelman2015-10-061-0/+13
| | |/ | |/|
* / | Propagate shares etag when group membership changedVincent Petry2015-10-061-0/+175
|/ /
* / update licence headers via scriptMorris Jobke2015-10-0511-6/+8
|/
* Merge pull request #19487 from owncloud/split_share_middlewareThomas Müller2015-10-052-60/+145
|\ | | | | Split files_sharing middelware
| * sharingcheckmiddleware now handles externalshares as wellRoeland Jago Douma2015-10-022-38/+124
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new annotations for the externalsharescontroller class * @NoOutgoingFederatedSharingRequired * @NoIncomingFederatedSharingRequired By default both are required for all functions in the externalSharesController. A proper exception is thrown and then a 405 is returned instead of the default error page. Since it is only an API endpoint this makes more sense. Unit tests added and updated
| * Split files_sharing middelwareRoeland Jago Douma2015-10-021-29/+28
| | | | | | | | | | | | | | | | | | | | | | Since for external shares there is no need for link shares to be enabled we should check which controller is actually being called. This makes sure that in all cases we verify that the files_sharing app is enabled. But only for the share controller (public shares) we check if the API is enabled and if links are enabled. TODO: add checks for federated sharing as well
* | Fix and extend unit testsRoeland Jago Douma2015-10-021-11/+104
| |
* | Use shorter text on the sidebar for files_sharing activitiesJoas Schilling2015-10-021-1/+4
|/
* Only intercept exceptions of type "NotFoundException" instead of any ExceptionLukas Reschke2015-09-301-1/+54
| | | | | | The sharing backend may throw another exception for example when the activity app encounters a problem. Previously this just triggered a 404 error page and the exception got not logged at all. With this change such exceptions get not intercepted and regularly handled as exceptions so that we have meaningful log data. Also the user will be shown a window informing him that an error happened. Helps to debug cases such as https://github.com/owncloud/core/issues/19465
* Still show share link when recipient but no share permissionVincent Petry2015-09-281-10/+3
| | | | | | | | This makes it possible for the recipient to still trigger the sidebar and share tab to see information about the share. In the case where the file is not shared and no permissions exists, no action icon will be displayed.