Dominik Schmidt
f1afd72e31
fix(thumbnails): close rejected vips ref, map oversized convert error to forbidden
...
(cherry picked from commit 65f19b5d71 )
2026-09-29 09:58:19 +02:00
Dominik Schmidt
5860aab875
fix(thumbnails): bound declared image dimensions before decoding
...
The imaging build decodes the full pixel buffer from the header-declared
dimensions before the existing MaxInputWidth/MaxInputHeight guard runs, so a
tiny crafted file whose header declares huge dimensions forces a multi-GB
allocation and can OOM the worker. Read the header with DecodeConfig and reject
oversized sources before the decode allocates, in both the imaging and vips
builds, and thread the limit through the audio cover-art and geogebra decoders
that decode a second attacker-controlled image.
(cherry picked from commit 7f687ea288 )
2026-09-29 09:58:19 +02:00
Ralf Haferkamp
7143dc9cba
Revert "fix: disallow thumbnails for tiff and jpeg2000 images"
...
The alpine base images now has a fixed libvips. So we can enable
previews for these formats again.
This reverts commit c40629dd85 .
(cherry picked from commit fab1986fb6 )
Backports: https://github.com/opencloud-eu/opencloud/pull/2973
2026-06-22 14:39:20 +02:00
Ralf Haferkamp
c40629dd85
fix: disallow thumbnails for tiff and jpeg2000 images
2026-05-13 13:28:10 +02:00
Florian Schade
d0e3f14539
chore: remove loop var references
2026-04-23 17:11:55 +02:00
Florian Schade
288e67cc39
chore: replace interface with any
2026-04-23 09:31:11 +02:00
Christian Richter
30c4fb2b51
consolidate log config in thumbnails
...
Signed-off-by: Christian Richter <c.richter@opencloud.eu >
2026-01-08 13:38:14 +01:00
Florian Schade
9c651af32d
fix(thumbnailer): missing font panic
2025-12-31 12:17:11 +01:00
Florian Schade
151ccb1609
fix: remove unsupported service binary entrypoints
2025-12-23 12:23:41 +01:00
Florian Schade
01b768d33c
fix(thumbnailer): respect image boundaries and text wrappings for TxtToImageConverter string drawing
2025-12-22 15:57:25 +01:00
Christian Richter
0372869b8b
refactor remaining code from urfave/cli
...
Signed-off-by: Christian Richter <c.richter@opencloud.eu >
2025-12-15 16:40:27 +01:00
Christian Richter
7be33b0607
refactor interims DefaultAppCobra to DefaultApp
...
Signed-off-by: Christian Richter <c.richter@opencloud.eu >
2025-12-15 16:40:26 +01:00
Christian Richter
7e1ab4f34f
migrate thumbnails from urfave/cli to spf13/cobra
...
Signed-off-by: Christian Richter <c.richter@opencloud.eu >
2025-12-15 16:40:26 +01:00
Jörn Friedrich Dreyer
10913ca00a
Merge pull request #1918 from opencloud-eu/otlp-tracing
...
update otlp tracing
2025-11-27 12:57:26 +01:00
Jörn Friedrich Dreyer
a3ef7f6d79
update otlp tracing
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-11-27 12:28:15 +01:00
Ralf Haferkamp
3badc66d4a
fix: adapt to new function signatures
...
To allow to bump to latest kovidgoyal/imaging release
2025-11-26 14:46:30 +01:00
Michael Barz
3b27d8f580
change: use 404 as status when thumbnail can not be fetched ( #1582 )
2025-09-30 20:40:31 +02:00
Roman Perekhod
c597dfb917
set default timeouts and clean up
2025-09-12 12:18:47 +02:00
Roman Perekhod
9a3fc08dd4
to separate controll ower the http and grpc driven services
2025-09-12 12:18:47 +02:00
Juan Pablo Villafáñez
9e1b80a1be
feat: use runners to startup the services
2025-09-12 12:18:47 +02:00
André Duffeck
683b979bdd
Remove unused code
2025-07-22 10:42:46 +02:00
Christian Richter and André Duffeck
49ab88e980
Add signed-url handling to thumbnail service
...
Co-authored-by: André Duffeck <a.duffeck@opencloud.eu >
Signed-off-by: Christian Richter <c.richter@opencloud.eu >
2025-07-22 08:51:16 +02:00
Michael Barz
887257fa38
feat: add webp format ( #869 )
2025-05-22 09:19:50 +02:00
Ralf Haferkamp
96684df32d
Adjust to new tablewriter release
2025-05-19 19:26:38 +02:00
Ralf Haferkamp
24da3687d9
Makefile: remove unneeded recursion.mk
...
The MAKE_DEPTH variable is not used anywhere anymore.
2025-04-22 16:57:17 +02:00
Ralf Haferkamp
48edc9a5d1
Reintroduce check for go before including bingo Makefile
...
This re-adds the check for go being installed before including the
bingo variables make file to avoid repeating errors about missing a
missing go binary when running 'make node-generate' in the ci (the node
container doesn't have go installed)
2025-03-11 11:19:20 +01:00
Ralf Haferkamp
c46e0c4b6b
Fix build with go 1.24
...
Go 1.24 does some stricter checks now on arguments to functions
accepting format strings.
This commit fixes a couple of "non-constant format string in call
to ..." errors when running the unit tests.
2025-03-10 10:43:34 +01:00
Florian Schade
dbafbaa333
fix: remove deprecations and use go-generate instead of go-generate-STAGE
2025-03-06 11:56:09 +01:00
Florian Schade
da1963cfa4
enhancement: split make ci-node-generate and ci-go-generate into prod and dev stages
2025-03-05 17:32:37 +01:00
Ralf Haferkamp
8e1f68f315
Reset 'introductionVersion" struct tag to 1.0.0
2025-02-24 11:40:33 +01:00
Jannik Stehle
2857b6dd7a
Merge pull request #122 from opencloud-eu/chore/branding-thumnails-test-data
...
chore: remove or change branded test files in thumbnail service
2025-01-28 09:38:52 +01:00
Jannik Stehle
64afb387a2
chore: replace branded ggs test files
2025-01-28 09:38:22 +01:00
Jannik Stehle
fac4ebbf0f
chore: remove or change branded test files in thumbnail service
2025-01-27 15:12:12 +01:00
André Duffeck
57fa8eb43c
Switch from ocis/s3ng to decomposed/decomposed_s3 storage drivers
...
ocis/s3ng are still supported for backwards compatibility reasons, but
they need to be configured using the decomposed/decomposed_s3 options.
2025-01-24 11:04:23 +01:00
André Duffeck
e8d35e1280
Use the opencloud reva from now on
2025-01-21 11:16:38 +01:00
Jörn Friedrich Dreyer and Andre Duffeck
233a435fe9
Update services/thumbnails/README.md
...
Co-authored-by: Andre Duffeck <aduffeck@users.noreply.github.com >
2025-01-17 14:52:11 +01:00
Jörn Friedrich Dreyer
78c22c0b84
thumbnails
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-17 12:03:15 +01:00
Ralf Haferkamp
3cb3a420d6
Remove unneeded reflex.conf files
2025-01-16 16:08:46 +01:00
Ralf Haferkamp
213e9663a9
Rename go-micro services
2025-01-16 09:45:46 +01:00
André Duffeck
8c8cdd9310
Adapt protobuf naming
2025-01-15 11:04:32 +01:00
Jörn Friedrich Dreyer
318ca21645
metrics, log and supervisor
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-14 16:09:54 +01:00
Jörn Friedrich Dreyer
5aa5ab843a
ociscfg -> occfg
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-14 12:44:00 +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
a46fd132bd
use OC_ env prefix
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2025-01-13 16:11:11 +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
Juan Pablo Villafáñez
f3d91f8c69
fix: ensure thumbnail is written into disk
2024-12-03 11:00:03 +01:00
Juan Pablo Villafáñez
56f012ceb6
fix: use a tmp file and rename to prevent a possible race condition
2024-11-29 14:16:07 +01:00
Ralf Haferkamp
e0cf17d5e5
Fix thumbnails status code
...
Return 403 instead of 500 when the image is too large (in dimensions or file
size).
Fixes : #10589
2024-11-18 16:18:18 +01:00
jkoberg
2b8b853c4d
feat(thumbnails): make ggp thumbnails work
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-11-07 17:18:28 +01:00
jkoberg
1571d39a74
feat(thumbnails): add ggp test file
...
Signed-off-by: jkoberg <jkoberg@owncloud.com >
2024-11-06 19:32:08 +01:00