Ferdinand Thiessen
1550af87cd
fix(files): Properly handle denied ownership transfers
...
When the receiver denies the transfer the notification handler was missing,
so no notification was created for the transfer owner.
But also the internal notification was created two times:
1. When rejecting the transfer
2. By the reject function when dismissing the notification
This is fixed by only relying on the dismiss function.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-14 17:35:59 +02:00
Ferdinand Thiessen
4bd9bc7b06
feat(files): Use receiving users language for the ownership transfer target folder
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-05-29 20:19:58 +02:00
Andy Scherzinger
5b7dcc1427
chore: Add SPDX header
...
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-05-29 08:58:16 +02:00
Côme Chilliet
4c27e88b40
fix(files): Fix ownership transfer encrypted files detection
...
Discovered by psalm update
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-30 09:23:59 +02:00
Ferdinand Thiessen
c6f3aecef1
fix(files): Use string array instead of string for forbidden characters
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-29 17:15:00 +02:00
Ferdinand Thiessen
6a281f019c
fix(files): Use OCP\Util::getForbiddenFileNameChars instead of direct access to system config
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-29 17:01:32 +02:00
Ferdinand Thiessen
38f4451a23
fix(files): Also restore shares after ownership transfer for object storage
...
When a file is moved between different storages then the file id is not (always) preserved.
This means the file id has to be adjusted for all shares.
So in case the file id does not exist anymore we try to find the new file id based on the
target path of the transfer and the path suffix of the share.
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-18 13:51:47 +02:00
Robin Appelman
1d34f0a824
feat: cleanup filecache_extended items by default
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-04-15 20:30:57 +02:00
Daniel Kesselberg
2f6cc92491
feat: remove orphaned entries from filecache_extended
...
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2024-04-15 20:30:57 +02:00
Côme Chilliet
ec5133b739
fix: Apply new coding standard to all files
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-04-02 14:16:21 +02:00
Christopher Ng
66e77d41c8
feat: Add iconSvgInline to TemplateFileCreator
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-20 15:50:52 -07:00
John Molakvoæ
0379a8d7a9
Merge pull request #41973 from nextcloud/files-scan-path-option
2024-03-15 13:14:29 +01:00
Louis Chemineau
2de9880d79
fix(files): Do not require files_trashbin in live photo sync listener
...
Fix https://github.com/nextcloud/server/issues/43299
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-03-14 10:55:44 +01:00
Maxence Lange
467c84ec53
feat(files): copy live photos
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2024-03-08 13:09:22 -01:00
fenn-cs
035a2c7062
feat(files): add search plugin to search in specified folder exclusively
...
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2024-03-07 21:10:54 +01:00
Robin Appelman
e7a7b4a401
perf: switch places that always use the first getById result to getFirstNodeById
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-03-04 13:57:31 +01:00
Ferdinand Thiessen
1017f4f34a
fix: Also expose forbidden filename character in the capabilities
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-28 22:19:25 +01:00
Benjamin Gaussorgues
f3b5c7caf3
feat(search): allows to search files by path
...
Use `GET search/providers/files/search?path=<path>` with beginning of
the path
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2024-02-27 10:43:06 +01:00
Robin Appelman
572faa1224
use correct mode constant of files:scan's --path option
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2024-02-24 11:39:05 +01:00
John Molakvoæ
816ddaf8b3
Merge pull request #39215 from shdehnavi/replace_substr_calls_in_files_app
2024-02-23 19:45:56 +01:00
John Molakvoæ
524ed97d62
fix: replace Account name by Login
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-02-13 21:08:10 +01:00
Vincent Petry
839ddaa354
feat: rename users to account or person
...
Replace translated text in most locations
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2024-02-13 21:06:30 +01:00
Ferdinand Thiessen
5e124c4a8a
fix(files): Remove dead code from files controllers
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-12 17:36:44 +01:00
Côme Chilliet
b2e9e0fa0d
chore: Replace OC::$server->getL10N by OCP\Util::getL10N in lib and some apps
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-02-05 11:16:04 +01:00
Côme Chilliet
8bcc2d352e
chore: Fix missing template parameter for IEventListener
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2024-01-30 10:57:15 +01:00
Ferdinand Thiessen
2cea4d7b8d
fix(files): Consistent sorting for folders before files (user configurable)
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-27 14:23:47 +01:00
Ferdinand Thiessen
4023f1e582
fix(files): Make sure to add the fileid on favorite folders navigation entries
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-25 15:07:52 +01:00
Grigorii K. Shartsev
b40279e376
fix(files): combine navigation and files list into single Vue app
...
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-01-25 00:25:54 +01:00
provokateurin
b64ab5fba8
refactor: Migrate IgnoreOpenAPI attributes to OpenAPI
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-01-18 16:14:17 +01:00
provokateurin
887d63663d
chore(files): Remove unused type alias
...
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-01-18 16:00:18 +01:00
Josh Richards
a66877813c
fix(ViewController): Regression lead to 500 on non-existent fileIds
...
Fixes #42418
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
2023-12-21 11:19:06 -05:00
Ferdinand Thiessen
59c982f31f
fix(files): Adjust ID for skip content buttons
...
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-21 14:56:40 +01:00
Maxence Lange
e0a78dd2fe
fix rename
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-12-11 12:20:25 -01:00
Louis Chemineau
e6bc34c6b2
Add comment in SyncLivePhotosListener
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-30 12:59:57 +01:00
Louis Chemineau
2f6a4bf4a1
Synchronize operation on live photo files
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-29 19:07:32 +01:00
Joas Schilling
aa5f037af7
chore: apply changes from Nextcloud coding standards 1.1.1
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-23 10:36:13 +01:00
Maxence Lange
22d6c8dcd4
add named metadata event
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-20 13:32:54 -01:00
Benjamin Gaussorgues
01de485aca
fix(files): avoid sending thumbnail URL for directory as none exists
...
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-17 16:22:48 +01:00
Benjamin Gaussorgues
a75a93af8e
feat(files): Allow advanced search for files
...
Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
2023-11-10 09:21:16 +01:00
Louis Chemineau
d3a313f192
Support getting and setting metadata in DAV requests
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2023-11-08 16:23:53 +01:00
Maxence Lange
e62e9e3dbf
IFilesMetadata
...
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
2023-11-07 00:21:38 -01:00
Hamid Dehnavi
344d99ae94
Merge branch 'master' into replace_substr_calls_in_files_app
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2023-10-30 11:43:32 +03:30
John Molakvoæ
116c396f0e
feat(files): add grid toggle button
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-10-17 11:19:02 +02:00
John Molakvoæ
35aed73ede
feat: allow external drop and add dropzone
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-10-10 15:28:52 +02:00
John Molakvoæ (skjnldsv)
b05719c8e9
fix: redirect to proper directory if file not found
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2023-10-04 11:29:05 +02:00
John Molakvoæ (skjnldsv)
dbeb526bba
fix(files): disallow illegal characters
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2023-10-04 11:12:44 +02:00
Hamid Dehnavi
df0a396b4c
Refactor "substr" calls to improve code readability
...
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2023-09-27 20:36:23 +03:30
Kate
f134244c90
Merge pull request #40502 from nextcloud/fix/openapi/single-status-descriptions
...
Add single status code descriptions for OpenAPI
2023-09-27 09:18:25 +02:00
jld3103
c2d45cb172
Add single status code descriptions for OpenAPI
...
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-09-27 08:05:21 +02:00
Max
7ba6409270
fix(files): do not include scripts for merge-index
...
Signed-off-by: Max <max@nextcloud.com>
2023-09-26 21:37:45 +02:00
John Molakvoæ
472440b296
Merge pull request #40551 from nextcloud/fix/init-script
2023-09-21 17:33:44 +02:00
John Molakvoæ (skjnldsv)
a5a8655beb
fix: avoid side-effect imports
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2023-09-21 12:40:42 +02:00
Côme Chilliet
0a9371f99f
Migrate applications away from deprecated ILogger
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-09-21 11:57:21 +02:00
John Molakvoæ
1b67542e0b
fix(files): trashbin redirect and default fileid Sidebar open
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:58:20 +02:00
John Molakvoæ
3344f0f121
fix(files): service worker
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:56:37 +02:00
John Molakvoæ
410f58e43e
chore(files): add Headers, remove legacy methods and cleanup
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:56:37 +02:00
John Molakvoæ
998b3a2581
feat(f2v): migrate Files
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-08-17 18:56:37 +02:00
fenn-cs
dc8d25c274
Migrate parts of files app away from depecrated Ilogger
...
- Migrate some backgrounds jobs, `TransferOwnership` & `DeleteOrphanedItems`
- Migrate `DirectEditingController`
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-08-13 11:37:34 +01:00
Joas Schilling
44b4c16a09
Merge pull request #39605 from nextcloud/bugfix/noid/final-events-cleanup
...
fix!: Final round of moving to IEventDispatcher
2023-08-04 10:39:57 +02:00
Côme Chilliet
26049cb49c
Merge pull request #39150 from fsamapoor/refactor_files_app_commands
...
Refactors files app commands
2023-08-03 10:14:23 +02:00
John Molakvoæ (skjnldsv)
87b1719c88
feat(files): migrate recent view
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2023-08-02 09:57:27 +02:00
Faraz Samapoor
b353b3f425
Merge branch 'master' into refactor_files_app_commands
...
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
2023-08-01 12:39:10 +03:30
Joas Schilling
ead47610c1
fix!: Remove LegacyLoadAdditionalScriptsAdapter
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-28 14:11:21 +02:00
Joas Schilling
8ad94cbfda
feat!: Migrate unShare events to typed events
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-28 14:11:20 +02:00
Joas Schilling
44b810bfbd
feat!: Migrate Sharing events to typed events
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-28 14:11:19 +02:00
Joas Schilling
9bf812ac6c
feat!: Migrate TagService events to typed events
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-28 14:11:18 +02:00
Joas Schilling
77bc6c32d8
fix(dispatcher): Move remaining simple cases in apps/ folder to IEventDispatcher
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-07-25 11:19:26 +02:00
Robin Appelman
c912a3f0f6
Merge pull request #38860 from nextcloud/scanner-change-summary
...
add summary of detected changes to files:scan output
2023-07-20 18:37:07 +02:00
Faraz Samapoor
270035ff44
Fixes Psalm's "InvalidArgument" error.
...
I just removed the return type from the "exceptionErrorHandler". There is in fact a hacky solution, that I didn't like:
https://github.com/vimeo/psalm/issues/3571
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-07-12 18:29:32 +03:30
Faraz Samapoor
b8870658fb
Fixes Psalm's "LessSpecificReturnStatement" error.
...
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-07-12 18:29:32 +03:30
Faraz Samapoor
5d242aa2f8
Refactors files app commands.
...
To improve code readability.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-07-12 18:29:32 +03:30
Robin Appelman
38640bf816
add commands to copy/move files
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-07-12 15:01:29 +02:00
jld3103
259264b966
files: Add OpenAPI spec
...
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-07-12 09:06:10 +02:00
John Molakvoæ
e3bac437c2
chore: remove old favorites view
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-05 16:20:34 +02:00
John Molakvoæ
a0597da460
feat(files): sort favorites first
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-05 16:20:33 +02:00
John Molakvoæ
0984970cd8
feat(files): favorites
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-07-05 16:20:32 +02:00
Christoph Wurst
95145ee0c9
feat(ocp): More specific type for ICapabilities::getCapabilities
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-07-03 10:03:45 +02:00
Robin Appelman
292c0e53f8
add summary of detected changes to files:scan output
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-06-16 17:56:34 +02:00
Robin Appelman
ea88ec1350
add utility command for object store objects
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-06-09 18:08:18 +02:00
Robin Appelman
4822f104f7
Merge pull request #37971 from nextcloud/info-file-get
...
Add commands for basic file actions
2023-05-10 13:40:06 +02:00
Robin Appelman
ddc53a9046
minor fixes for get/put
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-09 17:38:43 +02:00
Robin Appelman
36221a8865
add command to write a file
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-04 18:21:58 +02:00
Robin Appelman
f9fb102f0b
move get/delete commands to files namespace, make get take the output as argument instead of option
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-05-04 18:21:58 +02:00
Côme Chilliet
88405d320e
Add an error counter
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-05-04 17:06:46 +02:00
Côme Chilliet
2ffa9fc797
Only show error stack trace on very verbose level
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-05-02 10:01:38 +02:00
Côme Chilliet
1f83979699
Do not stop at the first PHP error/warning in files:scan
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-04-27 10:46:37 +02:00
Joas Schilling
8b31d8204f
fix(files): Don't throw an error when guests access the controller
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-19 16:39:57 +02:00
John Molakvoæ
d7ab8da1ef
feat(files): add view config service to store user-config per view
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-18 09:02:01 +02:00
Julius Härtl
cd44ee2053
Merge pull request #37625 from nextcloud/bugfix/noid/transfer-file-new-user
...
fix: Always create user directory when transfering files to new users
2023-04-11 07:57:17 +02:00
jld3103
b153340b62
Add type hints for mappers
...
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-04-07 09:49:42 +02:00
Julius Härtl
b62e29051e
fix: Always create user directory when transfering files to new users
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-04-06 20:51:56 +02:00
John Molakvoæ
3c3050c76f
feat(files): implement sorting per view
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 14:49:31 +02:00
John Molakvoæ
10010fc532
feat(files): sorting
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 14:49:30 +02:00
John Molakvoæ
b761039cf1
perf(files): fetch previews faster and cache properly
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-04-06 14:49:30 +02:00
Robin Appelman
54f61352f0
better error messages if the users home is not writable during scanning
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-04-05 13:21:30 +02:00
Michiel de Jong
c0e84cb512
Add SHARE_TYPE_SCIENCEMESH
...
Signed-off-by: Michiel de Jong <michiel@unhosted.org>
2023-03-08 16:46:55 +01:00
Joas Schilling
394ad988c7
Merge pull request #36904 from nextcloud/bugfix/noid/fix-controller-setup-for-guests
...
fix(files): Fix controller setup for guests
2023-03-06 14:20:25 +01:00
Julius Härtl
6130f1a78e
Implement file reference wiget
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-03-02 21:01:44 +01:00
Joas Schilling
c02080fccb
fix(files): Fix controller setup for guests
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-02-28 15:34:11 +01:00
Joas Schilling
98ed72b3ed
Revert "fix(performance): Do not set up filesystem on every call"
2023-02-21 07:36:43 +01:00
Julius Härtl
614981ae9a
feat(directediting): Allow opening by file id
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-20 12:16:34 +01:00
Anna Larch
5d4efb4d5f
Do not set up filesystem on every call
...
Also remove old Oc_FileChunking logis that produced GC- collectable chunks
Signed-off-by: Anna Larch <anna@nextcloud.com>
2023-02-17 19:18:37 +01:00
Julius Härtl
47bc024885
Revert the token scope to not end up with storing the user used in the session
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2023-02-17 10:18:18 +01:00
Robin Appelman
4532e52787
remove explicit setup when getting storage info
...
the implicit setup gets enough data without having to do a full setup.
Saves having to do a full fs setup for the files webui template
Signed-off-by: Robin Appelman <robin@icewind.nl>
2023-02-08 13:47:55 +01:00
Simon L
078203afea
Merge pull request #35935 from EWouters/patch-1
...
[Fix]: scan-app-data conversion
2023-01-23 17:43:14 +01:00
John Molakvoæ
b9906fb21e
feat(files): Quota in navigation
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-17 18:30:41 +01:00
John Molakvoæ
7339355dde
Fix favourite opening
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:46:16 +01:00
John Molakvoæ
0a3ef8b74b
Fixing tests
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:46:16 +01:00
John Molakvoæ
5b9a8f0407
Add component testing
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:46:14 +01:00
John Molakvoæ
5c987a0ff4
Port settings to Modal
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:45:52 +01:00
John Molakvoæ
887c9e05de
Port Files navigation to vue
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-01-04 16:45:41 +01:00
EWouters
3a9173cbac
[Fix]: scan-app-data conversion
...
Adapted from sugestions by @Hiyoal in #34283 and @st3iny in #35935 .
See https://github.com/nextcloud/server/issues/34283#issuecomment-1288075064
and https://github.com/nextcloud/server/pull/35935#discussion_r1059905594 .
Closes #34283 .
Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud>
Signed-off-by: EWouters <6179932+EWouters@users.noreply.github.com>
2023-01-03 13:52:34 +01:00
Julius Härtl
6abb37317f
Do not setup a session when not required on WebDAV requests
...
If basic auth is used on WebDAV endpoints, we will not setup a session
by default but instead set a test cookie. Clients which handle session
cookies properly will send back the cookie then on the second request
and a session will be initialized which can be resued for
authentication.
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-12-21 21:17:16 +01:00
Côme Chilliet
cbbb0712db
Merge pull request #34807 from nextcloud/fix/compute-notification-parsed-subject
...
Compute notification parsed subject from rich subject when possible
2022-12-19 10:46:39 +01:00
Côme Chilliet
a0f6a6545b
Use TimedJob from OCP instead of OC
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-12-05 10:13:34 +01:00
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>
2022-11-29 14:36:29 +00:00
Markus Zeller
15289f9737
Cast to int #32837
...
Signed-off-by: Markus Zeller <git@markuszeller.com>
2022-11-07 16:44:47 +01:00
Joas Schilling
edb64b193c
Also throttle on expiration
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-12 13:01:19 +02:00
Joas Schilling
9b204649e4
Fix psalm error on migration
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-12 11:55:04 +02:00
Joas Schilling
9c5fef35c7
Add a background job to delete expired tokens
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-12 11:43:00 +02:00
Joas Schilling
c167fb5ccb
Also remove token when we successfully validated
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-11 20:39:39 +02:00
Joas Schilling
cfbbace450
Require a token for "Edit locally"
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-10-11 20:15:26 +02:00
Carl Schwan
54b6d0708b
Allow scanning for metadata with occ scan:file --generate-metadata
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: Louis Chemineau <louis@chmn.me>
2022-10-11 10:41:17 +02:00
Anna Larch
25409cb66c
Url encode the web dav url for copying
...
Signed-off-by: Anna Larch <anna@nextcloud.com>
2022-10-02 08:46:16 +00:00
luz paz
9d26671f05
Fix typos in apps/ subdirectory
...
Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/`
Signed-off-by: luz paz <luzpaz@github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-09-05 12:59:54 +00:00
Carl Schwan
b888c61463
Merge pull request #33047 from nextcloud/fix/ijob-logger-deprecated
...
Deprecated ILogger from IJob
2022-08-23 16:55:42 +02:00
Joas Schilling
7e11778190
Use user name cache in activity providers
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-19 10:48:32 +02:00
Vincent Petry
fbc48db507
Remove redundant events
...
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-08-15 19:20:42 +02:00
Daniel Calviño Sánchez
4c837dadf2
Show usage percenteage in the tooltip
...
The tooltip of the initial quota display showed the usage percenteage
and the total available space. However, the total available space was
redundant, as it was shown just below. The tooltip of the updated quota
display showed the usage percenteage, but based on the quota rather than
the total available space, so there was a mismatch between the tooltip
and the bar below. Now the tooltip of the initial and the updated quota
display both show just the usage percenteage based on the total
available space.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-08-10 11:23:27 +02:00
Daniel Calviño Sánchez
f6bdaac88e
Use total available space rather than quota when updating the display
...
The initial quota display uses the total available space rather than the
quota. Moreover, the relative usage is based on the total space rather
than the quota. Due to this now the total available space is also used
when updating the quota display.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2022-08-10 11:22:50 +02:00
Carl Schwan
48d9c4d2b0
Port existing server code to new interface
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-08 17:03:19 +02:00
Simon L
de82d4f67c
Merge pull request #32874 from bill-mcgonigle/patch-1
...
Mention missing files subdir
2022-06-17 12:12:25 +02:00
Côme Chilliet
c54fb5f9e6
Use {$var} instead of ${var} for PHP 8.2 compatibility
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-06-14 15:12:28 +02:00
Bill McGonigle
ad60b3b479
Mention missing files subdir
...
Many users are getting confused by the inaccurate error message "Home storage for user $user not writable" because the storage *is* writable. The actual issue is a missing files/ subdirectory. cf. https://help.nextcloud.com/t/home-storage-for-user-not-writable/10831/7
By mentioning the possible cause in the error message, users are going to be able to rapidly solve their problem rather than bang their heads against the screen, Google, and eventually forums to find out that the error message is wrong in their case.
Yes, it would be better to detect and precisely describe the fault, or fix the problem automatically, but until then, be kind to the users for the next however many years.
2022-06-14 07:10:29 -04:00
Vincent Petry
e6e1862000
Merge pull request #32059 from cld4h/patch-1
...
Fix issue #31692 of occ files:scan
2022-06-10 16:20:00 +02:00
Julius Härtl
61056587c9
Only load direct editing capabilities when required
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-06-03 07:15:17 +02:00
John Molakvoæ
18f2340a40
Merge pull request #32149 from nextcloud/fix-transferring-groupfolders
2022-05-11 08:40:28 +02:00
Carl Schwan
f945c0cbc6
Add a public replacement for OC::$server->get
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-10 18:51:12 +02:00
Vanessa Pertsch
c714c3380a
fix for transferring ownership of groupfolders
...
Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
2022-05-10 16:54:22 +02:00
cld4h
553239c083
Fix issue #31692 of occ files:scan
...
occ files:scan reports error "Implicit conversion from float XXX to int loses precision"
Signed-off-by: cld4h <20869428+cld4h@users.noreply.github.com>
2022-04-26 14:22:41 +08:00
Robin Appelman
7eca0a2553
don't force a full setup for getting storage stats
...
the auto-setup is good enough
Signed-off-by: Robin Appelman <robin@icewind.nl>
2022-04-06 13:13:37 +02:00
Côme Chilliet
ea23523c70
Adapt more code to migration to LoggerInterface
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2022-03-24 16:21:25 +01:00
Carl Schwan
028ca0935c
Don't redirect when loading files index page
...
Currently we are redirecting from ?dir=/&fileid=2 to ?dir=/. This is an
issue because we then need to load two pages with full file system setup
and authentification instead of one and the assets won't start loading
until the second page is delivered to the user.
Additionally when loading ?dir=/, we then change the url back to
?dir=/&fileid=2 (without reload) so that the next time we load the page
again we do the same thing again.
Depending on the speed of the server and internet connection we can save
100ms to 400ms, improving the user experience.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-02-17 17:06:33 +01:00
Vincent Petry
62d47100ec
Merge pull request #30953 from nextcloud/feat/init-storage-when-transferring-ownership
...
Init user's file system if not existing on ownership transfer
2022-02-10 18:13:43 +01:00
Vincent Petry
1a9e6f1571
Merge pull request #31097 from nextcloud/bugfix/31096/fix-shares-transfer-guest-to-nonguest
...
Fix path handling when transferring incoming shares
2022-02-10 17:47:41 +01:00
Vincent Petry
7858fee5b5
Fix path handling when transferring incoming shares
...
When transferring incoming shares from a guest user without specifying a
path, the $path is empty.
The fix properly handles that situation to avoid looking for shares in a
path with doubled slashes which failed to find shares to transfer.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-02-10 09:50:21 +01:00
Joas Schilling
5f5142ff58
Don't provide favorite activity settings
...
Since mails and notifications are only available for actions of other users
it does not make sense to allow changing this.
It also prevents the common misunderstanding with
"file was changed inside a favorited folder"
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-02-09 10:49:32 +01:00
Carl Schwan
02da4ce1b0
Init user's file system if not existing on ownership transfer
...
This makes it a bit easier to transfer ownership when the new user
hasn't already logged in. This still doesn't support encrypted
storages because the keys are not generated yet.
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-02-01 13:26:41 +01:00
Julien Veyssier
b67b4b160b
[files] new internal link GET param to avoid setting 'openfile' on redirect
...
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
2022-01-14 10:50:13 +01:00
John Molakvoæ
2c1eac665a
Merge pull request #30530 from nextcloud/fix/search-url
2022-01-14 09:18:44 +01:00
John Molakvoæ
8d3a4856cb
Fix wrong unified search link to folder
...
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-01-13 18:26:07 +01:00
John Molakvoæ (skjnldsv)
87d0904b6f
Split common vendor chunk
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-01-08 10:14:50 +01:00
John Molakvoæ (skjnldsv)
b664aad7ab
Move bundles to /dist
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-01-08 10:11:58 +01:00
Joas Schilling
d49ad7ea47
Limit more contact searches
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-12-08 18:58:54 +01:00
Robin Appelman
e95745c074
fix tests
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:43:16 +01:00
Robin Appelman
89bc9f1b77
stop background scan early if a users still has unscanned files after background scan
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:35:07 +01:00
Robin Appelman
38921ab498
find users for background scan one by one
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-12-02 17:35:02 +01:00
John Molakvoæ (skjnldsv)
a325141545
Remove isIE and associated legacy scripts
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-11-30 13:03:08 +01:00
Vincent Petry
67ebe75d0e
Move storage encoding compatibility warning logic
...
The encoding check for file names is now happening the Scanner, and an
event will be emitted only if the storage doesn't contain the encoding
compatibility wrapper.
The event is listened to by the occ scan command to be able to display a
warning in case of file name mismatches when they have NFD encoding.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-11-17 09:24:13 +01:00
Julius Härtl
9c937a63bf
Move to combined files entrypoint
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-10-25 16:51:37 +02:00
Vincent Petry
fa23a9f720
Do not transfer shares for deleted users
...
Whenever a user was deleted but is still recipient of share entries,
delete these entries upon transfer.
Usually such entries would disappear after running cleanup background
jobs.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-10-04 11:04:04 +02:00
Vincent Petry
ab09f1e00e
Merge pull request #28853 from nextcloud/bugfix/27547/dont-allow-changing-settings-that-dont-work
...
Don't allow to change activity settings that don't work
2021-09-27 08:16:33 +02:00
Joas Schilling
ad9cad1ae5
Don't allow to change activity settings that don't work
...
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-09-15 17:27:01 +02:00
Immanuel Pasanec
1f42657bb9
Added support for transfering incoming file shares.
...
- new option --transfer-incoming-shares=1 | 0
- new config.php option 'transfer-incoming-shares' => true | false
The command line option overrules the config.php option.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2021-08-27 17:55:58 +02:00
Christoph Wurst
ffcf27c757
Log exception message during failed ownership transfer share restore
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-08-24 09:22:30 +02:00
Louis
1ad5e8ad73
Fix typo
...
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
2021-07-28 11:15:03 +02:00
Louis Chemineau
e558a00496
Set openfile params when following internal links
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-07-27 11:41:32 +00:00
Louis Chemineau
2cbc3e9245
Fix variabable override in file view
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-07-26 15:47:37 +02:00
Louis Chemineau
c03a14934b
Trigger click event when scrollTo is set
...
Signed-off-by: Louis Chemineau <louis@chmn.me>
2021-06-09 16:19:11 +02:00
Morris Jobke
2ae60b42ab
Merge pull request #26494 from rigrig/fix-php8-deprecations
...
Fix some php 8 warnings
2021-06-07 23:30:59 +02:00
John Molakvoæ (skjnldsv)
215aef3cbd
Update php licenses
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 22:02:41 +02:00
Richard de Boer
f23d057ad9
Fix functions taking optional parameters before required ones
...
PHP 8 shows deprecation warnings about this, see #25806
Removes the "default" values, as they actually are required parameters anyway.
Signed-off-by: Richard de Boer <git@tubul.net>
2021-05-29 14:14:52 +02:00
Roeland Jago Douma
bcf01a1b90
Fix more psalm warnings
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-21 16:58:15 +02:00
Morris Jobke
eb1d16d92d
Add proper PHPDoc tags to files ApiController
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2021-05-21 16:58:15 +02:00
Morris Jobke
f1dbabd910
Merge pull request #26727 from nextcloud/group-exclude-link-share
...
Add option to exclude groups from creating link shares
2021-05-21 15:35:39 +02:00
Robin Appelman
b1dca57a1c
load share settings from the share manager in more places
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-05-12 16:11:28 +02:00
Robin Appelman
907e997c99
optimize getting share types for recent files
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-04-21 13:56:11 +02:00
Roeland Jago Douma
0593b039fc
Move over notification to new registration
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-04-16 13:56:28 +02:00
Morris Jobke
1c074e7602
Merge pull request #26198 from nextcloud/unified-search-node
...
Handle limit offset and sorting in files search
2021-03-22 21:48:51 +01:00
Robin Appelman
a0fb6d2518
pass order from unified search to file search
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-19 16:07:57 +01:00
Christoph Wurst
e68c4a4ed3
Only perform login check during ownership transfer for encryption
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-19 11:25:56 +01:00
Robin Appelman
14a1b5063e
use "newer" node search api directly in unified search
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-18 16:22:29 +01:00
Morris Jobke
f56e5bb0db
Merge pull request #25676 from nextcloud/drop/utl-is-ie
...
Drop \OCP\Util::isIe
2021-03-17 20:18:11 +01:00
Vincent Petry
ab5c19bb08
Merge pull request #26131 from nextcloud/fix/initialstate-templates
...
Fix default missing initial state for templates
2021-03-17 10:18:03 +01:00
John Molakvoæ (skjnldsv)
223fe2aae6
Fix default missing initial state for templates
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-03-15 17:23:30 +01:00
Robin Appelman
424db15dea
limit constructing of result objects in file search
...
even thought we currently have no proper way of limiting the search itself, we can at least limit the construction of the result objects.
this saves about 40% of the time spend in the search request in my local testing
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-03-11 14:49:57 +01:00
Christoph Wurst
7f3051e5bf
Drop \OCP\Util::isIe
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-03-09 20:29:42 +01:00
Roeland Jago Douma
997259d1cd
Activity: show if files are hidden or not
...
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-03-04 13:14:52 +01:00
dependabot-preview[bot]
eb502c02ff
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
...
Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard ) from 0.3.0 to 0.5.0.
- [Release notes](https://github.com/nextcloud/coding-standard/releases )
- [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md )
- [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-02-18 13:31:24 +01:00
Julius Härtl
6c1b357973
Move TemplateProvider registration to boot context and make template type registration lazy
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-28 12:00:21 +01:00
John Molakvoæ (skjnldsv)
4f90766ba3
Skip template picker if none available
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-01-28 12:00:20 +01:00
John Molakvoæ (skjnldsv)
78e114ed72
Add template picker
...
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-01-28 12:00:18 +01:00
Julius Härtl
4974404774
files: Create files from template API
...
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-01-28 11:59:46 +01:00
Robin Appelman
1ecc02946f
cast ints
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 18:08:10 +01:00
Robin Appelman
68589f7792
handle the cache where a cache entry with the correct path has already been recreated
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:23 +01:00
Robin Appelman
8bd39f081f
also repair storage id
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:20 +01:00
Robin Appelman
291b72ec50
add command to repair broken filesystem trees
...
Signed-off-by: Robin Appelman <robin@icewind.nl>
2021-01-27 16:11:16 +01:00
Julius Härtl
c80e007607
Merge pull request #25055 from nina-py/18439-add-crop-image-previews-setting
...
Add "Crop image previews" setting to files
2021-01-15 08:07:52 +01:00
Nina Pypchenko
c14638877c
Add "Crop image previews" setting to files
...
Added a new user setting that toggles cropping on image previews
in grid view.
True (default value): crops each image to a square. False: keep original
aspect ratio.
Signed-off-by: Nina Pypchenko <22447785+nina-py@users.noreply.github.com>
Closes #18439 .
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
2021-01-14 17:36:17 +00:00
Christoph Wurst
3678823748
Fix database connection usage in the files scanner
...
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2021-01-11 16:45:14 +01:00