summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3844 from nextcloud/unshare_eventJoas Schilling2017-03-212-38/+107
|\ | | | | Unshare event
| * Add LegacyHooksRoeland Jago Douma2017-03-172-39/+103
| | | | | | | | | | | | | | Use a helper class to listen to the eventDispatcher calls from the share manager to emit the old \OC_Hooks Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Add unshare eventRoeland Jago Douma2017-03-171-0/+5
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-202-4/+13
|\ \ | | | | | | Skip null groups in group manager
| * | Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-172-4/+13
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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>
* / shares-circlesMaxence Lange2017-03-172-5/+56
|/ | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* Fix detecting deleted shares in object storeAndrius2017-03-091-1/+2
| | | While using the object store, the shares, that are moved to trashbin were still detected as accessible and cause broken shares to be shown in file/folder listing.
* Fix return type of share providerJoas Schilling2017-03-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix conditionMaxence Lange2017-02-261-1/+1
| | | | 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-081-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* also create mail share if public links are disabledBjoern Schiessle2017-01-041-1/+0
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* no need to throw a exception we catch two lines laterBjoern Schiessle2016-12-221-5/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Only don't resolve public linksRoeland Jago Douma2016-12-201-4/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Don't resolve public share token if public sharing is disabledLukas Reschke2016-12-201-0/+4
| | | | | | Otherwise disabling sharing does prevent access to the view controllers but one can still access the shares using the public preview route or the public WebDAV endpoint. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* commit transaction after select queryphisch2016-12-161-1/+1
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* always use numeric storage id in cacheentryRobin Appelman2016-12-131-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make sure $provider is defined when we use itJoas Schilling2016-12-071-10/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Handle unavailable share providers more gracefulRoeland Jago Douma2016-12-051-8/+34
| | | | | | | | If the sharebymail app (or the federatedshareprovider app) are disabled this kills a lot of stuff. So we should handle a share provider not begin available a bit more graceful. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Also return the ShareByMail provider when getting allJoas Schilling2016-11-301-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* also work with group sharesRobin Appelman2016-11-171-1/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* let the share backend get the node cacheentry to save queriesRobin Appelman2016-11-172-3/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add activity if a file was shared by mailBjoern Schiessle2016-11-081-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* find and show share-by mail linksBjoern Schiessle2016-11-011-0/+10
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* send mail for share-by-mail sharesBjoern Schiessle2016-11-011-1/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add method to check if a share provider for a given type is loadedBjoern Schiessle2016-11-011-0/+14
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add share by mail share providerBjoern Schiessle2016-11-012-0/+52
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix merging backend resultsRoeland Jago Douma2016-11-012-2/+11
| | | | | | | | * Merge share types correctly * Filter share types * Order share types Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Stricter signatureRoeland Jago Douma2016-10-312-2/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add getShareTypesInFolder to optimize folder listeningRobin Appelman2016-10-313-0/+57
| | | | Signed-off-by: Robin Appelman <icewind@owncloud.com>
* reuse share node when creating a shareRobin Appelman2016-10-121-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Always unlock node after trying to create a shareRobin Appelman2016-10-121-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #1640 from nextcloud/less_queries_group_shareMorris Jobke2016-10-101-30/+49
|\ | | | | More efficient group share resolving
| * More efficient group share resolvingRoeland Jago Douma2016-10-061-30/+49
| | | | | | | | | | | | | | | | | | | | | | When resolving a group share to the user group share we used to do this on a per share basis. Now we try to do this for all group shares at once. Of course still chunked. Before: N incomming group shares this would mean 1 + N queries Now: N incomming roups shares this would mean 1 + 1 queries Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Prefilter inaccessible shares in DefaultShareProvider::getSharedWith()Vincent Petry2016-10-061-8/+38
|/ | | | | | | | | | | The DefaultShareProvider now does a DB-level check to find out whether file_source is accessible at all (deleted file) or whether it's in the trashbin of a home storage. One small corner case where the home storage id is in md5 form cannot be covered properly with this approach. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix othersJoas Schilling2016-07-218-18/+28
|
* Merge remote-tracking branch 'upstream/master' into master-sync-upstreamLukas Reschke2016-06-271-6/+1
|\
| * Add explicit delete permission to link sharesVincent Petry2016-06-241-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | Link shares always allowed deletion, however internally the permissions were stored as 7 which lacked delete permissions. This created an inconsistency in the Webdav permissions. This fix makes sure we include delete permissions in the share permissions, which now become 15. In case a client is still passing 7 for legacy reasons, it gets converted automatically to 15.
* | remove old hook, no longer neededBjoern Schiessle2016-06-271-13/+1
| |
* | check password for link sharesBjoern Schiessle2016-06-271-1/+16
| |
* | Merge remote-tracking branch 'upstream/master' into master-sync-upstreamLukas Reschke2016-06-211-11/+25
|\|
| * Fix case with no userRoeland Jago Douma2016-06-141-0/+4
| |
| * Optimize isSharingDisabledForuserRoeland Jago Douma2016-06-141-11/+21
| |
* | add hide file list optionBjoern Schiessle2016-06-091-1/+4
|/
* Update license headersLukas Reschke2016-05-264-2/+6
|
* use share initiator as fall back to access the fileBjörn Schießle2016-05-204-9/+28
| | | | | in case of federated re-shares the owner can be a remote user. Therefore we can't always use to owner to access the local file
* move federated sharing settings to the federatedfilesharing appBjörn Schießle2016-04-221-1/+2
|
* Fix related logicRoeland Jago Douma2016-04-191-20/+31
|
* Move post_removeFromGroup to shareManagerRoeland Jago Douma2016-04-133-0/+50
| | | | | | | | The last sharing hook to be moved over. * Added unit tests * Removed old tests that relied on old behaviour * Removed old hooks.php
* Make shareproviders use the lazy root folderRoeland Jago Douma2016-04-131-2/+2
|
* set $share to null if getShareByToken() failedBjörn Schießle2016-04-121-1/+1
|