summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5091 from nextcloud/shared-cache-during-initRobin Appelman2017-06-191-1/+8
|\ | | | | dont die if we try to access the shared cache while setting up the shared storage
| * dont die if we try to access the shared cache while setting up the shared ↵Robin Appelman2017-05-241-1/+8
| | | | | | | | | | | | storage Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #5375 from nextcloud/share-folder-for-remote-sharesMorris Jobke2017-06-141-2/+4
|\ \ | | | | | | Use the share_folder config for remote shares
| * | Use the share_folder config for remote sharesJoas Schilling2017-06-131-2/+4
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Make sure to only add system users onceJoas Schilling2017-06-141-8/+35
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Allow to find local users by their email addressJoas Schilling2017-06-131-7/+30
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix for sharingDaniel Hansson2017-05-201-0/+1
| | | | Signed-off-by: Daniel Hansson <daniel@techandme.se>
* Fix the share type of guest shares when migrating from ownCloudJoas Schilling2017-05-121-0/+82
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Move the file sharing app to migrationJoas Schilling2017-05-122-308/+97
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Handle more error casesMorris Jobke2017-05-021-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add missing translation and other small fixesBjoern Schiessle2017-04-281-0/+1
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* use configured lookup serverBjoern Schiessle2017-04-281-1/+2
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* allow apps to set custom mount typesRobin Appelman2017-04-281-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>