Shares are synced (auto-accepted) asynchronously by the sharing service,
so the scenarios waited for it with "user ... has a share ... synced"
after each share. Where they didn't, the following steps could race with
it, e.g. a hide sent before the auto-accept was overwritten by it.
The Given steps that create user and group shares now wait until the
share is synced for each user it was sent to (the members of a group),
unless the user has auto-sync turned off. The "has a share ... synced"
steps that only followed such a Given step are removed, and the line
references of the expected failures are updated.
Assisted-by: Claude Code:claude-opus-5-5
* 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.
A text restriction on a numeric field reached the engines as is. bleve found nothing for size:>100 or size:50..500, OpenSearch failed the search with a number format exception. size=50 only matched on OpenSearch.
Both engines now read the value of such a restriction as a number and match it as a whole, with : and with =. Anything that is no number matches nothing, and so does text on a date field. size:>100 is not KQL, the range form is size>100; old iOS clients still send the colon form.
The field type comes from one table of all fields, built from the walk the mapping validation uses. It replaces the separate walk for numeric fields, which left out the parts of a location: location.altitude>1000 now matches, the parts are indexed as numbers next to the geopoint.
The parity suite covers >=, <=, combined ranges, number equality, the colon forms and the location parts.
The proxy redirected requests forwarded as plain HTTP to https:// plus
the Host header of the request. The client controls that header, so the
redirect could send users to any other site (open redirect).
The redirect now uses the host of OC_URL, the URL where OpenCloud is
reachable for users, and keeps the path and query of the request as the
client escaped them. If OC_URL can't be parsed or has no host, requests
are passed on without a redirect, and the proxy logs why at startup.
Assisted-by: Claude Code:claude-opus-5-5