Joas Schilling
daac5c9a95
fix(cache): Remove displayname cache entry on delete
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
26c734abe4
fix(tests): Specify all positional parameters again to fix tests
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
Robin Appelman
df71b4d734
pass the share to the cache instead of having to ask the storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Robin Appelman
838929dc83
move "aways loaded" sharing script to event listener
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Joas Schilling
c3acd03a8e
fix(notifications): Remove share notification when the node is deleted
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
jld3103
c6806684d2
files_sharing: Add OpenAPI spec
Signed-off-by: jld3103 <jld3103yt@gmail.com>
3 years ago
Joas Schilling
c5dcf3c849
fix!: Remove LegacyBeforeTemplateRenderedListener from files_sharing
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
44b810bfbd
feat!: Migrate Sharing events to typed events
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
Joas Schilling
77bc6c32d8
fix(dispatcher): Move remaining simple cases in apps/ folder to IEventDispatcher
Signed-off-by: Joas Schilling <coding@schilljs.com>
2 years ago
John Molakvoæ
8e1c693be5
fix(files_sharing): error and size/mtime for deleted shares
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
John Molakvoæ
f5f142d31b
fix: adjust testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
John Molakvoæ
b0418f730f
fix: drop legacy sharing files
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
John Molakvoæ
6f54f72bb4
feat(sharing): add sharing overview view
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2 years ago
Benjamin Gaussorgues
29c1848eda
Migrate files sharing to PSR LoggerInterface
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2 years ago
Robin Appelman
50501f8515
add command do delete orphan shares
Signed-off-by: Robin Appelman <robin@icewind.nl>
2 years ago
Christoph Wurst
95145ee0c9
feat(ocp): More specific type for ICapabilities::getCapabilities
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2 years ago
Maxence Lange
d2efd0e03c
displayname on federated shares
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2 years ago
Christoph Wurst
b8c61b3515
fix(caching): Avoid checking existence before fetching
The cache might expire between checking for key existence and fetching
the value. In this rare case the code continues with a null value when
it doesn't expect one.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
3 years ago
Faraz Samapoor
12e3594299
Refactors "strpos" calls in /apps/files_sharing to improve code readability.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
3 years ago
Robin Appelman
2ea41dab93
repair -1 folder sizes for object store background scan
Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago
Louis Chemineau
6b53e4b13a
Mutualize expireDate handling when creating and updating a share
Signed-off-by: Louis Chemineau <louis@chmn.me>
3 years ago
rakekniven
86b17e2248
Update apps/files_sharing/lib/Controller/ShareAPIController.php
Co-authored-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
3 years ago
rakekniven
eaaeb32074
fix(l10n): Fixed grammar
Reported at Transifex.
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
3 years ago
Robin Appelman
60cf0c8f5f
add command for getting fileinfo for debugging
Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago
jld3103
dcf6ebebab
Fix inherited parameter names
Signed-off-by: jld3103 <jld3103yt@gmail.com>
3 years ago
Michiel de Jong
c0e84cb512
Add SHARE_TYPE_SCIENCEMESH
Signed-off-by: Michiel de Jong <michiel@unhosted.org>
3 years ago
Côme Chilliet
74811813e7
Avoid extra parenthesis around SQL in IN expressions
The expression builder already suround the SQL with parenthesis when
using in(), so we must not add another pair, this confuses at least
sqlite.
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3 years ago
Joas Schilling
80071bd8b9
fix(sharing): Remove casting to int from INF
Regression from nextcloud/server#35736
INF is a the float INF, casting it to integer will make it 0
Signed-off-by: Joas Schilling <coding@schilljs.com>
3 years ago
jld3103
30858df737
Remove Deck from Sharees API
Signed-off-by: jld3103 <jld3103yt@gmail.com>
3 years ago
Louis Chemineau
4ab3c16403
Pluggable share provider
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Louis Chemineau <louis@chmn.me>
3 years ago
Julius Härtl
7e3ea019d1
chore: Add return types
Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years ago
Julius Härtl
7cc9ba28a7
perf(federation): Only request root share info for checking availability
Otherwise this would request a full recursive dirctory listing while the result is never being used
Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years ago
Robin Appelman
c105b6a85d
still include the share target in the cache key for validating share mount
Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago
Robin Appelman
927174e325
fix cache key used to verify shared mountpoints
Signed-off-by: Robin Appelman <robin@icewind.nl>
3 years ago
John Molakvoæ
887c9e05de
Port Files navigation to vue
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
3 years ago
Jan-Philipp Litza
a7abe2c35a
Honor permissions of new link share via OCS API
The API currently overrides the supplied permissions with "read only"
when a file is shared via link. It allows to update the permissions
later, however.
This keeps the default to "read only" but honors the permissions
supplied by API call if any.
Signed-off-by: Jan-Philipp Litza <jpl@plutex.de>
3 years ago
Côme Chilliet
3bcb4fc024
Put back the variable but make sure it is properly declared
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3 years ago
Côme Chilliet
a0f6a6545b
Use TimedJob from OCP instead of OC
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3 years ago
Côme Chilliet
d9151ff35c
Get rid of all useless calls to setParsedSubject now that setRichSubject is able to do it
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3 years ago
Anna Larch
7c4ceb444c
Add group display name cache
Signed-off-by: Anna Larch <anna@nextcloud.com>
3 years ago
Côme Chilliet
26033653a8
Remove dymanic var $mountOptions to fix PHP 8.2 compatibility
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
3 years ago
Julius Härtl
8629d8e44f
Check share attributes on preview endpoints
Signed-off-by: Julius Härtl <jus@bitgrid.net>
3 years ago
Carl Schwan
a5ea677370
Rename file1 and file2 to source and target in Storage abstraction
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago
Carl Schwan
54031e370a
Fix various other small psalm issues
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago
Carl Schwan
0a2a4d8687
Fix incorrect argument name in inherited method
The arguments now need to be the same as in the parent method
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago
Carl Schwan
60313683e2
Fix checkpassword undocummented null parameter
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago
Carl Schwan
c6b8a3bec3
Fix permission not being int
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago
Carl Schwan
53e408f76a
Fix exception getCode type
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago
Carl Schwan
3a11128e6c
Fix type when getting appconfig with int
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago
Carl Schwan
9eb67ad57d
More flexible date validation
Fix #34542
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
3 years ago