summaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #4462 from danxuliu/fix-sharing-password-protected-linkRoeland Jago Douma2017-04-251-24/+31
|\ | | | | Fix sharing a password protected link
| * Extract updateSharePasswordIfNeeded functionDaniel Calviño Sánchez2017-04-241-22/+30
| | | | | | | | Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Join if block to preceding if chainDaniel Calviño Sánchez2017-04-241-3/+2
| | | | | | | | | | | | | | If getShareType() returns "email" it can not also return "user", "group" nor "link", so the if block can be added to the preceding if chain. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
| * Fix double hashing of shared link passwordsDaniel Calviño Sánchez2017-04-241-1/+1
| | | | | | | | | | | | | | | | | | | | The plain text password for a shared links was hashed and, then, the hashed password was hashed again and set as the final password. Due to this the password introduced in the "Authenticate" page for the shared link was always a wrong password, and thus the file could not be accessed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* | Remove unused use statementsMorris Jobke2017-04-223-4/+0
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* respect password policy for auto generated passwordsBjoern Schiessle2017-04-201-1/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow admin to enforce password on mail sharesBjoern Schiessle2017-04-201-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Get proper accesslist for userFolderRoeland Jago Douma2017-04-201-2/+7
| | | | | | | If the accesslist is requested for a users root folder we should properly construct the path Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add "Reply-To" on ShareByMailProvider mailsLukas Reschke2017-04-181-1/+3
| | | | | | Fixes https://github.com/nextcloud/server/issues/4209 Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Do not set full path if not currentAccessRoeland Jago Douma2017-04-131-6/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add samples to the docsJoas Schilling2017-04-131-0/+38
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Catch exceptions and use as many results as possibleJoas Schilling2017-04-131-24/+59
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Adjust docs and make !$currentAccess simplerJoas Schilling2017-04-132-10/+31
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix default share providerJoas Schilling2017-04-131-6/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix tests for ShareHelperJoas Schilling2017-04-131-0/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix returned paths for remote sharesJoas Schilling2017-04-131-20/+9
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also return the tokenJoas Schilling2017-04-131-5/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Return the paths for the users without setting them all upJoas Schilling2017-04-133-38/+150
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add mail element to access listRoeland Jago Douma2017-04-132-4/+12
| | | | | | | | * Each provider just returns what they have so adding an element won't require changing everything * Added tests Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Offload acceslist creation to providersRoeland Jago Douma2017-04-132-41/+92
| | | | | | | | * This allows for effective queries. * Introduce currentAccess parameter to speciy if the users needs to have currently acces (deleted incomming group share). (For notifications) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Added ShareHelperRoeland Jago Douma2017-04-131-0/+64
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Added to public interfaceRoeland Jago Douma2017-04-131-4/+11
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add owner to access listRoeland Jago Douma2017-04-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add getAccessList to ShareManagerRoeland Jago Douma2017-04-131-5/+62
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Do proper DIRoeland Jago Douma2017-04-111-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* remove discovery manager in favour of the OCSDiscoveryServiceBjoern Schiessle2017-04-111-5/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* properly quota table names in getSharesInFolderRobin Appelman2017-04-101-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update unit testsBjoern Schiessle2017-04-072-44/+29
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* setting to disable sending password by mailBjoern Schiessle2017-04-031-3/+5
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* set expire date for all share typesBjoern Schiessle2017-04-032-25/+48
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add secure drop functionallity to mail sharesBjoern Schiessle2017-04-031-1/+3
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow password protected mail sharesBjoern Schiessle2017-04-031-2/+23
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* add new password column to the share table in order to set passwords for ↵Bjoern Schiessle2017-04-031-3/+3
| | | | | | share by mails Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* 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>