Commit Graph
24551 Commits
Author SHA1 Message Date
Viktor Scharf af425afb3b [full-ci] chore: bump reva to 2.51.0 (#3657)
* chore: bump reva to 2.51.0

* replaceversion placeholder
2026-10-05 17:08:52 +02:00
Viktor Scharf ef10888431 [full-ci] chore: bump web to v8.1.0 (#3656)
* chore: bump web to v8.1.0

* trigger ci
2026-10-05 17:00:07 +02:00
Jörn Friedrich Dreyer 3215739190 Merge pull request #3593 from opencloud-eu/port-11707
Add delete stale nodes command
2026-10-05 15:44:59 +02:00
micbar 112b2264c0 feat: add more cli options to unified roles 2026-10-05 15:33:04 +02:00
Andre Duffeck 8f2adf2138 Reindex disabled spaces once they get enabled again (#3579)
Spaces that are disabled while reindexing are skipped. They are now
remembered in a NATS KV bucket (including whether a forced rescan was
requested) and reindexed when the SpaceEnabled event comes in. The
entry is removed when the space gets deleted.
2026-10-05 14:28:58 +02:00
Jörn Friedrich Dreyer 5ff51c1856 docs(storage-users): document the delete-stale-nodes command
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-10-05 14:12:21 +02:00
Jörn Friedrich Dreyer fabf82850e fix(storage-users): use user.oc. metadata prefix for stale node detection
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-10-05 14:12:21 +02:00
Jörn Friedrich Dreyer ad6ff3ee86 fix(storage-users): add delete-stale-nodes command
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-10-05 14:12:21 +02:00
Jörn Friedrich Dreyer 2a05417d7a chore: bump reva to 2.51.0 2026-10-05 14:12:21 +02:00
Michael Barzandv.scharf b955c7c4f0 feat: add new editor roles (#3637)
* feat: add new editor roles

* add tests for additional roles

* fix: disable new roles in config

* adjust tests

* fix listGrantsShareRole test

---------

Co-authored-by: v.scharf <v.scharf@opencloud.eu>
2026-10-05 14:07:30 +02:00
José M. Requena Plens 283bbe4ee3 docs(search): extend the --insecure note to 8.1.x [docs-only]
8.1.0 ships before this fix, so it still needs the flag too.
2026-10-04 23:34:06 +02:00
José M. Requena Plens 5c39a40f6b refactor(search): restore the endpointFlag name
The Flag suffix is the convention for the command's flag variables, not only for booleans.
2026-10-04 23:34:06 +02:00
José M. Requena Plens 6a83068be2 docs(search): explain which address mode on verifies [docs-only]
With OC_GRPC_CLIENT_TLS_MODE=on the certificate is checked against the
dialed address, which is now SEARCH_GRPC_ADDR by default. A bind address
such as 0.0.0.0:9220 then fails verification unless --endpoint names a
host the certificate is valid for.
2026-10-04 23:34:06 +02:00
José M. Requena Plens 6211e31b5d refactor(search): rename the dialed endpoint and group the reva import
After the fallback the variable holds the configured address rather
than the flag, and the reva import belongs with the third-party ones,
as in server.go. The flag help also says that with mode on the server
certificate must be valid for that address.
2026-10-04 23:34:06 +02:00
José M. Requena Plens d071dc78ed test(search): pin the TLS failure and declare the plaintext server
The insecure-mode spec only asserted an error, so against main it
passed on a refused connection to the hardcoded endpoint. Match the
TLS handshake error instead. Pass insecure credentials to the test
server explicitly, which is what it already did, so the static
analysis no longer reports a server without credentials.
2026-10-04 23:34:06 +02:00
José M. Requena Plens f6bd436428 docs(search): cover every 8.x release in the v7 migration [docs-only]
The section was titled v7.x.x to v8.0.0 and told everyone to pass
--insecure, which only 8.0.0 and 8.0.1 need. Title it v7.x.x to v8.x.x,
drop the flag from the commands and say in an IMPORTANT block which
releases still need it.
2026-10-04 23:34:06 +02:00
José M. Requena Plens 828f7fe8f1 test(search): rewrite the index command test with Ginkgo
Run the command against a search service without TLS only: what the
command decides is whether to turn TLS off, how the mode maps and which
endpoint it dials. What pool.NewConn does with each mode belongs to
reva. Also cover the endpoint default.
2026-10-04 23:34:06 +02:00
José M. Requena Plens 3e5e5439a3 fix(search): stop recommending --insecure for re-indexing
With the client TLS mode honored, the default setup no longer needs
--insecure, and with TLS enabled for gRPC the flag makes the command
fail, since it turns TLS off. Drop it from the README examples and from
the two re-index hints the service logs. MIGRATION.md keeps it: its
section covers upgrading to 8.0.x, which still needs the flag.
2026-10-04 23:34:06 +02:00
José M. Requena Plens e44bd467f3 fix(search): default the index endpoint to the configured gRPC address
--endpoint defaulted to a hardcoded 127.0.0.1:9220, so a search service
moved with SEARCH_GRPC_ADDR could only be reached by passing the flag.
Use the configured address when the flag is not set.
2026-10-04 23:34:06 +02:00
José M. Requena Plens 3dfae3b984 fix(search): honor the gRPC client TLS mode in the index command
The index command read OC_GRPC_CLIENT_TLS_MODE with a meaning of its
own: "insecure" dialed without TLS, and every other value, including
the default and "off", dialed with verified TLS and ignored
OC_GRPC_CLIENT_TLS_CACERT. Against the default setup, where the gRPC
services run without TLS, it failed unless --insecure was passed, and
against services with TLS enabled it only connected when their
certificate was trusted by the system roots, never with the generated
certificate or a private CA.

Map the mode with pool.StringToTLSMode and dial with pool.NewConn, the
mapping and dialer the other services' reva clients use: "off" dials
without TLS, "insecure" uses TLS without verifying the certificate and
"on" verifies it against the configured CA. --insecure still forces a
connection without TLS, and then the mode is not read at all.
2026-10-04 23:34:06 +02:00
Dominik Schmidt 4dec19089d Merge pull request #3651 from opencloud-eu/fix/search-tika-4-keys
fix(search): tika key fixes
2026-10-03 14:27:17 +02:00
Dominik Schmidt 2282082349 test(search): run acceptance and CI against the released tika 4.1.0 2026-10-03 11:12:18 +02:00
Dominik Schmidt 63c1f15cee fix(search): take the photo iso from exif:IsoSpeedRatings
Base ISO is a Canon maker note tag holding Canon's raw encoded value, not the iso of the shot: other cameras got no iso, Canon photos a wrong one (256 for an ISO 800 shot). exif:IsoSpeedRatings is there on tika 3 and tika 4.
2026-10-03 11:12:18 +02:00
Dominik Schmidt 4006344505 fix(search): read the tika 4 live photo keys
Tika 4 prefixes its metadata keys (mp4:, img:), so the live photo facet was never built there. Live photo support needs tika 4: tika 3 got the video keys only in 3.3.2 and never the still image time. The content key is read through one lookup, marked tika 4 and tika 3 legacy.
2026-10-03 11:12:17 +02:00
Michael Barz a3255422b8 chore: bump reva to latest main (#3642) 2026-10-02 15:53:08 +02:00
Florian Schade c10b106f1b Merge pull request #3633 from fschade/fix-collaboration-extension-handling
feat(collaboration): let admins disable wopi extensions
2026-10-02 13:37:02 +02:00
Dominik Schmidt 3b37e292bd Merge pull request #3643 from opencloud-eu/fix/parity-matrix-runes
fix(search): ellipsize parity matrix labels by runes, not bytes
2026-10-02 13:36:57 +02:00
Florian Schade baf56882bc Merge pull request #3636 from fschade/fix-collaboration-checkfileinfo-fields
fix(collaboration): send LastModifiedTime and the EuroOffice file size
2026-10-02 13:34:36 +02:00
Dominik Schmidt 654a5c0093 Merge pull request #3645 from opencloud-eu/chore/bump-libre-graph-api-go-v1.0.8
chore: bump libre-graph-api-go to v1.0.8
2026-10-02 13:34:28 +02:00
Dominik Schmidt b2039f6abe fix(search): ellipsize parity matrix labels by runes, not bytes
The byte-based truncation cut through the two-byte UTF-8 sequence of
Motörhead's ö, committing invalid UTF-8 into the parity README. Shared
rune-based ellipsize helper; matrix regenerated.
2026-10-02 12:48:51 +02:00
Dominik Schmidt 2a00f7c34a chore: bump libre-graph-api-go to v1.0.8
First tagged release carrying the merged search spec: the search query
endpoint with aggregations (metricDefinition/searchMetric,
geohashDefinition, aggregationFilterToken), sortProperty and the
auth-guest additions.
2026-10-02 12:48:21 +02:00
Florian Schade 938687d1d5 fix(collaboration): send LastModifiedTime and the EuroOffice file size 2026-10-02 12:20:04 +02:00
Florian Schade ec88020c1e feat(collaboration): let admins disable wopi extensions 2026-10-02 12:19:54 +02:00
Florian Schade e848d469d5 fix(collaboration): mint the mobile view test token with the token manager secret (#3647) 2026-10-02 12:18:17 +02:00
Viktor Scharf 97adf2e0d8 Set milestones to stable prs (#3641)
* set next-stable milestone in the gh actions

* add stable-7.2 to backport
2026-10-02 11:08:27 +02:00
Florian Schade 94448630e3 Merge pull request #3635 from fschade/feat-collaboration-eurooffice-mobile-view
feat(collaboration): mobile web view for EuroOffice
2026-10-02 10:16:08 +02:00
Viktor Scharf bb21ecd3ee fix(ci): pin phpunit to 13.3.x) (#3644) 2026-10-02 09:53:53 +02:00
Michael Barz 6aa9d31b32 Merge pull request #3630 from fschade/harden-collaboration-wopi-tokens
fix(collaboration): harden wopi token handling
2026-10-01 23:04:21 +02:00
Florian Schade 8edd60296a feat(collaboration): mobile web view for EuroOffice 2026-10-01 16:13:42 +02:00
Florian Schade a1982c6908 Merge pull request #3619 from opencloud-eu/bump/go-micro-v4.11.3
build(deps): bump go-micro and reva
2026-10-01 12:00:55 +02:00
Jörn Friedrich Dreyer 076a3b0212 build(deps): bump go-micro to v4.11.4-0.20260929213538-cd412c159a26
Point the go-micro.dev/v4 replace at the latest main-v4 maintenance
branch commit in butonic/go-micro (cd412c15) instead of the v4.11.3
tag. The new base is upstream v4.11.1 plus the registry cache
node-TTL fixes (upstream #2715, #2736, #2740), the concurrent map
access fix (upstream #2794), plus further dependency updates and test
fixes on the maintenance branch.

The branch also modernizes go-micro's own go.mod (go 1.26, lego,
dario.cat/mergo v1, x/deque v2, ...), and MVS pulls the aligned
versions into this module: lego v4.35.2 -> lego/v5 v5.5.2,
go-jose/go-jose/v4 -> v4.1.5, gofrs/flock -> v0.13.1,
mattn/go-isatty -> v0.0.24, go.uber.org/zap -> v1.28.0, x/net ->
0.59.0, miekg/dns -> 1.1.73, moby api/client, ProtonMail/go-crypto
-> 1.5.2, klauspost/compress -> 1.20.1, gorilla/handlers -> 1.5.2,
gobwas/ws -> 1.4.0, nxadm/tail -> 1.4.11, ...

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2026-10-01 11:14:15 +02:00
Florian Schade 24545be7ad fix(collaboration): harden wopi token handling 2026-09-30 16:40:44 +02:00
Viktor Scharf c8dd8ce1ca fix translation update pipeline (#3613) 2026-09-30 09:33:12 +02:00
Andre Duffeck eb32a80e01 Merge pull request #3602 from aduffeck/fix/search-trashed-path-collision
fix(search): keep trashed and live folders at the same path apart
2026-09-28 13:45:09 +02:00
André Duffeck b1efb8c616 Pass the query into the bleve descendant walk
Instead of deleted/onlyDeleted bool parameters, the caller now builds
the query and forEachMatch only does the paging.
2026-09-28 11:49:47 +02:00
Jörn Friedrich Dreyer 7fbecd06f1 Merge pull request #3603 from opencloud-eu/fix/uploads-cli-no-async-consumer
Fix/uploads cli no async consumer
2026-09-28 08:59:48 +02:00
Jörn Friedrich Dreyer eab5eb3528 api-test: wait for upload session cleanup after scenario
The AfterScenario hook only asserted that the clean command returned
200, but cleaning sessions happens asynchronously in the daemon. Poll
the session list until it is empty (60s deadline) so leftover sessions
do not leak into the next scenario.
2026-09-25 17:34:50 +02:00
Jörn Friedrich Dreyer 04ad5b84bb fix(storage-users): keep uploads sessions CLI out of the dcfs event queue
The uploads sessions command builds a posix driver with async file
uploads enabled, which makes it join the "dcfs" JetStream queue group.
Clean/restart/resume events published by the command itself can then be
routed to the CLI's own short-lived consumer; the nats client auto-acks
them and they are lost when the process exits, leaving stale upload
sessions behind.

Disable asyncfileuploads for the CLI driver instance so it only lists
sessions and publishes events. Also emit [] instead of null when the
session list is empty so the JSON output stays parseable.
2026-09-25 15:47:47 +02:00
André Duffeck ad4c8ad112 fix(search): keep trashed and live folders at the same path apart
A trashed folder keeps its path in the index, so a new folder can take
the same one. The descendant lookup behind move, delete, restore and
purge matched on space and path only: purging the trashed folder took
the live folder and its descendants out of the index, and moving the
live folder carried the trashed tree along.

Both engines now also match the root's trash state; purge with
onlyDeleted keeps matching the trashed ones only.
2026-09-25 15:31:31 +02:00
Andre Duffeck 74462d32d7 Merge pull request #3495 from opencloud-eu/feat/search-hierarchy-tokenizer
refactor(search): stream bleve descendants
2026-09-25 15:19:52 +02:00