Christoph Wurst
1a9330cd69
Update the license headers for Nextcloud 19
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
b80ebc9674
Use the short array syntax, everywhere
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Roeland Jago Douma
68748d4f85
Some php-cs fixes
* Order the imports
* No leading slash on imports
* Empty line before namespace
* One line per import
* Empty after imports
* Emmpty line at bottom of file
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
6 years ago
Robin Appelman
2c1f6331a4
Add interface to allow storages from opting out of encryption
As opposed to hard-coding a list of excluded storages
Signed-off-by: Robin Appelman <robin@icewind.nl>
7 years ago
Roeland Jago Douma
1bc388e507
Double check for failed cache with a shared storage
When obtaining the SourceRootInfo we can call init. If this fails the
cache is set to a failed cache and the storage to a failed storage.
However we did not check for this. Which means that if the storage was
invalid it would fail later on.
Now we will properly error out.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
7 years ago
Roeland Jago Douma
e7b1c9adc7
Properly check share permissions
isCreatable only works on folders
isUpdatable if the file is not there but it is a part file also has to
be checked on the folder
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Roeland Jago Douma
d7931b82ae
Check the permission of the underlying storage
Else shares might expose more permissions than the storage actually
providers.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
8 years ago
Robin Appelman
720b27d60b
only determine is sharing is disabled for a user once
Signed-off-by: Robin Appelman <robin@icewind.nl>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Robin Appelman
dfe662ad42
Fix propagating changes within jail wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
2f949f4515
rename Jail::getSourcePath to getUnjailedPath to fix conflict with Local::getSourcePath
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
ae3016959e
fix shared storage numeric id
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
a12ec5ec77
set cache to failedcache when shared storage init fails
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
0c1b7fdcb5
return failed cache if the shared storage failed to setup
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
f2e981e269
also set nonmaskedstorage in error cases
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Vincent Petry
a4ce440392
Ignore NoUserException for shares from ghosts
Add unit tests for FailedStorage init from SharedStorage
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Robin Appelman
5d0897b8d7
use unmasked permissions in shared scanner
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
02ee4f958c
apply permissions mask for shared storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
b85459964c
fix getting root entry when not provided by the share provider
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
2f03fcab4a
let the share backend get the node cacheentry to save queries
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Robin Appelman
30e7c27d86
reuse the known rootinfo in the shared cache when possible
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Joas Schilling
b130267e58
Import the used classes
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
246bb9f33d
Move OC\Files\Storage\Shared to the right namespace
10 years ago
Thomas Müller
6c365cb06d
A shared storage is never a home storage - fixes #25582
10 years ago
Roeland Jago Douma
352d22e473
Do not error on NotFoundException
Since this exception can be thrown when a shared file is in the
trashbin there is no need to spam the log like crazy.
Fixes #938
10 years ago
Robin Appelman
a0c2342c20
prevent infinite recursion while getting storage from mount
10 years ago
Robin Appelman
1e7c108bff
handle failed shares
10 years ago
Robin Appelman
3ed01e8459
Lazy init shared storage
10 years ago
Vincent Petry
412b5c5407
Store the shared propagator instance
This instead of recreating it for every call.
10 years ago
Roeland Jago Douma
04d5465228
Group shares with same source and target
Fixes #24575
Note that this is a very limited solution and eventually we want smarter
merging!
10 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
813f0a0f40
Fix apps/
10 years ago
blizzz
51fd2602a7
Revert "Downstream 2016-06-08"
10 years ago
Roeland Jago Douma
b0dd0634e3
Bring back sharedstorage hooks
10 years ago
Roeland Jago Douma
4a3c67fdb4
Bring back sharedstorage hooks
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Roeland Jago Douma
354329acf2
Cleanup Files_Sharing CLASSPATH
* OC\Files\Cache\SharedScanner
* OC\Files\Cache\Shared_Cache
* OC\Files\Cache\Shared_Permissions
* OC\Files\Cache\Shared_Updater
* OC\Files\Cache\Shared_Watcher
* OCA\Files\Share\Maintainer
* OCA\Files\Share\Proxy
10 years ago
Robin Appelman
dbfdc6282a
do propagation in a single query
10 years ago
Roeland Jago Douma
f27d7cbf99
Move copy- and moveFromStorage to jail
10 years ago
Roeland Jago Douma
c98fef8a51
Fix resolve path
10 years ago
Roeland Jago Douma
6123badbfa
Move SharedStorage et al over to the shareManager and jail
10 years ago
Robin Appelman
a8db587b1f
move failedstorage to core
10 years ago
Robin Appelman
3bd6fc797d
dont break when there is an invalid share
10 years ago
Vincent Petry
e5a107cc45
Fix share mounting recursion
10 years ago
Vincent Petry
11215f4e27
Return -3 for unlimited quota
Returns -3 for unlimited quota in Webdav response.
Also adjusted personal page to show unlimited quota when set.
10 years ago
Robin Appelman
e3b5639fc1
Block shares that dont have the correct source permissions
10 years ago
Robin Appelman
1369f2c684
cleanup shared cache
10 years ago
Robin Appelman
30d6222e64
handle noopscanner in shared scanner
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago