summaryrefslogtreecommitdiffstats
path: root/lib/private/share20
Commit message (Collapse)AuthorAgeFilesLines
* 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-112-18/+2
| | | | | | | | | 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.
* Select queries in the default share provider should query for file/folderRoeland Jago Douma2016-03-091-10/+51
| | | | | There can be leftover calendar and contacts shares in the oc_share table. We need to filter those out properly.
* Update author informationLukas Reschke2016-03-013-0/+4
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Merge pull request #22681 from owncloud/add-autodiscovery-for-ocsThomas Müller2016-03-011-1/+7
|\ | | | | Add autodiscovery support to server-to-server sharing implementation
| * Add autodiscovery support to server-to-server sharingLukas Reschke2016-02-261-1/+7
| | | | | | | | Adds autodiscovery support to server-to-server sharing as specified in the specification. If no discovery data is found it is using the fallback ownCloud endpoints for legacy support.
* | 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-112-0/+27
| |
* | Properly check for legacy methodsRoeland Jago Douma2016-02-112-3/+10
|/ | | | | | | | 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-092-7/+34
|\ | | | | Only set the default expiration date on share creation
| * Catch exceptionRoeland Jago Douma2016-02-091-4/+17
| |
| * Throw exceptionRoeland Jago Douma2016-02-092-4/+15
| |
| * Only set the default expiration date on share creationRoeland Jago Douma2016-02-092-1/+4
| | | | | | | | | | | | | | | | | | 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
| |
* | Example hook checkRoeland Jago Douma2016-02-091-0/+1
| |
* | add post hook on link-share password changeArthur Schiwon2016-02-081-1/+9
|/
* Respect not allowing outgoing sharesRoeland Jago Douma2016-02-082-7/+31
|
* Add federated share provider to coreRoeland Jago Douma2016-02-082-0/+53
|
* 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-042-0/+14
|
* Also add type (file/folder) to IShare objectRoeland Jago Douma2016-02-043-3/+41
| | | | We need this for the hooks :(
* Make the share object lazyRoeland Jago Douma2016-02-043-20/+52
| | | | | 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] Fix defaultshare providerRoeland Jago Douma2016-02-031-77/+56
|
* [Share 2.0] Use strings for idsRoeland Jago Douma2016-02-031-0/+9
| | | | | | | | | | | * sharedWith * sharedBy * shareOwner Now all set/get strings with the id. (userId, groupId, federatedsharerId). This to avoid a huge amount of if statements
* [Share 2.0] Use GenericShareExceptionRoeland Jago Douma2016-02-021-10/+11
|
* [Share 2.0] Add exceptions to OCPRoeland Jago Douma2016-02-023-27/+2
|
* Merge pull request #22013 from owncloud/share2_moveshareThomas Müller2016-02-022-0/+77
|\ | | | | [Share 2.0] Allow moving of shares
| * [Share 2.0] Allow moving of sharesRoeland Jago Douma2016-02-022-0/+77
| | | | | | | | | | * 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-022-6/+7
| |
* | [Share 2.0] Allow recipient to be passed in to getShareByIdRoeland Jago Douma2016-02-022-20/+15
|/ | | | | * 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
| |