Commit Graph
24710 Commits
Author SHA1 Message Date
Viktor Scharf c77ba9ce0f test: commit the composer.lock files of the PHP test dependencies (#4198)
* test: commit the composer.lock files of the PHP test dependencies

The PHP dependencies of the acceptance tests were installed without lock
files: .gitignore excluded them, and the Makefile deleted a lock file
whenever its composer.json changed. So every run resolved the newest
versions allowed by the composer.json files, and the tests depended on
whatever was released upstream that day.

Commit the lock files of the root, vendor-bin/behat and
vendor-bin/opencloud-codestyle, and install exactly what they pin.
Before installing, `composer validate` fails if a composer.json was
changed without updating its lock file.

The vendor-bin namespaces don't inherit config.platform of the root
composer.json, so they now set it themselves, to PHP 8.4.1 like the CI
images (PHPUnit 13.3 needs at least 8.4.1). The lock files no longer
depend on the PHP version of whoever updates them.

Dependabot now updates the lock files weekly.

Fixes #4190

Assisted-by: Claude Code:claude-opus-5-5

* test: don't chmod the composer.lock files after the docker test run

The lock files are committed now and the container no longer creates
them, so there is no need to make them writable for everyone. The
chmod 777 set their executable bit, which git reports as a mode change
of the committed files.

Assisted-by: Claude Code:claude-opus-5-5
2026-12-04 08:32:24 +01:00
opencloudeu 208b772beb [tx] updated from transifex 2026-12-03 23:16:30 +00:00
Dominik Schmidt 46b508446f Merge pull request #3298 from opencloud-eu/feat/search-sort-properties
feat(search): sort results via sortProperties / order_by
2026-12-03 20:21:53 +01:00
Dominik Schmidt d651d72514 Merge pull request #4213 from opencloud-eu/fix/search-service-test-build
fix(search): repair the unit test build on main
2026-12-03 19:15:19 +01:00
Dominik Schmidt 7c7517e685 fix(search): adapt the tika outage tests to the two-value NewService 2026-12-03 18:52:30 +01:00
Alex Ababii 5e2328c68a Merge pull request #4195 from maki5/fix/stale_search_index
fix(search): retry indexing a space with a delay when tika is unreachable
2026-12-03 18:11:18 +01:00
Alex Ababii 380783baff fix(search): added comment for TrashItem event processing 2026-12-03 17:33:47 +01:00
Dominik Schmidt e63b1a2008 test(search): hold both engines to the same order in the parity suite
A Sorting section runs every case against bleve and OpenSearch and compares the order of the matches: size, modification time, track length, year with a second key, the date a photo was taken, a file without the sort value, names in code point order, and the fields that are not sortable. Its rows keep the order of the answer in the README, and the fixtures list the values that are sorted by.
2026-12-03 17:24:17 +01:00
Dominik Schmidt 875f82bdcc feat(search): native order_by sorting in the opensearch backend
Name is analyzed (lowercaseKeyword) and therefore a text field, which
OpenSearch refuses to sort on without fielddata; enable it in the index
template. The keyword tokenizer emits one term per document, so the
fielddata cache stays small. The schema version has not shipped yet, so
no reindex is needed.

(cherry picked from commit f1d0e7b773b170b119dbd59fa176d656237bed96)
2026-12-03 17:23:01 +01:00
Dominik Schmidt a36f74edef feat(search): native order_by sorting in the bleve backend
(cherry picked from commit 66a0755ad69a6a1af07e0b8335b08d63793777ce)
2026-12-03 17:23:01 +01:00
Dominik Schmidt 01bca083a6 feat(search): merge per-space results in order_by order
The fan-out passes order_by through to each engine query; the merge
re-sorts the combined matches with CompareMatches and keeps the score
as tiebreaker (and as the sole criterion when no order_by is given).

(cherry picked from commit 66af40fc34fd9daffc028ab06f83f7ade8a360d1)
2026-12-03 17:23:01 +01:00
Dominik Schmidt c867efb2b7 feat(search): allow sorting by any scalar hit field
Sortable is every field that is indexed as a scalar and carried on the
match entity: name, size, lastModifiedDateTime, mimeType and the scalar
facet fields (photo.*, audio.*, image.*, location.*, ...). Both sets
are derived by reflection, so new facet fields become sortable
automatically. Multivalued fields (tags), bare facets and internal
index fields are rejected with invalidRequest at the graph layer.
CompareMatches provides the merge comparator for the service layer.

(cherry picked from commit bd32795194cf3945e8416ede496a147ce8d6cb5c)
2026-12-03 17:23:01 +01:00
Dominik Schmidt 7982c06794 feat(graph): accept sortProperties on search requests
Validated against the sortable-field whitelist (name, size,
lastModifiedDateTime, photo.takenDateTime) and forwarded to the search
service as order_by. Also fixes the stub search service's IndexSpace
signature (streaming response) so the suite builds again.

(cherry picked from commit 9aa6a3492de3468da7a8480a3b9ef5748cee1f5d)
(cherry picked from commit 35a6cad8ea6a7890bdc0bc98c7ac97bdcbf477cc)
2026-12-03 17:23:01 +01:00
Dominik Schmidt 01e4c21b29 feat(search): add sortProperties plumbing (libregraph model, proto order_by)
(cherry picked from commit 1b748fb757e2dde5b3cd1beaa543be4266342590)
2026-12-03 17:23:01 +01:00
Dominik Schmidt 2e8fc06b50 Merge pull request #4206 from opencloud-eu/feat/search-geohash-filter-token
feat(search): geohash cells as aggregation filter tokens
2026-12-03 16:19:45 +00:00
Dominik Schmidt 9c34cea0d3 test(search): cover the cell filter parsing and the OpenSearch cell query 2026-12-03 16:35:54 +01:00
Andre Duffeck ecb9fbde41 Merge pull request #4154 from opencloud-eu/fix/tags-listing-aggregation
fix(graph): list tags through a terms aggregation
2026-12-03 16:18:26 +01:00
Dominik Schmidt ac41685a58 docs(search): name Lucene as the source of the cell edge rule 2026-12-03 16:11:19 +01:00
Dominik Schmidt 793cf6ad3a test(search): cover the cell edges at 0, 90 and 180 2026-12-03 16:11:19 +01:00
Dominik Schmidt c09c02e2fb feat(search): geohash cells as aggregation filter tokens 2026-12-03 16:11:19 +01:00
Dominik Schmidt 9fbe650e1a Merge pull request #3272 from opencloud-eu/feat/search-geohash-aggregation
feat(search): geohash aggregation
2026-12-03 16:11:13 +01:00
Alex Ababii db6f2e37dc fix(search): bump reva 2026-12-03 15:56:50 +01:00
Alex 19d64d9d46 fix(devtools): allow Collabora in connect-src of the CSP (#4202)
Assisted-by: Claude Code:claude-opus-5-5
2026-12-03 14:18:09 +00:00
Dominik Schmidt 19e332f579 fix(graph): answer geohash cells without a filter token 2026-12-03 14:45:45 +01:00
Dominik Schmidt b928dc8342 feat(search): geohash aggregation
A geohash_grid aggregation over a geopoint field, requested with
@libre.graph.geohashDefinition {precision}. OpenSearch answers it with
geohash_grid on the geopoint field, bleve folds the doc values of the
geohash sibling field. size limits the buckets to the top cells by count.
2026-12-03 14:45:45 +01:00
Dominik Schmidt 921bbb1450 Merge pull request #4201 from opencloud-eu/fix/bleve-geo-verify-test-build
test(search): build the bleve geo test against the new backend signature
2026-12-03 14:15:36 +01:00
Alex Ababii f5252449c5 Merge pull request #4115 from maki5/fix/activitylog_nats_ttl
fix(activitylog): expire old activities with the configured store TTL
2026-12-03 14:01:36 +01:00
Dominik Schmidt 318db96f1d test(search): build the bleve geo test against the new backend signature 2026-12-03 13:56:06 +01:00
Dominik Schmidt 314287ab2a Merge pull request #3519 from opencloud-eu/feat/search-bleve-geohash-sibling
feat(search): geohash support in bleve
2026-12-03 13:19:58 +01:00
Alex Ababii fda7232556 fix(activitylog): fall back to the version key when the stream info cannot be read 2026-12-03 13:01:45 +01:00
Florian Schade f999523c49 Merge pull request #4137 from opencloud-eu/fix/mention-share-jail-id
fix(graph): resolve share jail ids in activity notifications
2026-12-03 11:30:21 +01:00
opencloudeu 3f1d8b01e7 [tx] updated from transifex 2026-12-02 23:16:37 +00:00
Dominik Schmidt 12a63b1c5b Merge pull request #4189 from opencloud-eu/feat/tika-thumbnail-preset
feat(webdav): make the Tika thumbnail preset configurable
2026-12-02 17:53:18 +01:00
Alex Ababii b639ac7fa9 feat(search): make the retry delay and the number of runs for unreachable tika configurable 2026-12-02 17:36:23 +01:00
Dominik Schmidt a059ae8179 test(webdav): drop the newTika helper again
It only saved the preset argument, the other three still vary per call,
and the calls changed anyway, so the diff got larger rather than smaller.
2026-12-02 16:47:28 +01:00
Dominik Schmidt 0ac1ea8e30 fix(webdav): trim the Tika thumbnail preset once in Sanitize
The check trimmed the preset but the URL took it untrimmed, so " thumbnail"
started fine and then answered 404 for /unpack/preset/%20thumbnail. Sanitize
trims it now and Validate only compares against "". The tests build their
Tika through a helper that sets the default preset.
2026-12-02 16:43:53 +01:00
Dominik Schmidt 17a9874be2 feat(webdav): make the Tika thumbnail preset configurable
OC_TIKA_THUMBNAIL_PRESET (WEBDAV_TIKA_THUMBNAIL_PRESET) names the catalog
preset webdav unpacks thumbnails with, "thumbnail" by default. A preset of
your own has to bring the same filter, only the raster images Tika marks as
THUMBNAIL or RENDERING, since webdav takes the first image in the answer.
An empty preset fails at startup.

Changing the preset needs the thumbnail cache emptied, as a Tika upgrade
does.
2026-12-02 16:22:19 +01:00
Alex Ababii 948e97d6d5 fix(search): nack an indexing event only when tika is unreachable 2026-12-02 15:45:56 +01:00
Alex Ababii 1ff61a5369 fix(search): drop the unused tripped flag of the unreachable extractions 2026-12-02 15:14:10 +01:00
Dominik Schmidt e6acfb721d Merge pull request #3332 from opencloud-eu/feat/thumbnails-raw-embedded-preview
feat(webdav): extract thumbnails through Tika
2026-12-02 12:13:30 +01:00
Alex Ababii 38ccf9869a fix(search): redeliver events with a delay and give up after 5 runs when tika is unreachable
Assisted-by: opencode:claude-sonnet-5.5
2026-12-02 12:02:28 +01:00
Ralf Haferkamp 3f25437ae5 Merge pull request #3477 from zerox80/codex/oidc-session-logout
fix(proxy): reject tokens covered by a backchannel logout
2026-12-02 09:21:54 +01:00
Alex Ababii 61ea17c14a fix(search): on processing events debouncer checks for tika error and if any then not acknowledging the event 2026-12-02 09:15:12 +01:00
opencloudeu 10da3b6701 [tx] updated from transifex 2026-12-01 23:16:26 +00:00
Alex 25b7c7cc88 fix(collaboration): use the edit action for Collabora in read/write mode (#4178) 2026-12-01 16:52:03 +01:00
dependabot[bot] 4c3278e5e3 build(deps): bump github.com/spf13/pflag from 1.0.10 to 1.1.0
Bumps [github.com/spf13/pflag](https://github.com/spf13/pflag) from 1.0.10 to 1.1.0.
- [Release notes](https://github.com/spf13/pflag/releases)
- [Commits](https://github.com/spf13/pflag/compare/v1.0.10...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/pflag
  dependency-version: 1.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-12-01 15:56:17 +01:00
dependabot[bot] 9023b5893b build(deps): bump golang.org/x/oauth2 from 0.37.0 to 0.38.0
Bumps [golang.org/x/oauth2](https://github.com/golang/oauth2) from 0.37.0 to 0.38.0.
- [Commits](https://github.com/golang/oauth2/compare/v0.37.0...v0.38.0)

---
updated-dependencies:
- dependency-name: golang.org/x/oauth2
  dependency-version: 0.38.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-12-01 15:55:19 +01:00
Alex Ababii d0b0da9d66 Merge pull request #3795 from maki5/feat/guestlinks_pin_flag
feat(authguest): respond with pin true/false in renewal endpoint
2026-12-01 14:51:36 +01:00
Dominik Schmidt 492412ca56 Merge pull request #3835 from opencloud-eu/refactor/search-engine-ast
refactor(search): hand the engines the parsed query
2026-12-01 14:48:06 +01:00
Viktor Scharf 0d42e7228f test: get the audit records from the ocwrapper (#4174)
The audit log tests read the audit records from a copy of the server
output, which the CI wrote with "| tee" to a file given to the tests in
AUDIT_RECORDS_FILE. The ocwrapper reads the server output anyway: it now
keeps the audit records, and returns them on GET /audit (DELETE /audit
clears them). The tests clear them when a scenario starts and fetch them
from there, so they need no extra setup in the CI or locally.

Assisted-by: Claude Code:claude-opus-5-5
2026-12-01 14:46:25 +01:00