summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused use statementsMorris Jobke2017-04-224-4/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust existing bruteforce protection codeLukas Reschke2017-04-141-1/+3
| | | | | | | - Moves code to annotation - Adds the `throttle()` call on the responses on existing annotations Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Add support for ratelimiting via annotationsLukas Reschke2017-04-131-1/+1
| | | | | | | | | | | | | This allows adding rate limiting via annotations to controllers, as one example: ``` @UserRateThrottle(limit=5, period=100) @AnonRateThrottle(limit=1, period=100) ``` Would mean that logged-in users can access the page 5 times within 100 seconds, and anonymous users 1 time within 100 seconds. If only an AnonRateThrottle is specified that one will also be applied to logged-in users. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Merge pull request #4329 from nextcloud/move-out-shared-folderMorris Jobke2017-04-122-6/+6
|\ | | | | Fix moving files out of a shared folder
| * rename Jail::getSourcePath to getUnjailedPath to fix conflict with ↵Robin Appelman2017-04-122-6/+6
| | | | | | | | | | | | Local::getSourcePath Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #3614 from nextcloud/discover-federatedsharing-endpointsBjörn Schießle2017-04-124-32/+31
|\ \ | | | | | | Discover federatedsharing endpoints
| * | Do proper DIRoeland Jago Douma2017-04-113-3/+3
| | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * | remove discovery manager in favour of the OCSDiscoveryServiceBjoern Schiessle2017-04-114-32/+31
| | | | | | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | | Update comments to NextcloudMorris Jobke2017-04-111-4/+4
| | | | | | | | | | | | | | | | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | share api expanded by tags (#26583)Michael Jobst2017-04-111-3/+14
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * share api expanded by tags * Modified files_sharing JS Unit tests * modified tests. renamed request parameter. refactoring * Update Share20OCS.php Added missing function description * Update Helper.php Added missing function description * Update Helper.php implicit boolean conversion to !empty() * Update Share20OCSTest.php Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #4256 from nextcloud/themingLukas Reschke2017-04-112-3/+4
|\ \ | | | | | | Move OC_Defaults to OCP\Defaults
| * | Move OC_Defaults to OCP\DefaultsMorris Jobke2017-04-092-3/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | * currently there are two ways to access default values: OCP\Defaults or OC_Defaults (which is extended by OCA\Theming\ThemingDefaults) * our code used a mixture of both of them, which made it hard to work on theme values * this extended the public interface with the missing methods and uses them everywhere to only rely on the public interface Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / move capabilities to share by mail appBjoern Schiessle2017-04-101-15/+1
|/ | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update unit testsBjoern Schiessle2017-04-071-3/+4
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* update capabilitiesBjoern Schiessle2017-04-071-2/+24
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* set expire date for all share typesBjoern Schiessle2017-04-031-20/+18
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow password protected mail sharesBjoern Schiessle2017-04-031-2/+21
| | | | 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-032-0/+19
| | | | | | share by mails Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Merge pull request #4004 from nextcloud/backport-27172Roeland Jago Douma2017-03-282-0/+8
|\ | | | | Remove SharedCache::getNumericStorageId to let CacheWrapper do it
| * fix shared storage numeric idRobin Appelman2017-03-272-0/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * do not remove the method and only keep the testsMorris Jobke2017-03-231-0/+8
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
| * Remove SharedCache::getNumericStorageId to let CacheWrapper do itVincent Petry2017-03-231-8/+0
| | | | | | | | | | | | The CacheWrapper will properly forward the call to the wrapped cache. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3953 from nextcloud/downstream-27027Morris Jobke2017-03-231-2/+18
|\ \ | |/ |/| Ignore NoUserException for shares from ghosts
| * set cache to failedcache when shared storage init failsRobin Appelman2017-03-231-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * return failed cache if the shared storage failed to setupRobin Appelman2017-03-201-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * also set nonmaskedstorage in error casesRobin Appelman2017-03-201-0/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Ignore NoUserException for shares from ghostsVincent Petry2017-03-201-2/+6
| | | | | | | | | | | | Add unit tests for FailedStorage init from SharedStorage Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #3972 from nextcloud/merge-some-more-cssRoeland Jago Douma2017-03-221-4/+2
|\ \ | | | | | | Merge some CSS files using our SCSS compiler
| * | Merge some CSS files using our SCSS compilerLukas Reschke2017-03-211-4/+2
| | | | | | | | | | | | | | | | | | This saves around 4 requests on the average page load. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | | Fix reshare with user activity messageJoas Schilling2017-03-211-1/+1
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #3884 from nextcloud/downstream-26956Joas Schilling2017-03-202-2/+18
|\ \ | |/ |/| Skip null groups in group manager
| * Use DIJoas Schilling2017-03-171-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Skip null groups in group manager (#26871) (#26956)Vincent Petry2017-03-172-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-173-2/+74
| | | | | | Signed-off-by: Maxence Lange <maxence@nextcloud.com>
* | Safer queriesJoas Schilling2017-03-171-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Better outputJoas Schilling2017-03-171-10/+13
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add CleanupRemoteStorages commandJörn Friedrich Dreyer2017-03-171-0/+177
|/ | | | | | | | | | | | | | | | | | | | cleanup files, address review Fix CleanupRemoteStoragesTest tests Fix test expectation. Added files count to check filecache deletion. Sort by numeric id for deterministic test results Removed precise order test and added storage check Remove inaccurate removal message check which has a different order on Oracle. Added more checks to confirm that existing storages still exist. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3588 from GreenArchon/issue_#3461Lukas Reschke2017-02-241-1/+1
|\ | | | | Typecast shared mount's storage_id to int as documented + some refactor to avoid similar bugs
| * Typecast filecache 'storage' as int to return it as documented, fixes #3461Frédéric Fortier2017-02-201-1/+1
| | | | | | | | Signed-off-by: Frédéric Fortier <frederic.fortier@oronospolytechnique.com>
* | use (int) instead of intval for performance reasonsBjoern Schiessle2017-02-221-2/+2
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | properly include classMorris Jobke2017-02-211-5/+5
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Use intval() for validation of config optionsMorris Jobke2017-02-211-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | allow to configure a min-length of search strings for auto-compeltion and a ↵Bjoern Schiessle2017-02-211-0/+12
|/ | | | | | max number for of results returned Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* register cloudidmanager for files_sharingRobin Appelman2017-02-081-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add a single public api for resolving a cloud id to a user and remote and backRobin Appelman2017-02-086-66/+76
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix files sharing legacy as wellJoas Schilling2017-02-086-749/+291
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add brute force protection for public link authenticationBjoern Schiessle2017-01-251-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow editing single files shared as public linkBjoern Schiessle2017-01-241-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow to access mail shares even if public links are disabledBjoern Schiessle2017-01-042-6/+28
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use group display name in sharing API + UIVincent Petry2016-12-222-12/+21
|