Commit Graph
24551 Commits
Author SHA1 Message Date
Alex ccb2ba4739 fix: show the lilac logo on the login page (#3773) 2026-10-20 22:08:31 +02:00
Dominik Schmidt ef5e9c2e6e docs: name who decides what instead of what a thumbnail is 2026-10-20 20:39:15 +02:00
Dominik Schmidt 9f3e51b89d docs(webdav): say what an existing deployment has to change
Environment names keep working, a yaml configuration does not: its keys belong to the section of the service that reads them, and an unknown key is ignored without a word.
2026-10-20 20:22:10 +02:00
Dominik Schmidt 9c327dc34a docs: let the comments say what the code does, not what it used to do
A comment that explains a decision by what another branch or the previous service did stops being true the moment this merges.
2026-10-20 20:22:10 +02:00
Dominik Schmidt 16aadb4988 Merge remote-tracking branch 'origin/main' into imagor
# Conflicts:
#	tests/acceptance/expected-failures-decomposed-storage.md
#	tests/acceptance/expected-failures-posix-storage.md
2026-10-20 20:12:56 +02:00
Dominik Schmidt 46e845cfad ci: give the pipeline's imagor the same limits as the suite
CI runs imagor as a service instead of through testcontainers, so the frame limit never reached it and the animation case answered differently there than locally.
2026-10-20 19:20:25 +02:00
Dominik Schmidt c490926ce3 refactor: name the thumbnail config fields like their yaml keys
Internal only: the fields in webdav, graph and frontend now read Thumbnails like the keys and the variables they carry. The generator keeps its released thumbnail block, field and key alike.
2026-10-20 18:40:39 +02:00
Dominik Schmidt a5dd8143a5 refactor: name the thumbnail yaml keys like their variables
The keys are new in this PR, nothing has them set: a yaml file configures webdav's thumbnail settings under the webdav section, so the key now reads like the variable without its service prefix.
2026-10-20 18:37:44 +02:00
Dominik Schmidt c6ac8748d8 refactor: name the thumbnail settings after the service, THUMBNAILS
The service is thumbnails and its released variables say so; the new ones said THUMBNAIL. None of them has shipped yet, so they are renamed rather than aliased. The input file size gains the shared OC_THUMBNAILS_ name, because webdav and the generator have to agree on it.
2026-10-20 18:08:34 +02:00
Dominik Schmidt 575a17967f fix(thumbnails): decode one frame of a png asked for as a still
An animated png carried every frame through imaging.Decode, which only the gif path guarded: a 465 KB file with 200 full-canvas frames allocated 226 MB, now 10 MB. png.Decode reads IDAT and ignores an animation's fdAT chunks.
2026-10-20 17:58:01 +02:00
Dominik Schmidt 951917e87f test(thumbnails): hand every limit to imagor in the parity suite
imagor's own defaults are looser, so a difference could pass as agreement. With the frame limit set it truncates the animation where the built-in refuses the file, which the override now records.
2026-10-20 17:45:45 +02:00
Dominik Schmidt 0070f031fa fix(thumbnails): give the thumbnail size its own ceiling
The source ceiling had to stand in for the box a request may ask for, two limits with different reasons under one name. webdav decides the preview size and never asks for more than its largest resolution; this is the net for everything else.
2026-10-20 17:37:58 +02:00
Dominik Schmidt 4e85772b47 fix(webdav): stop the resolution ladder at 2048
The largest rung is the largest box a generator is asked for, and fill and stretch enlarge a small source to fill it, so the rungs above 2048 let a tiny image cost whatever 8K costs. Web asks for 1200 at most.
2026-10-20 16:56:28 +02:00
Dominik Schmidt 9b9b5ab6a2 Revert "fix(thumbnails): cap the box a request may ask for at 2048 per axis"
This reverts commit 89b5bdf964.
2026-10-20 16:55:57 +02:00
Dominik Schmidt 89b5bdf964 fix(thumbnails): cap the box a request may ask for at 2048 per axis
Only the source was bounded, while fill and stretch upscale, so a tiny image asked for at 7680 allocated accordingly. The pixel budget for animations and webdav's ladder above this are a follow-up.
2026-10-20 16:06:30 +02:00
Dominik Schmidt 97e8031935 fix(thumbnails): take a slot once the image is in, not before
The slots bound the decoding and the resizing, so a slow upload no longer occupies one while nothing is being computed.
2026-10-20 16:05:34 +02:00
Dominik Schmidt e871ebb64a fix(thumbnails): read the image part without the multipart form
The handler holds the whole image in memory to decode it; the form kept a second copy, on disk for anything past its memory limit, for no gain.
2026-10-20 16:03:42 +02:00
Dominik Schmidt 41b7160f3a fix(webdav): the source type belongs in the cache key
The same bytes uploaded under two types are not the same thumbnail: the type picks the extractor, and with Tika in front what it finds depends on it.
2026-10-20 16:03:06 +02:00
Dominik Schmidt 4f79fdf9bb fix(webdav): hash the checksum that becomes the cache key
The checksum is not this service's to trust, an OCM share takes it from a remote PROPFIND, and it ends up as a path on disk and as an S3 object key.
2026-10-20 16:02:39 +02:00
Dominik Schmidt ab29d4848f fix(webdav): keep the deprecated cache root pointing at its files directory
THUMBNAILS_FILESYSTEMSTORAGE_ROOT named the directory the old service kept files/ in, so reading it as the cache directory moved the cache one level up and left the existing thumbnails behind.
2026-10-20 16:01:52 +02:00
Dominik Schmidt 56d96d2df8 fix(webdav): say it when the thumbnail cache fails to answer
Only a miss is silent now; every other error from the cache is logged instead of disappearing behind a regenerated thumbnail.
2026-10-20 14:59:08 +02:00
Dominik Schmidt 260d6f0bbd fix(webdav): a missing s3 bucket is not a cache miss
Matching any 404 let a typo in the bucket name read as a miss on every lookup; only NoSuchKey, and a 404 that carries no code at all, are misses now.
2026-10-20 14:58:46 +02:00
Dominik Schmidt 3ff5a34ceb fix(thumbnails): decode one frame of a gif asked for as a still
imaging.Decode is DecodeAll plus SingleFrame, so a gif renamed to .png held every frame in memory; the frame limit only guards the gif output path.
2026-10-20 14:58:31 +02:00
Dominik Schmidt fa73366ff0 fix(webdav): read the generator's status before the writer's error
A 429 or 413 is answered without reading the body, which breaks the write; the broken pipe used to mask the status. A 413 now reads as too large, not as a server fault.
2026-10-20 14:58:09 +02:00
Florian Schade 208f1e8b33 Merge pull request #3760 from fschade/fix-frontend-content-search-capability
fix(frontend): report content search only when full-text search is enabled
2026-10-20 13:03:01 +02:00
Alex Ababii 3d0706ad4f Merge pull request #3758 from maki5/feat/guestlinks_space_share
guestlinks: auth-guest service is handling space shared events
2026-10-20 10:20:34 +02:00
Alex Ababii 821514d010 feat(guestauth): trigger ci 2026-10-20 09:17:37 +02:00
Andre Duffeck 3ad81e4d99 Merge pull request #3719 from opencloud-eu/feat/spaces-default-quota-capability
feat: expose the default project space quota in the capabilities
2026-10-20 09:11:31 +02:00
opencloudeu 9cc0dd6446 [tx] updated from transifex 2026-10-19 23:17:30 +00:00
Michael Barz a9a694cd74 Merge pull request #3738 from opencloud-eu/docs-unified-roles
docs: update unified Roles
2026-10-19 21:18:19 +02:00
Viktor Scharf d0958f04c2 tests: check that a guest can only access the shared resource (#3752)
Make sure the guest session gives no access outside of the shared folder.
2026-10-19 20:55:29 +02:00
Alexander Ackermann 79a4499ca8 refactor: read the default quota only from OC_SPACES_DEFAULT_QUOTA and deprecate GRAPH_SPACES_DEFAULT_QUOTA 2026-10-19 16:13:42 +02:00
Alexander Ackermann 6adeacf8ce feat: expose the default project space quota in the capabilities 2026-10-19 16:13:42 +02:00
Alex Ababii 80d64ea92b feat(guestauth): remove tests from expected failures 2026-10-19 15:48:15 +02:00
Florian Schade 54f33437ff fix(frontend): report content search only when full-text search is enabled 2026-10-19 15:18:57 +02:00
Dominik Schmidt 89e2f42d7c refactor(webdav): ask ForType for options, not for an any map 2026-10-19 15:16:06 +02:00
Andre Duffeck 38262408d6 Merge pull request #3755 from aduffeck/guest-archive-download
Make archiver work with guest link auth
2026-10-19 15:04:16 +02:00
Dominik Schmidt ee4465f500 fix(webdav): stop refusing a type mapping on a guess about the generator 2026-10-19 14:57:36 +02:00
Dominik Schmidt 48f9990a41 fix(webdav): ask the generator for the smart crop
A cropping resize now carries imagor's smart segment, which is how the libvips
build and a real imagor keep the region that carries the image, the way main
cropped before the generator moved out. A build without libvips answers the
same request with a centre crop, and the parity suite records that.
2026-10-19 14:57:36 +02:00
Dominik Schmidt c980083938 docs: say less in the comments, and name what matchOperation returns 2026-10-19 14:57:36 +02:00
Dominik Schmidt 999ad6fb7c fix: answer the review from @orgaralf
Both builds and imagor now crop the same region, a gif is bounded by its
declared frames, the posted body by THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE and an
image extracted from a container by the configured input size. The s3 cache
reads a miss where minio reports it.

The push endpoint's HTTP behaviour is asserted in the parity suite now, where
imagor answers the same request, so 41 duplicated service specs are gone and
the 32 that remain are what a non-default config or a helper decides.
2026-10-19 14:57:36 +02:00
Dominik Schmidt a6fcc8dc58 docs: the thumbnail settings are only checked with previews enabled
Two readme sentences promised a startup refusal without saying that nothing reads these settings when OC_DISABLE_PREVIEWS is set, so a typo surfaces when previews come back on.
2026-10-19 14:57:36 +02:00
Dominik Schmidt 4da8971ca7 docs: say what the code does, in the places that still described something else
The aspect-ignored header blamed a processor for a decision the free axis can make too. fit-in does not letterbox, it answers smaller than the box. The s3 cache checks bucket, region and credentials, not the endpoint. A mapping onto a type the generator cannot write is refused at startup instead of quietly becoming a JPEG. And a processor name nobody knows resolves like none, which three comments and a readme line still denied.
2026-10-19 14:57:35 +02:00
Dominik Schmidt e981a06f87 refactor(thumbnails): one table for the output formats, one fit-in
The four writable formats were a whitelist in the filter parser and a second list of content types in the encode step; they are one map now, so a format nobody writes stays a 400 and one without an encoder in this build stays a 406. The fit-in shape existed twice since the gif loop started rounding like vips, it lives in box.go now. And the push routes are back inline: mountPushRoutes only existed so a test mux could not drift from them, and the specs go through the real NewService instead.
2026-10-19 14:57:35 +02:00
Dominik Schmidt 1da9fa8013 fix: answer the third review round
With previews off a thumbnail path answered 405, because the REPORT patterns match the same paths and the GET routes were left out; the routes stay now and the shared parse step answers 404, which is what the setting promises. The deprecated cache directory is read again: its default no longer sits in the config struct, where it made the fallback unreachable. A processor nobody knows is treated like none, in the parser too. A comma-joined resolutions entry in yaml keeps working. Plus the comments and the readme line that described something else than the code does.
2026-10-19 14:57:35 +02:00
Dominik Schmidt c5c5ec2e2c refactor(webdav): own the list of types a preview is announced for
The thumbnails service kept a single map of supported mime types that nothing in that service used any more, only webdav read it, and the comment still claimed reva reads it there. It is webdav's announcement, so DefaultSourceTypes lives next to SourceTypes now, the leftover package is gone, and no webdav file imports the thumbnails service any longer.
2026-10-19 14:57:35 +02:00
Dominik Schmidt 67856fdf6d fix: the small things the review left over
A processor that needs the whole box is not a cropping one, so targetsExactBox says what it decides. An output format without an encoder answers 406 like every other thing this build cannot write. The configured defaults are no longer seeded twice, the constructors merge them anyway, like they do for the source types. And webp needs no build tag: both builds read it, the pure Go one answers the JPEG the mapping asks for, which the parity suite pins.
2026-10-19 14:57:35 +02:00
Dominik Schmidt 18c5d726db refactor(thumbnails): let the backend answer for the image it decodes
The dimension guard and the input-format detection used Go's decoder registry in both builds, so with libvips they were silently skipped for everything Go cannot read, and a webp source came back as a JPEG where imagor keeps it a webp. Each build now reads the header with the library that will decode the image, the guard runs on that, and the animated gif path is shared instead of living in both encoders. The hook names stay per build, the function variables are typed per build, so the any and its seven type assertions are gone.
2026-10-19 14:57:35 +02:00
Dominik Schmidt 3572410fc4 fix: answer the review, and read imagor's path the way imagor does
The push endpoint takes an empty filters segment, ignores an image key behind the box and computes a side given as 0 from the other one, all measured against both imagors and pinned in the parity suite. Plus the review leftovers: no em dashes, the request test on ginkgo, comments that contradicted the code, one stat for Head and generate, one thumbnail handler, the gif fit-in rounding of vips, and the new env names last so they win.
2026-10-19 14:57:35 +02:00
Dominik Schmidt 85b7cccc02 docs: fix what the thumbnail readmes get wrong
The a and processor defaults, that every named processor overrules a, the shared OC_THUMBNAIL_* names, the gif output type, the ladder making the response a different size, the empty filters segment that answers 404, and 406 instead of 400 for a format the build cannot write.
2026-10-19 14:57:35 +02:00