Robin Appelman
da386aad59
Allow re-using already known fileinfo when calculating folder sizes
12 years ago
Bjoern Schiessle
3be5e48b0c
only add "received_from" if a share was found
12 years ago
Bart Visscher
1d7564dc2f
Only check for existence of shared files when doing shared storage setup
The getItemsSharedWith function also retrieves related information,
resulting in work that isn't used here.
12 years ago
Bjoern Schiessle
6ca4d3bfde
fix usersPath and add unit tests
12 years ago
Thomas Müller
179fbada32
show share owner within shared folders as well
12 years ago
Thomas Müller
7c68025010
adding share owner information to the file list
12 years ago
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
12 years ago
Robin Appelman
181bbd4325
Remove usage of legacy OC_Appconfig
12 years ago
Bjoern Schiessle
a8943ad022
replace 'size' with 'unencrypted_size' if encryption is enabled
12 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
12 years ago
Vincent Petry
fa5ddc3e18
Fixed searchByMime in shared cache
- searchByMime now correctly returns files recursively search through
all the dirs
- added unit test for searchByMime
12 years ago
Bjoern Schiessle
f9d9a62e58
remove needless element tag
12 years ago
Bjoern Schiessle
cd4e044f66
public upload is also possible with encryption enabled, since OC6
12 years ago
Bjoern Schiessle
7f83f2a8f2
use more accurate error codes
12 years ago
Bjoern Schiessle
eaed786eed
add path relative to the files folder of the currently logged in user to the output of getFolderContent()
12 years ago
Robin Appelman
3d6d8d1bb6
Reuse the data retrieved from the cache in checkUpdate
12 years ago
Bjoern Schiessle
fa7f53e89d
it is not an urgent error... a DEBUG message is enough at this point
12 years ago
Bjoern Schiessle
d1b47021f1
don't unshare on delete
12 years ago
Vincent Petry
8eaa39f4e2
Removed special handling of part files in shared storage rename
This fixes the issue introduced by the transfer id which itself wasn't
taken into account by the shortcut code for part file in the shared
storage class.
12 years ago
Vincent Petry
89eb3759a8
Fixed sharing results to include the correct permissions
Passing $includeCollections would return more than one entry which gives
mixed up file permissions.
Added a method getFile() that doesn't set $includeCollections to make
sure we only get one result which is the file itself.
Fixes #6265
12 years ago
Bjoern Schiessle
ace1d40ed6
get owner from share item, if we expire a share while the user updates his /Shared folder than the owner is different from the currently logged in user
12 years ago
Bjoern Schiessle
eaedda2116
make sure that we don't try to access an already deleted files, fixes some file source not found warnings
12 years ago
Vincent Petry
d2840a045d
Fixed sharing hook to not remove the share before the trashbin
Fixed the hook order between sharing app and trashbin
12 years ago
Robin Appelman
a2015ee065
Use View::copy and View::rename when copying or renaming files in the shared storage
12 years ago
Vincent Petry
9f4fd0161e
Added unit tests for shared files watcher
- Added base class for sharing unit tests
- Added unit tests for shared files watched to check for folder size
propagation
12 years ago
Vincent Petry
eb6fc14f84
Removed unused method
12 years ago
Vincent Petry
e3868ba118
Fixed watcher to also update the owner's folder sizes
Note that the root folder size is mandatory for quota calculation.
12 years ago
Thomas Müller
a7cb16aab1
use ===
12 years ago
Jörn Friedrich Dreyer
68e88b6e40
count correct array, then using 1000 as MAX_SQL_CHUNK_SIZE works as expected
12 years ago
Bjoern Schiessle
fcfac51aa1
backport of https://github.com/owncloud/core/pull/5513
12 years ago
Thomas Müller
f91a4c89ca
adding storage_mtime handling to SharedCache
12 years ago
Bjoern Schiessle
2221aa9ca4
run first getUsersItemShared() with the owner
12 years ago
Bjoern Schiessle
60e219da43
update etags for user we haven't checked yet
12 years ago
Bjoern Schiessle
6ae761d946
keep a list of users we already checked to avoid loops
12 years ago
Bjoern Schiessle
dd972f65a8
fix infinite loop while updating etags, fix for #4365
12 years ago
Morris Jobke
1f1fcc6129
Remove "link" shares right after disabling the "allow_link_share" setting
12 years ago
Bjoern Schiessle
48cd9d9444
filter duplicates directly in the sql query
12 years ago
Bjoern Schiessle
e7dc6b21c8
split up reset()['path'] to make it compatible with older PHP versions
12 years ago
Bjoern Schiessle
ab6ee79e11
adjust tests
12 years ago
Bjoern Schiessle
abf10ac9bd
new option to add reshares to the result
12 years ago
Bjoern Schiessle
3dd313dca2
add "received_from" and "received_from_displayname" field in case of a reshared file to the output
12 years ago
Bjoern Schiessle
288f01bf62
catch exception if db query execution fails
12 years ago
Bjoern Schiessle
401740166b
add comments
12 years ago
Bjoern Schiessle
dd2bf69152
use true/false instead of yes/no for publicUpload and subfiles parameter
12 years ago
Bjoern Schiessle
a1fe5148b5
use always path as parameter to specify a file/folder
12 years ago
Bjoern Schiessle
aa660a3475
remove deleted shares from the database table oc_share
12 years ago
Bjoern Schiessle
513dc20d4b
also return success if no shares are found.
12 years ago
Thomas Müller
63ea6844e8
- adding unit test testGetShareFromUnknownId()
- fixing getShareFromId() for Oracle
- fixing error message
12 years ago
Thomas Müller
cd2421c7ee
adding PHPDoc comments to getBackend
ensure getChildren() is called on an instance of Share_Backend_Collection
12 years ago
Bjoern Schiessle
259f03bee2
remove debug output
12 years ago