* Merge pull request #45 from opencloud-eu/backports/stable-7.2-42
[stable-7.2] fix(web): merge copies of the theme sources so themeDefaults is never…
* Merge pull request #47 from opencloud-eu/backports/stable-7.2-43
[stable-7.2] fix(search): handle missing operands in the bleve compiler
* Merge pull request #49 from opencloud-eu/fix/stable-7.2/search-highlight-escaping
[stable-7.2] fix(search): escape file content in OpenSearch highlights
* Bump version
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)
A single transient nats: timeout on event publish was fatal to the whole
single-binary server, with no retry despite the service already having
backoff machinery for step failures. Now retries with the same exponential
backoff, capped at half the ack wait so the source event isn't redelivered
to another worker mid-retry. Also stops acking the source event when
publish ultimately fails, so the upload resumes after restart instead of
staying orphaned, and no longer exits during graceful shutdown.
(cherry picked from commit 654f0e8e20)
Co-authored-by: junkerderprovinz <jdp@braethoria.com>
This fixes error logs like
RR error when calling Createhome error="gateway: grpc failed with code CODE_INVALID_ARGUMENT" line=github.com/opencloud-eu/opencloud/services/proxy/pkg/middleware/create_home.go:87 service=proxy
e.g. during internal requests to the data provider.
(cherry picked from commit 1ea634e6e3)
Backports: https://github.com/opencloud-eu/opencloud/pull/2978
That should help to keep up with the stream of messages and prevent
services from being flagged as slow consumers.
(cherry picked from commit 06365d9739)
Backports: #2974
GetRoleDefinition/s does now handle l10n correctly. Previsouly it just
returned the non-localized string. What made things worse was that
ListPermissions() mutated global list of available roles and replaced
some strings with translated values depending on the `accept-language`
header. Which resulted in GetRoleDefinition returning results in mixed
localization depending on who/what called ListPermissions before.
Fixes: #2800
(cherry picked from commit d163c8ed29)
Backports: https://github.com/opencloud-eu/opencloud/pull/2935
Allow a "permission denied error" from reva to bubble up to the client.
Reva was fixed to return "permission denied" only when the space to be
delete can actually be listed by the user. Other wise it will return
"not found". See reva commit 1bf72cb76394671f373e87f15f23f978cf41ab08.
So when a user with the 'can manage' role tries to purge an already
disabled space it will now get "Forbidden" status instead of a "Not
found".
Also fixes the expected status codes in the tests.
(cherry picked from commit 99d80f30a9)