Mount the named volume at /var/lib/postgresql instead of /var/lib/postgresql/data
to avoid initdb failures caused by lost+found directory on ext4 storage backends.
* chore: release 8.0.0-rc.1
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* [docs-only] Fix of storage-publiclink readme
* fix: some notifications were translated wrong due to an empty l10n key
The expected translatable message was empty, which caused the
translation system to use the empty key, which contains "weird"
unrelated data.
With the fix, if there is no translatable message, the related output
will remain empty.
* [docs-only][stable-8.0] Update web-extensions image versions in ocis_full
* feat: bump go to 1.25
feat: bump mockery to v2.53.5
feat: bump govulncheck
feat: bump bingo to v0.10.0
force go-1.25.7
update thumbnail images for test
* chore: bump web to v12.3.1
* fix: ocis-multi deployment example groups
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* chore: release 8.0.0
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* fix: add v8 to production versions
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* chore: write to docs-stable branch
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* test: fix public link related test for k8s deployment
* chore(idp): use kpop without dependency
Instead of trying to download kpop every time, bring in the specific
code that we are using. There is very little code that we are actually
using from kpop so pulling it as a dependency is not really necessary
and it should fix the current CI issues.
* fix: codacy deprecated reporter
* fix: post rebase cleanup
* chore(web): bump ownCloud Web to v12.3.2
* fix(graph): Don't use hardcoded groupOfNames in group creation
* fix(graph): (ai) fix other groupOfNames and comment
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* test: let (ai) add a test for it
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* fix: adjust ocis-multi example
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* docs: update changelog item
Co-authored-by: Martin <github@diemattels.at>
* fix:[OCISDEV-617] Expose the signature-auth attribute
* ci: use plugins/s3:1.4.0
* fix: dont write externalID when empty
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* feat: add globalID for EK users
* fix: bump reva version
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* chore: release 8.0.1
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* [backport] feat: [OCISDEV-732] acceptance test (#12143) to stable-8.0.0 (#12236)
* feat: [OCISDEV-732] acceptance test (#12143)
* feat: acceptance test - graph
* feat: acceptance test - graph
* feat: acceptance test - graph
* fix: remove drone
* feat: run each behat suite as a separate worker
* feat: rename
feat: [OCISDEV-740] acceptance test, coverage P0
feat: [OCISDEV-743] build and unit test
ci: [ocisdev-730] code quality
feat: [OCISDEV-741] local-api-test part 2
feat: [OCISDEV-741] local-api-test, apiSpaces
feat: [OCISDEV-744] cli-test
feat: [OCISDEV-741] local-api-test, apiCollaboration
# Conflicts:
# .github/workflows/acceptance-tests.yml
# tests/acceptance/run-github.py
feat: [OCISDEV-741] integration
feat: [OCISDEV-744] build-and-test, lint
feat: [OCISDEV-744] e2e-test
# Conflicts:
# .github/workflows/acceptance-tests.yml
feat: [OCISDEV-744] fix apiSearch2 test suite
* test [OCISDEV-744]: Run apiSearch2 test suite
* Added php8.4-gd to all 4 PHP install lines
* test [OCISDEV-744]: Enable all commented tests
* test [OCISDEV-744]: Fixed failings
* test [OCISDEV-744]: Fixed failings
feat: [OCISDEV-744] fix apiOcm test suite
* test [OCISDEV-744]: fix apiOcm tests
* test [OCISDEV-744]: remove redundant .sh files
* test [OCISDEV-744]: remove run-e2e.sh. Fix DRY vialation in run-github.py
* test [OCISDEV-744]: documentation fixes
---------
Co-authored-by: Deyan Zhekov <deyan.zhekov@kiteworks.com>
fix: [OCISDEV-730] actions compliance (#12187)
feat: [OCISDEV-786] Split coreApiSharees and coreApiSharePublicLink2 (#12196)
feat: [OCISDEV-779] reduce ci duration, libcurl (#12193)
* feat: [OCISDEV-779] reduce ci duration, libcurl
* feat: [OCISDEV-779] reduce ci duration, libcurl
* feat: [OCISDEV-779] reduce ci duration, libcurl
* feat: [OCISDEV-779] reduce ci duration, libcurl
feat: [OCISDEV-792] reduce ci duration, build-and-run (#12204)
* feat: [OCISDEV-792] reduce ci duration, build-and-run
* feat: [OCISDEV-792] reduce ci duration, build-and-run
* feat: [OCISDEV-792] reduce ci duration, pre-check
* feat: [OCISDEV-792] reduce ci duration, pre-check
* feat: [OCISDEV-792] reduce ci duration, pre-check
* feat: [OCISDEV-792] reduce ci duration, pre-check
* feat: [OCISDEV-792] reduce ci duration, pre-check
fix: ci, govulncheck stderr (#12219)
* fix: ci, govulncheck stderr
* fix: ci, litmus flakines
feat: [OCISDEV-779] reduce CI duration, PHP-version (#12217)
* feat: [OCISDEV-779] reduce CI duration, php-version
* feat: [OCISDEV-779] fix flaky test in apiSharingNgShares
* feat: [OCISDEV-779] fix flaky preview comparison
* feat: [OCISDEV-779] fix flaky preview comparison
* feat: [OCISDEV-779] replace manual PHP installation with shivammathur/setup-php action
* feat: [OCISDEV-779] fix Pre-checks and generate step
* feat: [OCISDEV-779] fix flaky preview comparison
* feat: [OCISDEV-779] fix failing test
---------
Co-authored-by: Michal Klos <michal.klos@kiteworks.com>
* feat: post rebase fix
* feat: post rebase fix
* feat: post rebase fix
* feat: [OCISDEV-783] release pipeline (#12194) (#12235)
* feat: Add basic GH Actions file
* feat: [OCISDEV-783] release pipeline
* feat: [OCISDEV-783] release pipeline
* feat: [OCISDEV-783] release pipeline, DeepDiver's review comments
* feat: [OCISDEV-783] release pipeline, DeepDiver's review comments
* feat: [OCISDEV-783] release pipeline, assert release
* feat: [OCISDEV-783] release pipeline, audit release
* feat: [OCISDEV-783] release pipeline, bianaries
* feat: [OCISDEV-783] release pipeline, bianaries
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, dev.1
* feat: [OCISDEV-783] release pipeline, trivy scan
* feat: [OCISDEV-783] release pipeline, gh actions
* trigger CI
* feat: [OCISDEV-783] release pipeline, align versions
* feat: [OCISDEV-783] release pipeline, scan message
* feat: [OCISDEV-783] release pipeline, ack alpine scan
* feat: [OCISDEV-783] release pipeline, align versions
* feat: [OCISDEV-783] release pipeline, review
* feat: [OCISDEV-783] release pipeline, review
* feat: [OCISDEV-783] release pipeline, trivy scan
---------
Co-authored-by: Lukas Schwarz <lukas.schwarz@kiteworks.com>
* feat(graph): [OCISDEV-794] allow multiple objectClasses on group creation
Add GroupAdditionalObjectClasses config field (env vars
OCIS_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES /
GRAPH_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES) that appends extra
objectClasses when creating groups in LDAP, alongside the existing
primary GroupObjectClass. Applied to both groupToLDAPAttrValues and
CreateLDAPGroupByDN.
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* feat(webdav): [OCISDEV-602] add spaceid to report
Added the `spaceid` to the REPORT responses. This is aligning the
`REPORT` method with the `PROPFIND` method.
* build(deps): stable-8.0
* feat(graph): [OCISDEV-807] add SpaceEditorWithoutVersionsWithoutTrashbin role
Adds a new space membership role "Can edit" that allows creating, uploading,
downloading, editing, moving and deleting on a space without access to file
versions or the trashbin. Also bumps reva to include the corresponding role
constructor.
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* fix(collaboration): [OCISDEV-781] return 200 OK for WOPI Lock in read-only modes
OnlyOffice sends a WOPI Lock request on document open regardless of whether
the user has write access. The Lock handler was calling SetLock with a
read-only CS3 token, which returned a permission error propagated as HTTP 500
to OnlyOffice, causing an error dialog on load.
Return 200 OK immediately for READ_ONLY and VIEW_ONLY view modes without
acquiring a CS3 lock.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* fix: fixed the internal links access control
* use the web stable-12.3 latest
* fix the OCM share permission change notification handling
* [OCISDEV-830] Add GitHub Actions workflow for k6 load tests with flag [k6-test]
* [OCISDEV-827] Add workflow file to run k6-tests in GitHub Actions
* [OCISDEV-827] Fix broken pipeline job
* [OCISDEV-827] Fix broken pipeline job - switched to double quotes.
* [OCISDEV-827] Trying to fix a broken pipeline job
* [OCISDEV-827] Fix secrets and variables used to run k6-test
* [OCISDEV-827] Add health check and SSH keepalive in run_k6_tests.sh
* [OCISDEV-827] Rename variable DRONE_COMMIT to OCIS_COMMIT_SHA
* chore: bump web version to 12.3.3
* [OCISDEV-833] Added rm -rf k6-ocis via SSH before ocis.sh start (#12280)
* fix(proxy): [OCISDEV-845] skip space reconciliation on signed URL requests
The space management middleware removed users from all project spaces
when processing signed URL requests because no OIDC claims are present
in that auth context. Return early when claims are nil to prevent the
oscillating add/remove cycle.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* chore(proxy): [OCISDEV-845] add changelog for space manager fix
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* chore: release 8.0.2
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* chore: bump libvips (#12304)
* chore: bump go version (#12306)
* fix: [OCISDEV-864] CI, fix passing version string value to image (#12309) (#12319)
* fix: release fix passing version string value to image
* fix: bump release tag
* chore: bump go-git
* fix: missing fcntl64 int the build image due to GHA image update
* fix: [OCISDEV-865] CI, release pipeline steps ordering (#12310) (#12320)
* fix: ci, release pipeline steps ordering
* chore: security bump
* fix: ignore for trivy scan, steps order
# Conflicts:
# services/idp/package.json
# services/idp/pnpm-lock.yaml
* fix: [backport][OCISDEV-873] *WithoutTrashbin space editor roles render files read-only in Web frontend (#12351)
fix: [OCISDEV-873] *WithoutTrashbin space editor roles render files read-only in Web frontend (#12346)
* fix: [OCISDEV-873] *WithoutTrashbin space editor roles render files as read-only in Web frontend
* fix: ci after godata bump
ocis CI bumped github.com/CiscoM31/godata from v1.0.10 → v1.0.11 as a transitive dependency of the reva bump. The new godata version parses "mail add 10 (invalid operator) as a parse error → 400 instead of unsupported operation → 501.
* fix ci: more precise role
* fix: bump reva to pull fix merged into reva
* Release 8.0.4 (#12352)
chore: Release 8.0.4
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* fix: dont write externalID when empty
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
---------
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Co-authored-by: Martin Mattel <github@diemattels.at>
Co-authored-by: Juan Pablo Villafáñez <jvillafanez@solidgeargroup.com>
Co-authored-by: Roman Perekhod <2403905@gmail.com>
Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
Co-authored-by: Matteo <matteo.sonnenholzner@kiteworks.com>
Co-authored-by: Niraj Acharya <niraj@jankaritech.com>
Co-authored-by: Lukas Hirt <info@hirt.cz>
Co-authored-by: Michal Klos <michal.klos@kiteworks.com>
Co-authored-by: Gwilherm Folliot <gwilherm55fo@gmail.com>
Co-authored-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
Co-authored-by: Lukas Schwarz <lukas.schwarz@kiteworks.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Deyan Zhekov <deyan.zhekov@kiteworks.com>
Co-authored-by: Matteo <193476828+mzner@users.noreply.github.com>
The space management middleware removed users from all project spaces
when processing signed URL requests because no OIDC claims are present
in that auth context. Return early when claims are nil to prevent the
oscillating add/remove cycle.
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
fix: random order for user search attributes
getUsersAttributes ranged over a map, so the attributes slice came back
in non-deterministic order. Iterate over the configured displayedAttributes
slice instead.
* fix: [OCISDEV-873] *WithoutTrashbin space editor roles render files as read-only in Web frontend
* fix: ci after godata bump
ocis CI bumped github.com/CiscoM31/godata from v1.0.10 → v1.0.11 as a transitive dependency of the reva bump. The new godata version parses "mail add 10 (invalid operator) as a parse error → 400 instead of unsupported operation → 501.
* fix ci: more precise role
* fix: bump reva to pull fix merged into reva
Add a new VaultMode.ReadWriteEnabled permission that gates the visibility
of the vault mode switcher in the web UI. Assigned to the admin, space
admin and user roles. The user light role does not receive it.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* chore(deps): bump filippo.io/edwards25519 from 1.1.0 to 1.1.1
* chore(deps): bump github.com/cloudflare/circl from 1.6.1 to 1.6.3
* chore(deps): bump github.com/russellhaering/goxmldsig from 1.5.0 to 1.6.0
* build(deps): bump fpicalausa/remove-stale-branches from 2.4.0 to 2.6.1
* build(deps): bump actions/upload-artifact from 4.6.2 to 7.0.1
* build(deps): bump actions/download-artifact from 4.3.0 to 8.0.1
* build(deps): bump pnpm/action-setup from 5.0.0 to 6.0.8
* chore(deps): bump github.com/shamaton/msgpack/v2 to v2.4.1 and reva to v2.0.0-20260519092700-9da01c6fb954
* chore: regenerate lock fil s and vendor
* chore: changelog
* fix: bump golang.org/x/image to v0.39.0 (GO-2026-4815, GO-2026-4961, GO-2026-4962)
* fix: release fix passing version string value to image
* fix: bump release tag
* chore: bump go-git
* fix: missing fcntl64 int the build image due to GHA image update
* feat: Implemet the vault-storage
feat: Separate the storage-users and graph to handle
feat: move the space create cache
configurate the vault srorage Postprocessing
hide the assignment of the MountID to VaultStorageProviderID behind a flag to avoid the ID mismatch
configurate the proxy to create the vault home space
update the filter
Make the graph able to handle vault prefix. no extra service needed
apply the vault filter to sharedbyme and sharedwithme
added vault-storage docker
use squashed reva
fix the finishUpload event
restict webdav copy/move from the vault
feat: provide the mfa to webdav and grpc
feat: refactoring: provide the mfa to webdav and grpc
mfa collaboration
fix GetRootDriveChildren and more
fix: send the MFA header in HTTP clients from the collaboration service
provide the default storage user vault configuration
update create_home middleware
Update deployments/examples/ocis_full/vault-storage.yml
Co-authored-by: Martin <github@diemattels.at>
Update services/gateway/pkg/config/config.go
Co-authored-by: Martin <github@diemattels.at>
Update services/graph/pkg/config/config.go
Co-authored-by: Martin <github@diemattels.at>
Update services/graph/pkg/config/config.go
Co-authored-by: Martin <github@diemattels.at>
Update services/storage-users/pkg/config/config.go
Co-authored-by: Martin <github@diemattels.at>
Update services/proxy/pkg/config/config.go
Co-authored-by: Martin <github@diemattels.at>
Update services/storage-users/pkg/config/config.go
Co-authored-by: Martin <github@diemattels.at>
Update deployments/examples/ocis_full/vault-storage.yml
Co-authored-by: Martin <github@diemattels.at>
bump reva
deduplicate the requireMFA middeware on vault routes. fix AppendPlainToOpaque.
added the changlog and comments
* feat: add the vault mode search
* Update changelog/unreleased/enhancement-vault-storage.md
Co-authored-by: Martin <github@diemattels.at>
* update the readme. the reva vault storage provider configuration disabled by default
* feat: [OCISDEV-531] add vault capabilities to the OCS capabilities endpoint
* the port range allocated. the configuration updated.
---------
Co-authored-by: Martin <github@diemattels.at>
* [OCISDEV-827] Add workflow file to run k6-tests in GitHub Actions
* [OCISDEV-827] Fix broken pipeline job
* [OCISDEV-827] Fix broken pipeline job - switched to double quotes.
* [OCISDEV-827] Trying to fix a broken pipeline job
* [OCISDEV-827] Fix secrets and variables used to run k6-test
* [OCISDEV-827] Add health check and SSH keepalive in run_k6_tests.sh
* [OCISDEV-827] Rename variable DRONE_COMMIT to OCIS_COMMIT_SHA
Adds a new space membership role "Can edit" that allows creating, uploading,
downloading, editing, moving and deleting on a space without access to file
versions or the trashbin. Also bumps reva to include the corresponding role
constructor.
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
OnlyOffice sends a WOPI Lock request on document open regardless of whether
the user has write access. The Lock handler was calling SetLock with a
read-only CS3 token, which returned a permission error propagated as HTTP 500
to OnlyOffice, causing an error dialog on load.
Return 200 OK immediately for READ_ONLY and VIEW_ONLY view modes without
acquiring a CS3 lock.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Add GroupAdditionalObjectClasses config field (env vars
OCIS_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES /
GRAPH_LDAP_GROUP_ADDITIONAL_OBJECTCLASSES) that appends extra
objectClasses when creating groups in LDAP, alongside the existing
primary GroupObjectClass. Applied to both groupToLDAPAttrValues and
CreateLDAPGroupByDN.
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* feat(idm): add --service-user flag to resetpassword command
The DN was hardcoded to ou=users, making it impossible to reset
passwords for service accounts (libregraph, idp, reva) which live
under ou=sysusers. The new --service-user flag selects the correct OU.
Fixes: #12106
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>
* docs: update changelog with PR number
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>
* refactor(idm): use --user-type flag instead of --service-user bool
Replace the --service-user boolean flag with a --user-type string flag
that accepts 'user' (default) or 'service'. This is more extensible
if additional user types are added in the future.
Addresses review feedback from mklos-kw.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>
---------
Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
During IndexSpace bulk reindexing, file extraction is now retried up to
5 times with a 1-second delay between attempts. If 5 consecutive files
fail (indicating the extraction service is down), the walk is aborted.
This replaces the previous 30-minute exponential backoff approach per
review feedback from jvillafanez: keep retries quick and short, return
an error to the admin rather than sleeping for extended periods.
No interface changes — retry logic is internal to the service.
Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Add a CLI-only optimize command that compacts the Bleve search index by
merging segments. The command opens the index directly via a new engine
factory (NewEngineFromConfig), without requiring the running gRPC service.
Key changes per review feedback from jvillafanez:
- CLI-only: no gRPC endpoint, no proto changes — admin triggers it
directly when disruption is acceptable
- Engine factory: extracted engine creation from the gRPC handler into
NewEngineFromConfig, reusable by both the service and CLI commands
- Optimize() merged into Engine interface: no separate Optimizer
interface, non-supporting engines can return an error
Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Martin <github@diemattels.at>
* fix(graph): avoid superfluous GetPublicShare call when deleting space permissions
DeletePermission unconditionally called getLinkPermissionResourceID as its
first step, even for space permissions on space roots. This always failed
and logged a confusing "GetPublicShare failed" error.
Recognise space permission IDs (u:/g: prefixed) by their format via
spacePermissionIdToCS3Grantee before making any gateway calls. Public
link lookups on space roots now only happen when the ID does not match
the space permission format.
Fixes: #12012
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>
* docs: update changelog with PR number
Signed-off-by: Paul Faure <paul@faure.ca>
* refactor(graph): extract permission resolution helpers to reduce complexity
Split DeletePermission into resolveDeletePermission,
resolveSpaceRootPermission, and resolveItemPermission to bring
cognitive complexity under the SonarCloud limit of 15.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>
---------
Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
* test [OCISDEV-744]: Run apiSearch2 test suite
* Added php8.4-gd to all 4 PHP install lines
* test [OCISDEV-744]: Enable all commented tests
* test [OCISDEV-744]: Fixed failings
* test [OCISDEV-744]: Fixed failings
* feat: acceptance test - graph
* feat: acceptance test - graph
* feat: acceptance test - graph
* fix: remove drone
* feat: run each behat suite as a separate worker
* feat: rename
Increases the "descends into already-indexed directories" test from 100
to 10,000 directories. Restructures mocks to use map-based dispatch
instead of per-directory mock.MatchedBy registrations, keeping the test
at O(n) instead of O(n²).
Result: 10,000 already-indexed dirs with 10,000 unindexed child files
completes in ~14 seconds, confirming linear scaling.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Change introductionVersion from "8.0.0" to "Daledda" (codename)
- Clarify that the cache is a process-lifetime cache tracking which
users have a personal space, not one of the general proxy caches
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extract homeKnown() and createHome() from ServeHTTP to bring
cognitive complexity under the SonarCloud limit of 15.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Verifies that IndexSpace visits children inside 100 already-indexed
directories whose mtimes match the index. Before the SkipDir fix
these subtrees would be permanently skipped after an interrupted
reindex run.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Allow operators to disable the in-memory CreateHome cache via
PROXY_CREATEHOME_CACHE_DISABLED as a fallback if the cache causes
unexpected behavior.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The SkipDir optimization skipped entire subtrees when a directory was
already indexed with a matching mtime. After a failed indexing run
(e.g. Tika crash), this permanently prevented unindexed children from
being visited since the parent directory's mtime doesn't change when
child extraction fails. With O(1) DocID lookups the per-file skip
check is negligible, making SkipDir unnecessary for correctness.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The UploadReady event's FileRef.ResourceId.OpaqueId is set to the space
root ID (required for CS3 gateway path resolution via WalkPath). This
means consumers that need the file's actual node ID for Graph API URLs
get the space root instead.
Add a separate ResourceID field (following the BytesReceived pattern)
that carries the file's actual resource identifier with the correct
OpaqueId set to session.NodeID().
Upstream: https://github.com/owncloud/reva/pull/XXXXX
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Use canonical header casing "X-Access-Token" (canonicalheader)
- Return true instead of nil on success to avoid nilnil (nilnil)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Log the resolved OCIS_BASE_DATA_PATH and OCIS_CONFIG_DIR at startup
so operators can immediately see where data is being written. This
catches misconfigured Docker volume mounts where data silently falls
back to ~/.ocis inside the container instead of /var/lib/ocis.
Fixes: #12044
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The CreateHome middleware fired a gRPC CreateHome request on every
authenticated HTTP request. On first login the browser sends ~11
parallel requests, each triggering a redundant call. Use singleflight
to collapse concurrent calls for the same user and sync.Map to cache
successful results so subsequent requests skip the gRPC call entirely.
Fixes: #12068
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
babel-preset-react-app defaults to absoluteRuntime: true, which
hardcodes Linux-specific absolute paths to @babel/runtime helpers.
This breaks builds on FreeBSD. Setting absoluteRuntime: false makes
Babel resolve the runtime relative to the source file instead.
Fixes: #12065
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the per-file Search() call in IndexSpace with a direct Lookup()
using Bleve's DocIDQuery. The old approach parsed a KQL query string,
compiled it, and ran a full-text search for each file — taking 600-950ms
per file on large indexes. The new approach does an O(1) document lookup
by ID and compares mtime/Extracted fields in memory.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add an Optimizer optional interface and Bleve.Optimize() method that
triggers ForceMerge to compact all index segments into one. Called
automatically after IndexSpace completes its walk. Over time, writes
create multiple segments that degrade query performance — compaction
consolidates them for faster searches.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Update acceptance tests and all deployment example CSP configs to include
'data:' in font-src, consistent with the default csp.yaml change.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The bundled Web UI CSS (from owncloud/web) inlines the KaTeX_Size3 font
as a base64 data:font/woff2 URI. The default CSP sets font-src to 'self'
only, which blocks these data URIs and produces a console error on every
page load:
Loading the font 'data:font/woff2;base64,...' violates the following
Content Security Policy directive: "font-src 'self'".
Add 'data:' to font-src, matching the existing pattern where img-src
already permits data: URIs.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Extracts DateTimeNode handling into dateTimeQuery(), same pattern as
numericQuery(). Brings walk() cyclomatic complexity from 36 to ~30,
well below the SonarCloud threshold of 35.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Two changes to fix permanently stuck index entries:
1. (Option D) Validate Tika responses: if MetaRecursive() returns an
empty metadata list, treat it as an error. This prevents Tika HTTP 200
responses with no actual content from being accepted as successful
extractions.
2. (Option B) Add Extracted field to Resource: a boolean that is set to
true only when UpsertItem completes successfully. The IndexSpace skip
check now requires Extracted:true in addition to matching id+mtime.
Documents that were written with incomplete extraction data will be
automatically re-processed on the next reindex.
Background: When Tika returns HTTP 200 but its child processes (OCR,
ImageMagick) fail due to resource limits (EAGAIN, OOM), the Go Tika
client receives metadata headers but no X-TIKA:content. The doc gets
written to Bleve with the correct mtime, and subsequent reindexes skip
it forever because the id+mtime check passes.
Fixes: #12093
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Fixes SonarCloud gocyclo finding — walk() cyclomatic complexity
was 40 (threshold 35). Extracted numeric range query building
into a separate numericQuery() function.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add NumericRestrictionNode to the KQL PEG grammar so that range
operators work with numeric values, not just DateTimes. This enables
queries like `size>=1048576`, `photo.iso>=100`, `photo.fNumber>=2.8`,
and `photo.focalLength<50`.
Changes:
- ast: add NumericNode with Key, Operator, Value (float64)
- kql/dictionary.peg: add NumericRestrictionNode and Number rules
- kql/factory.go: add buildNumericNode()
- kql/cast.go: add toFloat64()
- bleve/compiler.go: compile NumericNode to NumericRangeQuery
Fixes: #12093
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- UpdateTags now updates only the tags field instead of all basic
metadata (name, size, mimetype, path, parentID), per reviewer
feedback that those are structural fields not metadata.
- Removed refreshMetadata helper that was over-reaching.
- Introduced ErrResourceNotFound sentinel in engine package so
UpdateTags can distinguish "not indexed" (fallback to UpsertItem)
from connectivity or other errors (log and stop).
- Added GoDoc example for the Update mutateFn callback.
- Added test for non-retriable error path.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Address reviewer feedback:
- Remove checksum field from index (bloats index, not searched)
- Remove skipUnchangedContent guard (not needed with UpdateTags path)
- Replace engine.Retrieve() with engine.Update(id, mutateFn) that does
get+mutate+set internally, avoiding public exposure of raw retrieval
- Simplify UpdateTags to use engine.Update() with mutation function
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Moves the metadata-storage block from UpsertItem into a dedicated helper
method to bring cognitive complexity below the SonarCloud threshold of 15.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move the checksum fast-path logic into a dedicated helper method to
bring UpsertItem below the SonarCloud cognitive complexity threshold
of 15.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add tests for:
- UpsertItem skips Tika when checksum unchanged
- UpsertItem runs Tika when checksum differs
- UpsertItem runs Tika when resource not yet indexed
- UpdateTags preserves Tika content when resource is indexed
- UpdateTags falls back to full UpsertItem when not indexed
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Tag events (TagsAdded/TagsRemoved) previously called UpsertItem which
triggered a full Tika content extraction for metadata-only changes.
Additionally, UpsertItem's SetArbitraryMetadata writeback bumped the
mtime, causing IndexSpace to call UpsertItem again — running Tika
twice per file. On servers with large libraries this caused a
denial-of-service from runaway convert/tesseract processes.
Fix by:
- Adding UpdateTags() to the Searcher interface for tag-only updates
that preserve existing Tika-extracted content
- Adding Retrieve() to the Engine interface to load indexed resources
- Comparing the content checksum (already computed by decomposedfs on
upload) in UpsertItem to skip Tika and the metadata writeback when
the blob has not been written to
- Extracting refreshMetadata() helper shared by both code paths
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Addresses SonarCloud goconst finding — the string "lowercaseKeyword"
appeared 4 times without a named constant.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Bleve's query string parser lowercases search terms, but the keyword
analyzer stores values as-is. This made photo field searches like
cameraMake:google fail to match "Google". Switch from keyword to
lowercaseKeyword analyzer so both sides are lowercased.
Note: existing Bleve indexes need to be rebuilt after this change.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Send truncated stream via io.LimitReader instead of skipping Tika
entirely for files exceeding ContentExtractionSizeLimit. EXIF metadata
lives in the JPEG header, so even a truncated read extracts all photo
data from large files like Pixel Motion Photos.
Also prefer the standard exif:IsoSpeedRatings field over the Canon-
specific "Base ISO", falling back to the latter when absent.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Instead of trying to download kpop every time, bring in the specific
code that we are using. There is very little code that we are actually
using from kpop so pulling it as a dependency is not really necessary
and it should fix the current CI issues.
Added the `spaceId` to the incoming shares. This is aligning the graph
API with the WebDAV API where the clients can use `spaceid` property.
This change allows clients to get the space ID directly instead of
having to parse the resource ID.
Build the event at the call site and pass it directly, removing
three parameters (removedTags, rid, sres) from the helper as
suggested in review.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Inline error check in publishTagsRemoved call (godre:S8193)
- Change FIXME to NOTE for intentional non-atomic rollback comment (go:S1134)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move the event publishing and rollback logic into a dedicated helper
method to bring UnassignTags below the SonarCloud cognitive complexity
threshold of 15.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Address review feedback: if the TagsRemoved event fails to publish,
attempt to restore the original tags metadata and return HTTP 500
instead of silently succeeding. This avoids leaving the system in
an inconsistent state where metadata is updated but the search
index is not notified.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The `--restart` / `-r` flag checked `c.Bool("retrigger")` instead of
`c.Bool("restart")`, so it silently did nothing. Fix the flag name and
add a simple confirmation message on success.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The DELETE tags endpoint returned HTTP 400 with a misleading error
message ("no new tags in createtagsrequest or maximum reached") when
the requested tag was absent from the file's ArbitraryMetadata. This
made it impossible to clean up stale tags that exist in the search
index but not in the file metadata.
Change UnassignTags to:
- skip the SetArbitraryMetadata call when nothing was removed
- always publish the TagsRemoved event so the search index stays in sync
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Background section: Removed entirely - was too personal/motivational
Throughout: Changed personal pronouns ("I", "my", "we") to neutral language ("the developer", "contributors", passive voice)
"What I Built": Renamed to "Example Extensions Built with This Approach"
"My contributions": Changed to "Contributions made by this approach" and removed status indicators (Merged/Under review)
Resources table: Removed "My Extensions" row (personal fork link)
Author bio: Removed the personal bio ("Paul Faure is a computer engineer...")
Disclosure: Simplified to just "This guide was written with AI assistance and reviewed for accuracy."
The expected translatable message was empty, which caused the
translation system to use the empty key, which contains "weird"
unrelated data.
With the fix, if there is no translatable message, the related output
will remain empty.
This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by https://github.com/bwplotka/bingo.
This is directory which stores Go modules with pinned buildable package that is used within this repository, managed by <https://github.com/bwplotka/bingo>.
* Run `bingo get` to install all tools having each own module file in this directory.
* Run `bingo get <tool>` to install <tool> that have own module file in this directory.
* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use $(<upper case tool name>) variable where <tool> is the .bingo/<tool>.mod.
* Run `bingo get <tool>` to install `<tool>` that have own module file in this directory.
* For Makefile: Make sure to put `include .bingo/Variables.mk` in your Makefile, then use `\$(<UPPER_CASE_TOOL_NAME>)` variable where `<tool>` is the .bingo/`<tool>.mod`.
* For shell: Run `source .bingo/variables.env` to source all environment variable for each tool.
*For go: Import `.bingo/variables.go` to for variable names.
* See https://github.com/bwplotka/bingo or -h on how to add, remove or change binaries dependencies.
*See <https://github.com/bwplotka/bingo> or -h on how to add, remove or change binaries dependencies.
* [ ] DEV: specify if it is a production release in [.drone.star](https://github.com/owncloud/ocis/blob/b4cf38fa1ba180c58519026dfe762b7c45695466/.drone.star#L8) (if needed)
echo "::error title=Security scan blocked release::Image ${{ steps.tags.outputs.tags }} has HIGH or CRITICAL vulnerabilities (see Trivy report above). Fix all findings before releasing."
echo "::error title=Security scan blocked release::Image ${{ matrix.repo }}:${{ needs.determine-release-type.outputs.version }}-linux-${{ matrix.arch }} has HIGH or CRITICAL vulnerabilities (see Trivy report above). Fix all findings before releasing."
[](https://sonarcloud.io/summary/new_code?id=owncloud-1_ocis_acceptance-tests)
@@ -108,7 +108,7 @@ See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/
Use this method to build and run an instance with the latest code. This is only recommended for development purposes.
The minimum go version required is `1.24`.\
The minimum go version required is `1.25.10`.\
Note that you need a C compile environment installed as a prerequisite because some dependencies, like reva, have components that require C-Go libraries and toolchains. The command installing for debian based systems is: `sudo apt install build-essential`.
To build and run a local instance with demo users:
Loaded 100 of 2513 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.