Jörn Friedrich Dreyer
04ad5b84bb
fix(storage-users): keep uploads sessions CLI out of the dcfs event queue
...
The uploads sessions command builds a posix driver with async file
uploads enabled, which makes it join the "dcfs" JetStream queue group.
Clean/restart/resume events published by the command itself can then be
routed to the CLI's own short-lived consumer; the nats client auto-acks
them and they are lost when the process exits, leaving stale upload
sessions behind.
Disable asyncfileuploads for the CLI driver instance so it only lists
sessions and publishes events. Also emit [] instead of null when the
session list is empty so the JSON output stays parseable.
2026-09-25 15:47:47 +02:00
Jörn Friedrich Dreyer
27c42ad135
fix(storage-users): publish CleanUpload event instead of purging directly
...
Ported from owncloud/ocis#11693 . The uploads clean command now emits an events.CleanUpload event via the event stream rather than calling Purge directly. Requires the corresponding reva bump (vendor changes pulled in separately).
2026-09-24 11:21:28 +02:00
André Duffeck
3d632fb90e
Expose upload status and message
2026-08-19 14:08:12 +02:00
Florian Schade
288e67cc39
chore: replace interface with any
2026-04-23 09:31:11 +02:00
Jörn Friedrich Dreyer
032c218789
replace .Value.String() with .GetString(...)
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-12-15 16:40:27 +01:00
Jörn Friedrich Dreyer
93601752a9
fix storage-users uploads sessions flags
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-12-15 16:40:27 +01:00
Christian Richter
5869f8c19c
migrate storage-users from urfave/cli to spf13/cobra
...
Signed-off-by: Christian Richter <c.richter@opencloud.eu >
2025-12-15 16:40:26 +01:00
Ralf Haferkamp
96684df32d
Adjust to new tablewriter release
2025-05-19 19:26:38 +02:00
André Duffeck
09818a9d7e
Adapt command to changed signature
2025-04-01 15:04:53 +02:00
Ralf Haferkamp
44dea094d7
fix cli driver initialization for "posix"
...
Fixes : #447
2025-03-24 12:16:32 +01:00
Ralf Haferkamp
544b354a42
fix(storage-users): 'uploads sessions' command crash
...
When started with the '--resume' command line switch the
'storage-users uploads sessions' was crashing because it did not
initialize the event queue correctly.
Fixes : #390
2025-03-20 16:02:56 +01:00
André Duffeck
e8d35e1280
Use the opencloud reva from now on
2025-01-21 11:16:38 +01:00
Jörn Friedrich Dreyer
b07b5a1149
use plain pkg module
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-13 16:42:19 +01:00
Jörn Friedrich Dreyer
8e028f17e9
change module name
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-13 09:58:18 +01:00
André Duffeck
e2b40a2d67
Adapt to changed signature
2024-11-19 09:06:35 +01:00
jkoberg
6ea3f2f782
fix(postprocessing): restart postprocessing properly
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-11-04 10:30:41 +01:00
Roman Perekhod
f16c7dec21
Remove deprecated CLI commands
2024-10-29 09:59:19 +01:00
jkoberg
3097a69a5f
feat(storage-users): add virusfilter to sessions command
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-05-02 11:48:50 +02:00
jkoberg
4941620333
feat(storage-users): assimilate clean command into sessions
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-05-02 11:40:03 +02:00
jkoberg
c80ee6e844
feat(storage-users): add scandata to upload command
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-04-26 09:17:45 +02:00
jkoberg
effa5db2dd
feat(storage-users): allow restarting multiple uploads at once
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-04-08 11:23:06 +02:00
jkoberg
7d990390c3
fix(postprocessing): repair restart logic
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-04-08 11:20:01 +02:00
Jörn Friedrich Dreyer
3ed0424735
add more upload session filters ( #7933 )
...
* add more upload session filters
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* default descriptions
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* update readme
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* use tablewriter, --json flag
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
* update readme
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
---------
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2024-01-26 09:21:32 +01:00
Jörn Friedrich Dreyer
3fc3152e67
fix upload purge filter and naming
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2023-12-14 14:47:42 +01:00
Jörn Friedrich Dreyer
a6a7c69e8f
bump reva to use UploadSessionLister interface
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2023-12-04 10:52:41 +01:00
jkoberg
2f2e93e148
don't configure events for storage provider
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2023-02-02 16:14:01 +01:00
Willy Kloucek
9f2be9f4f9
remove Log prefix from configlog functions
2022-08-22 08:08:18 +02:00
Willy Kloucek
e58eaabdeb
move config parse error logging into function to ensure new lines and don't parse config for help
2022-08-18 15:27:28 +02:00
Willy Kloucek
08c7743df9
add header to clean up and rename purge to clean in leftover places
2022-08-18 09:20:58 +02:00
Willy Kloucek
12204e4d91
remove category from uploads section
2022-08-17 15:05:26 +02:00
Willy Kloucek
7d76650e5f
further improve descriptions
2022-08-17 14:58:31 +02:00
Willy Kloucek and Martin
ea1484250f
improve usage text
...
Co-authored-by: Martin <github@diemattels.at >
2022-08-17 14:29:42 +02:00
Willy Kloucek
82acd83c61
remove fmt.Sprintf
2022-08-17 12:56:12 +02:00
Willy Kloucek
c0f0b0efb4
move the uploads command into a category
2022-08-17 12:40:02 +02:00
André Duffeck
e35327cdf2
Add a cli for listing and cleaning up expired uploads
...
Fixes #2622
2022-08-04 09:41:55 +02:00