The type decides which parser reads the file, so a raw photo that Tika only detected as a plain tiff is parsed as a tiff and its embedded preview is never found. No shipped format needs the hint, which is why the knob reads like dead code and has to say that it is not.
The catch-all was hidden in NewTika, so neither the yaml nor the env documentation showed it. It is a plain default now, like the CORS origins, and an empty list means what it says: nothing goes to Tika, and the server behind OC_TIKA_URL stays the search service's.
Both answer with the same image for the same file, only the package differs, and a 4.1.x server has no preview for erf, orf and rw2. The 404 now names both ways to activate the preset.
What an extractor makes of a file does not depend on the size that was asked
for, so it is kept under one key per file and read before the file is even
downloaded. An empty entry says the file carries nothing, which keeps the
next size from asking Tika again; a failed extraction is not remembered. The
file cache now replaces what a key holds, as the other two backends already
did, because an entry whose value can change has to be replaceable.
The cache key is derived from configuration again: a thumbnail is written in
the type the file's own type maps to, so the answer no longer depends on what
Tika hands back and needs no placeholder in the key.
Which types Tika gets is decided in one place now. An image type goes to Tika
only when a deployment names it, because the generator behind the URL may read
it itself, which also lets a raw photo reach Tika at all.
PUT /unpack/preset/thumbnail answers 404 unless the thumbnail catalog preset is
active, and the thumbnailer then finds no thumbnail for any document.
TIKA_PRESETS=thumbnail activates it and needs Tika 4.2.0, so the acceptance
stack and the example deployment follow the snapshot image until the release is
out. The deployment also reads the shared OC_TIKA_URL so the thumbnailer uses
the Tika that is already there.
Tika merged the thumbnail catalog preset and ThumbnailUnpackSelector
(TIKA-4856): PUT /unpack/preset/thumbnail returns exactly the one raster
image a client would show for the document, a stored thumbnail, the
rendering of a metafile thumbnail, or the rendered first page. The
client-side selection over /unpack/all (embedded-resource-type marks,
metafile renderings, id-path matching) moves to the server; the preset
zip carries one image without metadata sidecars, so the entry's
extension names the type and the bytes break the tie. The preset has to
be active, so this needs a Tika 4.2.0 or newer started with
TIKA_PRESETS=thumbnail, and a 404 says so.
* test(guest-link): check share types of resources shared with a guest
* test(guest-link): rename the share types scenarios as suggested in the review
Assisted-by: Claude Code:claude-opus-5-5
* tests: remove unused tags from the acceptance tests
Remove the tags that neither the CI of opencloud nor the one of reva
filters on, and that no hook uses: @smokeTest, @skipOnStorage:ceph,
@skipOnStorage:scality, @skipOnOpencloud-decomposeds3-Storage (the CI only
runs posix and decomposed), @sqliteDB, @notification and @skip-local-run.
A tag line left empty becomes an empty line, so that the line numbers of
the scenarios, which the expected failures of opencloud and reva refer to,
stay the same.
Also fix the typo @@skipOnReva, and write the issue tags the same way:
@issues-<n> becomes @issue-<n>, @web-issue-<n> becomes @issue-web-<n>.
Assisted-by: Claude Code:claude-opus-5-5
* tests: run the search properties scenarios as expected failures
The two scenarios that check the properties of search results were
skipped, since the search REPORT returns an empty d:getetag (#3501) and
the step retried the whole check for 20 seconds, which made them too slow
as expected failures.
- retry the search only until the entry is indexed, then check its
properties once: once found, the entry is complete, so a wrong value
fails right away
- check what the search returns: d:getcontentlength for files, the real
size of 12 bytes, a file id of the form <uuid>$<uuid>!<uuid>, anchored
patterns, and no oc:owner-id and oc:owner-display-name, which the
search response never contains
- list them as expected failures of #3501 instead of skipping them
Without the d:getetag check, both scenarios pass.
Assisted-by: Claude Code:claude-opus-5-5
* lint fix
Link permissions now carry their creator as invitation.invitedBy.user,
like user and group shares do.
Fixes#4148
Assisted-by: Claude Code:claude-opus-5-5
The local dev setup of web switched from inbucket to mailpit
(opencloud-eu/web#4059). Use mailpit for the acceptance tests too, in the
CI, the docker setup and the README, so that one mail catcher is used
everywhere.
The tests now read and delete the emails through the API of mailpit
(port 8025), and the server sends them via SMTP to port 1025. mailpit's
search also matches parts of addresses, so EmailHelper narrows the results
down to the mailbox (the local part of the address), as inbucket did.
Assisted-by: Claude Code:claude-opus-5-5
target and path semantics, the public link as actor, roles and recipients in share records, one login per OIDC session, the link access dedupe, the output ordering and why strict comes later.
frontend, sharing and storage-users pass the audit settings and the service version to the reva audit emitters. `best_effort` is the only mode for now, any other value stops the service. The frontend keeps the events endpoint the archiver needs for its records.
The proxy builds the audit request context: client address (PROXY_CLIENT_IP_HEADER behind trusted proxies), user agent, auth method, session and OIDC client. A value a client sent in X-Audit-Context is dropped.
A login is recorded once per OIDC session and client, not per access token. Public link access is recorded with the client address, failed attempts every time.
The audit service reads the JetStream stream `audit` and writes every record as one line of JSON to stdout and, if configured, to an OTLP endpoint, with the emitting service in the resource. A record is acknowledged only when all outputs have it, so an output outage keeps the records in the stream, in order and without duplicates. The old audit log stays available with AUDIT_LEGACY_ENABLED.
Adds the OpenTelemetry log packages for the OTLP output.
* docs: label reva bumps by the changes they bring in
Assisted-by: Claude Code:claude-opus-5-5
* docs: label web bumps by the changes they bring in
Assisted-by: Claude Code:claude-opus-5-5
---------
Co-authored-by: v.scharf <v.scharf@opencloud.eu>
Before each request with a bearer token, the test helper sent a
GET /graph/v1.0/me to check that the cached token is still valid, which
doubled the number of requests. Now the request is sent with the cached
token right away, and on a 401 the token is renewed and the request sent
once more.
Also drop the retry while the share manager is migrating, which is no
longer needed.
Helpers and Given/Then steps no longer store their response, so a Then
step can't pass on a response left over from an earlier step:
- favorite helpers, used by Given steps too, return the response
- the preview Given/Then steps and the space entry Then steps pass their
response explicitly instead of storing it
- the rename by file id and set property steps are When steps
- the wopi, trashbin, colon path and revisions cleanup helpers return the
response to their When steps
GetUserDrive only resolved the personal drive when the {user-id} path
segment was the user's opaque id; a user name (which GetUser accepts)
returned 404. Resolve the segment through the identity backend first
(skipping the /me/drive self case), so both an id and a name work. Also
add GetUserDrive to the Service interface, consistent with the other
user handlers.