summaryrefslogtreecommitdiffstats
path: root/lib/private/share20/manager.php
Commit message (Collapse)AuthorAgeFilesLines
* Move (new) sharing over to composer autoloaderRoeland Jago Douma2016-03-201-1150/+0
|
* Do not recurse link share fetchingRoeland Jago Douma2016-03-131-0/+5
| | | | * Might fix an issue on oracle
* Use more generic node instead of File/FolderRoeland Jago Douma2016-03-111-9/+1
| | | | | | | | | The phpdoc for the sharing functions was very restrictive. As a consequence passing node object (for example from the OCS Share API where we don't really care if it is a file or folder), would actually be invalid. With this loser restriction the interfaces become more generic.
* Update author informationLukas Reschke2016-03-011-0/+2
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Merge pull request #22683 from owncloud/fix_22682Thomas Müller2016-02-291-1/+1
|\ | | | | Relax rootfolder check
| * Relax rootfolder checkRoeland Jago Douma2016-02-261-1/+1
| | | | | | | | | | * Updated unit tests * Added intergration test
* | Expiration date can only be enforced if default is enabledRoeland Jago Douma2016-02-261-1/+2
|/ | | | | | 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/+5
|\ | | | | Do not allow sharing of the users root folder
| * Do not allow sharing of the root folderRoeland Jago Douma2016-02-251-0/+5
| | | | | | | | | | | | | | | | | | | | | | 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-16/+16
|\ \ | | | | | | Set default expiration date if none given on share creation
| * | Set default expiration date if none given on share creationRoeland Jago Douma2016-02-251-16/+16
| |/ | | | | | | | | | | | | 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-1/+1
|/ | | | | | 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-2/+14
| | | | | | | | | | | | 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-11/+5
| | | | Fixes #22402
* Merge pull request #22309 from owncloud/infinite-recursion-on-expired-linkThomas Müller2016-02-121-2/+2
|\ | | | | Do not getShare in deleteShare, it's already there when deleting
| * Do not getShare in deleteShare, it's already there when deletingJoas Schilling2016-02-111-2/+2
| |
* | Add parent for invisible link sharesRoeland Jago Douma2016-02-111-0/+23
| |
* | Properly check for legacy methodsRoeland Jago Douma2016-02-111-1/+1
|/ | | | | | | | The new shares are completely without parents eventually. But for some current legacy reasons the methods are still around. But we should properly check for them. Fixes #22309
* Merge pull request #22192 from owncloud/fix_19685Thomas Müller2016-02-091-7/+31
|\ | | | | Only set the default expiration date on share creation
| * Catch exceptionRoeland Jago Douma2016-02-091-4/+17
| |
| * Throw exceptionRoeland Jago Douma2016-02-091-3/+14
| |
| * Only set the default expiration date on share creationRoeland Jago Douma2016-02-091-1/+1
| | | | | | | | | | | | | | | | | | 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.
* | Move password update hook after updateRoeland Jago Douma2016-02-091-8/+10
| |
* | add post hook on link-share password changeArthur Schiwon2016-02-081-1/+9
|/
* Respect not allowing outgoing sharesRoeland Jago Douma2016-02-081-0/+7
|
* Add federated share provider to coreRoeland Jago Douma2016-02-081-0/+4
|
* Fix exception on deleteRoeland Jago Douma2016-02-061-1/+6
|
* getSharesBy should also expire link sharesRoeland Jago Douma2016-02-061-1/+47
|
* Delete expired share when fetched by idRoeland Jago Douma2016-02-061-0/+8
|
* Delete a link share if it is expired on accessRoeland Jago Douma2016-02-061-1/+5
| | | | | 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-1/+3
|
* [Share 2.0] Add missing post_update_permissions hookRoeland Jago Douma2016-02-041-0/+12
|
* Also add type (file/folder) to IShare objectRoeland Jago Douma2016-02-041-3/+3
| | | | We need this for the hooks :(
* Make the share object lazyRoeland Jago Douma2016-02-041-10/+7
| | | | | 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-52/+66
|
* [Share 2.0] Use GenericShareExceptionRoeland Jago Douma2016-02-021-10/+11
|
* [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/+19
|\ | | | | [Share 2.0] Allow moving of shares
| * [Share 2.0] Allow moving of sharesRoeland Jago Douma2016-02-021-0/+19
| | | | | | | | | | * Only recipient can move a share * Unit tests
* | Merge pull request #22057 from owncloud/share2_update_hashThomas Müller2016-02-021-1/+3
|\ \ | |/ |/| Update old password hashed for link shares on access
| * Update old password hashed for link shares on accessRoeland Jago Douma2016-02-011-1/+3
| | | | | | | | Fixes https://github.com/owncloud/core/issues/16594
* | getChildren should not return usergroup sharesRoeland Jago Douma2016-02-021-0/+1
| |
* | [Share 2.0] Allow recipient to be passed in to getShareByIdRoeland Jago Douma2016-02-021-8/+3
|/ | | | | * This allows us to retrieve usergroup shares for a given id. If the user deleted a share or moved it this will be a different share
* Merge pull request #22028 from owncloud/share_hook_expirationdateThomas Müller2016-02-011-9/+23
|\ | | | | Share hook expirationdate
| * Emit hook for expirationDate verificationRoeland Jago Douma2016-01-301-9/+23
| |
* | Add path filter to OCS Share API ?shared_with_me=trueRoeland Jago Douma2016-01-291-9/+4
|/ | | | | | This allows all clients to quickly get the share info for a given path. Instead of returning everything and filtering it then manually on the client side.
* [Share 2.0] Remove setId and setProviderId from the interfaceRoeland Jago Douma2016-01-281-2/+0
| | | | Those should only ever be set by the providers
* [Share 2.0] Fix interfaces and commentsRoeland Jago Douma2016-01-281-26/+26
| | | | | | | | * 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] Create IManger interface for share managerRoeland Jago Douma2016-01-271-2/+4
|
* [Share 2.0] Move IShare to OCPRoeland Jago Douma2016-01-271-36/+29
|