summaryrefslogtreecommitdiffstats
path: root/tests/lib/share20/managertest.php
Commit message (Collapse)AuthorAgeFilesLines
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-2570/+0
| | | | | | | | | | | | | | | | | | | | * Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
* Fix testsRoeland Jago Douma2016-04-191-3/+7
|
* Add testLukas Reschke2016-04-121-0/+40
|
* Fix ShareManager testsRoeland Jago Douma2016-04-081-1/+1
|
* Set proper permissions on link shareRoeland Jago Douma2016-04-081-0/+19
| | | | | | | | If we do not allow public upload we should limit the permissions on links shares upon retrieval. * Added unit test * Allow fetching federated shares by token as well
* Non moveable mount points should always be UPDATE+DELETE shareableRoeland Jago Douma2016-03-301-0/+11
| | | | | | | | | | | | Fixes #23536 The new sharing code is much stricter in checking permissions. However for non moveable mounts the permissions UPDATE+DELETE are not reported on the mount point. This is just a quick fix. * Updated unit tests
* Block group sharing in API and in share managerRoeland Jago Douma2016-03-221-0/+30
| | | | * Fix tests
* Merge pull request #22683 from owncloud/fix_22682Thomas Müller2016-02-291-0/+11
|\ | | | | Relax rootfolder check
| * Relax rootfolder checkRoeland Jago Douma2016-02-261-0/+11
| | | | | | | | | | * Updated unit tests * Added intergration test
* | Expiration date can only be enforced if default is enabledRoeland Jago Douma2016-02-261-0/+15
|/ | | | | | If the default expiration date is not enebaled it can not be enforced. * Added unit tests
* Merge pull request #22660 from owncloud/fix_22656Thomas Müller2016-02-261-0/+29
|\ | | | | Do not allow sharing of the users root folder
| * Do not allow sharing of the root folderRoeland Jago Douma2016-02-251-0/+29
| | | | | | | | | | | | | | | | | | | | | | Sharing of the users root folder should not be allowed as it is very weird UX. Also many of our clients have no proper way of displaying this. Added unit test Also added intergration tests to make sure we won't allow it in the future.
* | Merge pull request #22646 from owncloud/fix_22642Thomas Müller2016-02-261-6/+27
|\ \ | | | | | | Set default expiration date if none given on share creation
| * | Set default expiration date if none given on share creationRoeland Jago Douma2016-02-251-6/+27
| |/ | | | | | | | | | | | | When we create a share for the first time we should set the default expiration date. If none is given. Fixes #22642
* / Fix verifyExpirationDate passwordSet argumentRoeland Jago Douma2016-02-251-2/+3
|/ | | | | | Password set should be false if the password is null. Also updated the unit tests to tests this now.
* When (re-)sharing an incomming federated share set the corrent ownerRoeland Jago Douma2016-02-191-9/+88
| | | | | | | | | | | | Incomming federated shares are a special kind. We mount them as normal webdav shares but we do supply owner info with the federated cloud id of the share owner. Since we do not yet have the new resharing behaviour on federated shares we need to set the correct owner. Which will allow sharing and proper mounting for other users. fixes #22500
* Return proper error string if sharing for this user is disabledRoeland Jago Douma2016-02-161-31/+10
| | | | Fixes #22402
* Merge pull request #22309 from owncloud/infinite-recursion-on-expired-linkThomas Müller2016-02-121-12/+2
|\ | | | | Do not getShare in deleteShare, it's already there when deleting
| * Fix unit testsRoeland Jago Douma2016-02-111-12/+2
| |
* | Add parent for invisible link sharesRoeland Jago Douma2016-02-111-0/+4
|/
* Only set the default expiration date on share creationRoeland Jago Douma2016-02-091-0/+16
| | | | | | | | | Fixes #19685 The default expiration date should only be set when we create a new share. So if a share is created and the expiration date is unset. And after that the password is updated the expiration date should remain unset.
* getSharesBy should also expire link sharesRoeland Jago Douma2016-02-061-0/+103
|
* Delete expired share when fetched by idRoeland Jago Douma2016-02-061-0/+27
|
* Delete a link share if it is expired on accessRoeland Jago Douma2016-02-061-0/+43
| | | | | If we access a link share we should check if it has expired already. If so we should remove it and throw a ShareNotFound exception
* Path should be relativeRoeland Jago Douma2016-02-041-2/+5
|
* [Share 2.0] Add missing post_update_permissions hookRoeland Jago Douma2016-02-041-7/+34
|
* Also add type (file/folder) to IShare objectRoeland Jago Douma2016-02-041-0/+80
| | | | We need this for the hooks :(
* Make the share object lazyRoeland Jago Douma2016-02-041-46/+47
| | | | | Share providers can now just pass in a fileId. And the node will only be created once needed.
* [Share 2.0] Fix shareManagerRoeland Jago Douma2016-02-031-170/+176
|
* [Share 2.0] Use GenericShareExceptionRoeland Jago Douma2016-02-021-3/+3
|
* [Share 2.0] Add exceptions to OCPRoeland Jago Douma2016-02-021-1/+1
|
* Merge pull request #22013 from owncloud/share2_moveshareThomas Müller2016-02-021-0/+73
|\ | | | | [Share 2.0] Allow moving of shares
| * [Share 2.0] Allow moving of sharesRoeland Jago Douma2016-02-021-0/+73
| | | | | | | | | | * Only recipient can move a share * Unit tests
* | Update old password hashed for link shares on accessRoeland Jago Douma2016-02-011-0/+21
|/ | | | Fixes https://github.com/owncloud/core/issues/16594
* Add Unit testsRoeland Jago Douma2016-01-301-19/+111
|
* [Share 2.0] Fix interfaces and commentsRoeland Jago Douma2016-01-281-54/+54
| | | | | | | | * Made comments more clear * Removed unneeded methods * IShares shareTime is now a proper DateTime object * IShares getPath -> getNode & setPath -> setNode * Fix unit tests
* [Share 2.0] Move IShare to OCPRoeland Jago Douma2016-01-271-21/+23
|
* Fix comments from ThomasRoeland Jago Douma2016-01-261-18/+18
|
* [share 2.0] manager unit testsRoeland Jago Douma2016-01-261-1/+245
|
* [Share 2.0] Fix unit testsRoeland Jago Douma2016-01-261-46/+52
|
* Add Unit testsRoeland Jago Douma2016-01-201-0/+65
|
* Properly DI the servercontainerRoeland Jago Douma2016-01-201-1/+5
|
* [Share 2.0] Fix pre_share and post_share hooksRoeland Jago Douma2016-01-131-0/+7
|
* [Share 2.0] Let the factory do the factory stuffRoeland Jago Douma2016-01-131-184/+41
| | | | * Updated unit tests (bit cleaner now)
* [Share 2.0] Use full share id (providerId:shareId)Roeland Jago Douma2016-01-131-7/+20
| | | | | | | | | | | | Now that we support multiple managers we communicate shares to the outside as 'providerId:shareId'. This makes sures that id's are unique when references from the OCS API. However, since we do not want to break the OCS API v1 we need to somewhat hack around this. When we switch to OCS API v2 (which we should when we support more custom providers). We will change the id to always be the fullShareId.
* [Share 2.0] Add share provider factoryRoeland Jago Douma2016-01-131-271/+140
| | | | | | | * Add providers * Add share manager to server container * Use share manager from server container * Properly get the share manager
* [Share 2.0] Allow registering of share providersRoeland Jago Douma2016-01-131-10/+240
| | | | * Properly register the default share provider
* [Sharing 2.0] Some error cases report 404 instead of 403Roeland Jago Douma2016-01-061-6/+11
|
* [Sharing 2.0] Add L10N instance to manager for translated errorsRoeland Jago Douma2016-01-061-16/+38
|
* [Share 2.0] Make the share manager ready for share creationRoeland Jago Douma2016-01-061-12/+1165
|