* ci: add zizmor workflow audit
Runs zizmor over this repository's workflows and Dependabot config on
every pull request, on pushes to the default branch and weekly, through
owncloud/reusable-workflows' zizmor.yml. Any finding fails the check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
* fix(ci): resolve zizmor findings
- excessive-permissions: workflows without a permissions block ran
with the repository default, which is read/write. They now default
to contents: read; only create-github-release gets contents: write,
for softprops/action-gh-release. audit-release only GETs the
published release, which read covers.
- cache-poisoning: the release workflow's setup-node steps opt out of
package-manager caching, so a tag build cannot restore a cache that a
branch build wrote.
- artipacked: checkouts do not persist credentials. No job runs a git
operation after checkout.
- dependabot-cooldown: every ecosystem waits 7 days, as github-actions
already does.
- ref-version-mismatch: setup-php's tag is 2.40.0, without the v.
- self-repository: local reusable workflows and actions are called as
$/... instead of ./... .
- Suppressed inline, with the reason on the line: the unpinned
`npm install -g yarn npx` in the release workflow (pre-existing, left
to the maintainers), the version-pinned gherlint install, and the
softprops release step, which CI cannot exercise.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
* fix(ci): undo two zizmor auto-fix slips, keep scheduled runs
- zizmor's template-injection auto-fix read `${{ }}` inside a shell
comment in determine-release-type as an expansion: it added an env
entry reading that job's own output, which is always empty, and
rewrote the comment to describe something no longer true. The entry
is gone and the comment describes the env indirection the later jobs
now use, with the version check as a second safeguard.
- Only pull request runs of the zizmor audit cancel each other now; a
push to master and the weekly run share a ref.
The previous commit's message is incomplete: it lists a self-repository
change this repository did not need, and omits the auto-fixed
template-injection findings (expressions in run: moved to env: in
release.yml, release-npm-packages.yml and acceptance-tests.yml) and the
cache-poisoning fix also turning off setup-go's cache in the release
jobs, so a tag build cannot restore a cache a branch build wrote.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
---------
Signed-off-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
Co-authored-by: Thomas Müller <323649642+oc-tmueller@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(graph): [OCISDEV-1601] let teachers of other schools receive vault shares before their first login
* chore: [OCISDEV-1601] add changelog entry
* fix(graph): [OCISDEV-1601] harden the guest vault role assignment
* docs(graph): [OCISDEV-1601] shorten the description of the guest role mapping
* fix(graph): [OCISDEV-1601] read the userClass with a separate backend method
* fix(graph): [OCISDEV-1601] assign the guest vault role around the share creation
* docs(graph): [OCISDEV-1601] describe that only the guest role mapping is used
* docs(graph): [OCISDEV-1601] document how graph applies the guest role mapping
* refactor: [OCISDEV-1601] share the guest role mapping between proxy and graph
* refactor(graph): [OCISDEV-1601] fix the linter findings of the guest vault role
* fix(graph): [OCISDEV-1601] keep the guest vault role once the share exists
* revert(web): restore go redirect link in help menus
Reverts the hard-coded documentation URLs from #13241. The help menus link to doc.owncloud.com/go?to=webui-users-sharing again, so the target can be maintained by the docs redirect instead of in web.
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
* chore: remove changelog of reverted help menu link fix
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
---------
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
Motivation: the ocis_full example defines SMTP_PASSWORD and SMTP_AUTHENTICATION
in .env but the ocis service did not forward them, so an SMTP server requiring
authentication could not be configured through this example.
Approach: add NOTIFICATIONS_SMTP_PASSWORD and NOTIFICATIONS_SMTP_AUTHENTICATION
to the ocis environment block next to the other NOTIFICATIONS_SMTP_* entries,
document accepted authentication values in .env, and add a changelog entry.
An empty SMTP_AUTHENTICATION is treated as 'auto' by the notifications service,
so existing setups that leave it unset behave as before.
Validation: parsed ocis.yml with python yaml and confirmed both variables are
present in the ocis environment. I could not run docker compose or an
authenticated SMTP server here (docker is not installed), so end-to-end mail
delivery was not exercised; I checked the variable names against the env tags
in services/notifications/pkg/config/config.go and the empty-value handling in
services/notifications/pkg/channels/channels.go.
Report: https://github.com/owncloud/ocis/issues/11757
Assisted-by: claude-sonnet-5-5 (via Claude Code)
Signed-off-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
Co-authored-by: Pujitha Paladugu <10557236+pujitha24@users.noreply.github.com>
* fix(proxy): [OCISDEV-1464] fail on an unknown multi-instance guest role
The OIDC role assigner did not check that OCIS_MULTI_INSTANCE_GUEST_ROLE
exists. When the guest role name is wrong, the role name has no role id.
The proxy then sent AssignRoleToUser with an empty RoleId on each request.
The role assigner now returns an "unknown role" error and does not change
the role assignment. A test covers a guest that no guest role mapping
matches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(proxy): [OCISDEV-1464] check the guest role mapping more strictly
GuestRoleMapping now trims the spaces around the claim value and the
role name. The env var parser trims list elements, but the yaml parser
does not. Before this change, the yaml entry "spaceadmin: user-light-vault"
gave the role name " user-light-vault", and each matching guest login
failed with "unknown role".
GuestRoleMapping now also rejects a mapping when
OCIS_MULTI_INSTANCE_GUEST_ROLE is empty. The role assigner applies the
mapping only to users that get the guest role. Without a guest role, the
proxy ignored the mapping and gave guests a member role.
gofmt also fixes the indent of a TODO comment in the same file.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(proxy): [OCISDEV-1464] log why the guest role mapping does not apply
mapGuestRole dropped the extractRoles error without a log line. When
PROXY_ROLE_ASSIGNMENT_OIDC_CLAIM had a wrong claim name, each guest kept
the guest role, and the admin could not find the cause.
mapGuestRole now writes a debug log line with the claim name and the
error. A guest without a roles claim is valid, and the role assigner runs
on each request, so the log level is debug and not warning.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs(proxy): [OCISDEV-1464] tell that guest claim values are regexes
The guest role mapping uses the same claim matcher as the role mapping.
A claim value is an exact string or a regular expression that must match
the full claim value. The description of
OCIS_MULTI_INSTANCE_GUEST_ROLE_MAPPING did not tell this. An admin who
writes 'school.admin' also matches the claim 'schoolXadmin', and that
guest can get a role with more permissions.
The description now tells that claim values are regexes. It also tells
the admin to escape regex metacharacters in an exact string.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(proxy): [OCISDEV-1464] read the roles again for an unknown guest role
The OIDC role assigner checks the guest role and the mapped guest role
against a role cache with a 5 minute TTL. A role that an admin created
after the last cache read was unknown. For up to 5 minutes, each request
of a matching guest failed with "unknown role" and HTTP 500.
The new function guestRoleName reads the roles again one time when the
role is unknown. It reads the roles again only when the cache is older
than 30 seconds. Thus a role that does not exist causes a maximum of one
ListRoles request in 30 seconds, and not one request for each guest
request. The check for an unknown guest role moves into guestRoleName.
roleNamesToRoleIDs now has a maxAge parameter.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* docs: [OCISDEV-1464] add the changelog for the guest role mapping fixes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(web): [OCISDEV-1183] stop logging OAuth tokens to the browser console
On every login and silent token renewal, the web client wrote the user's raw
access and refresh tokens to the browser console via console.debug. The
userLoaded handler now logs a static message without any token or user data.
Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
* docs: [OCISDEV-1183] add PR link to changelog
Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
---------
Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
The link "Add password" / "Edit password" dialog could be confirmed, by
button or Enter, while the field was still empty, which removed the
password from the link. Confirm now starts disabled, and Enter only
confirms when the password policy is fulfilled, same as the button.
Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
happy-dom 21 serializes var() fallbacks with a space after the comma,
so adjust the tag colour style assertions accordingly.
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
The "Shared by" column in Shared with me could not be sorted. It now sorts
A to Z (Z to A on a second click) by all sharers' names in alphabetical
order, the same rule as "Shared with", so items shared by several people
stay in a stable place while the avatars keep their current order. Sorting
by "Shared with" also no longer reorders that column's avatars.
Signed-off-by: Gaurav Soni <sonigaurav119@gmail.com>
Remove the deprecated owncloudsql driver configuration from the storage-users,
auth-basic, users, groups and sharing services and from the migrate command.
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
The packages are now published from owncloud/ocis, but their repository
and homepage fields still referenced owncloud/web. npm trusted publishing
requires repository.url to exactly match the publishing repository, and
the first publish attempt (tsconfig 0.0.7) failed with a 404.
Also disable setup-node package manager caching in the release workflow,
as recommended for release builds.
Signed-off-by: Lukas Hirt <info@hirt.cz>
The 'unstructured collection of testable space interactions' test runs about 80 UI steps across two spaces and takes ~150s of its 180s budget, so slow CI runners made it time out. Mark it with test.slow(), as done for the other long journeys.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* feat: final removal of any docs related content
* docs: fixes from codereview
* chore: remove dead protoc-gen-doc references, drop stale buf.gen.yaml warning
The buf.gen.yaml warning comment is incorrect: the bare plugin paths are
intentional, resolved at build time by the symlink protoc-deps creates via
`bingo get -l` before buf generate ever runs.
Removing the doc plugin block left protoc-gen-doc dead: nothing generates
with it anymore, but protoc-deps still installed/symlinked it and its
.bingo lock files were still committed.
See: https://github.com/owncloud/ocis/pull/13165#issuecomment-6218074157
---------
Co-authored-by: Michal Klos <michal.klos@kiteworks.com>
fix(idm): sync bind config when resetting a service user password
Resetting an IDM service user password with `ocis idm resetpassword
--user-type service` only changed the entry in the IDM directory. Services
such as auth-basic, users and groups still bound to LDAP as the reva service
user using the old bind_password from their configuration, so after a restart
those binds failed and regular admin login started returning 401 Unauthorized.
The command now rewrites the matching bind_password and service_user_passwords
keys in ocis.yaml when it is present, and always prints the environment
variables that must carry the new password for env-var and distributed
deployments it cannot rewrite.
Fixes: https://github.com/owncloud/ocis/issues/12569
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(collaboration): retry rename and upload while file is processing
RenameFile and PutFile failed with a 500 when the storage answered with CODE_TOO_EARLY because the file was still in postprocessing, e.g. right after PutRelativeFile. This made the wopi-builtin validator flaky. Share the retry-with-backoff logic that DeleteFile already had and apply it to Move and InitiateFileUpload as well. The retries are now bounded.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* fix(collaboration): return context error when retry is cancelled
Return ctx.Err() from retryWhileTooEarly when the context is cancelled, document the intentional no-op after the wait, and add a test for it.
Signed-off-by: Lukas Hirt <info@hirt.cz>
---------
Signed-off-by: Lukas Hirt <info@hirt.cz>
Scrolling inside an app such as OnlyOffice could make the whole page bounce
with it, exposing the blank page background behind the app frame. Set
overscroll-behavior-y: none on the root element while AppWrapper is mounted
and restore the previous value on unmount. The logic lives in a new
useDisableRootOverscroll composable, which is covered by unit tests.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* fix(web): [OCISDEV-1511] refresh files stuck in processing after upload or copy
A postprocessing-finished event that arrives while a folder reload or a
fetch after copy is still in flight is dropped, because the resource is
not in the store yet. The response then adds the resource as processing
and nothing clears it until a page reload.
Remember finished items for a short time and refetch them when they show
up in the store as processing.
* chore: [OCISDEV-1511] add changelog
ci(release): remove the disabled docker jobs from the release pipeline (#13128)
Tagging v9.0.0-rc.1 produced a startup_failure: the workflow was rejected
before any job ran. owncloud pins Actions to an org allowlist
(owncloud/admin:actions-allowlist.yml, allowed_actions: selected with
sha_pinning_required), and three pins in this file are not on it:
docker/setup-buildx-action @f87e5991 v4.4.1 (allowlist has v4.0.0)
docker/login-action @dbcb8138 v4.6.0 (allowlist has v4.1.0)
docker/build-push-action @c3c9e263 v7.4.0 (allowlist has v7.0.0)
Allowlist validation happens at parse time, so it does not care that all
three only appear in jobs already marked `if: false`.
Rather than pin them back, drop the jobs. Building, scanning and publishing
the production image moved to owncloud-docker/ocis, which is why these were
disabled in the first place; the image Trivy scan now runs there on every PR.
That leaves nothing to maintain here and removes all three offending pins.
Removes docker-build, docker-scan (dead too: it needs docker-build),
docker-manifest and docker-readme. Nothing outside that subgraph depended on
them, so the `docker_repos` and `is_production` outputs, the
PRODUCTION_RELEASE_TAGS / DOCKER_REPO_ROLLING / DOCKER_REPO_PRODUCTION env
vars and the REPOS computation go with them. is_prerelease stays, as
create-github-release still reads it.
The filesystem scan in security-scan-trivy is untouched.
(cherry picked from commit aab12d018e)
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Save the MFA status after the user is resolved so signed-URL downloads
inherit it, and check its age on read. Build the signing-key URL with
the URL API so it works with the vault base URL.
* fix: [OCISDEV-1476] fix AuthApp requests failing with a custom PROXY_USER_OIDC_CLAIM
* fix: [OCISDEV-1476] map ErrAccountNotFound to 401 in verifyUser
AccountResolver.verifyUser only mapped ErrAccountDisabled to 401 before
falling through to a generic 500. The identity backend excludes disabled
accounts from by-username lookups and returns ErrAccountNotFound instead,
so a disabled user authenticating via AppAuth or basic auth got a 500
instead of a 401, caught by the acceptance test suite.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
* fix: [OCISDEV-1523] fix the LDAP master-ID filter for an empty base filter
EnhanceFilterWithMasterID replaced an empty LDAP filter with a master-ID-only
filter. This action restricted an unrestricted search to master-ID users
only. The bug broke the cross-instance user search in multi-instance
deployments. The function now keeps an empty filter unchanged.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* fix: [OCISDEV-1523] require an explicit LDAP user filter with a master ID
EnhanceFilterWithMasterID in ocis-pkg/ldap/filter.go now keeps an empty
LDAP filter unchanged instead of restricting it to master-ID users only.
The auth-basic, users, groups, and graph services reuse this function to
compute their default LDAP user filter at startup.
An unset filter now means these services resolve or authenticate every
user in the shared LDAP directory, not only master-ID users. This action
is a behavior change for a deployment that sets
OCIS_MULTI_INSTANCE_MASTER_ID without an explicit OCIS_LDAP_USER_FILTER.
Each service now rejects startup when OCIS_MULTI_INSTANCE_MASTER_ID is
set and its own user filter is empty. This action keeps a multi-instance
deployment scoped to its own users by default.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* refactor: [OCISDEV-1523] simplify EnhanceFilterWithMasterID guard clauses
The function collapses three early-return guards into one condition.
This action removes a duplicated rationale comment between filter.go
and filter_test.go.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* docs: [OCISDEV-1523] point the changelog entry at the master backport PR
The changelog entry pointed at PR 13096, the stable-8.2 backport. This
commit points the entry at the master-branch PR number instead.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Requests on unprotected routes can carry a reva token without a resolved
user: reva's internal downloads to the data gateway (/data) are sent with
the caller's token. create_home logged "no user in context" at error level
for each of them, so every download added an error line. Log at debug with
the path instead; the request is passed on unchanged, as before.
Fixes#13101
Claude-Session: https://claude.ai/code/session_01WpoeSoKYEdgQcWjEzTVKpT
Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The file and folder converters filled User from the event's Owner, which
reva does not set, so the field was empty on every upload, download, move,
delete, restore and version restore; where Owner was set it named the owner
instead of the actor. Space, user and group converters hard-coded User to
an empty string although every one of those events carries the Executant.
User now comes from the event's Executant everywhere an actor exists. The
Owner field of file events is unchanged; the failed public-link access
event has no actor and keeps an empty User.
Tests give the fixtures different owner and actor ids so they can tell the
two apart (they fail on the previous code), and add cases for the user and
group converters. The group member added/removed messages passed the user
and group ids in swapped order; fixed.
Fixes#4789
Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: Juan Pablo Villafañez <jpvillafanez@izertis.com>
The next oCIS release is 9.0.0, so all envvars that were annotated with
the previously planned 8.3.0 introduction version need to be updated.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
* feat(search): add a --timeout flag to the index command
ocis search index called the search service with a hard-coded 10 minute
request timeout. The service walks the whole space inside that request, so
when the timeout expired the walk was cancelled (error walking the tree:
context canceled) and everything after that point stayed unindexed. A space
whose walk takes longer than ten minutes could never be fully indexed from
the command line.
The timeout is now a flag: --timeout takes a duration, default 10m so the
behaviour is unchanged out of the box; 0 waits indefinitely (go-micro treats
a zero RequestTimeout as an already-expired deadline, so a far-off one is
substituted).
Fixes#13052
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>
* docs(search): say the index command needs the running search service
The index command is a gRPC client of the search service and never opens
the Bleve index, so it works with the default exclusive lock
(SEARCH_ENGINE_BLEVE_SCALE=false) but needs the service running.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WpoeSoKYEdgQcWjEzTVKpT
Signed-off-by: Paul Faure <paul@faure.ca>
---------
Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* feat(audit): record tag changes in the audit log
Graph publishes TagsAdded and TagsRemoved on every tag assign and unassign,
but only the search service listened, so a tag change left no trace in the
audit log.
The audit service now registers both events and logs them as file_tags_add
and file_tags_remove, with the acting user (Executant), the space owner, the
file id and path, and the comma-separated tags. Graph sets the Timestamp on
both events, which it left unset. Two test cases use different owner and
actor ids; the audit README documents the two actions.
Fixes#13054
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Paul Faure <paul@faure.ca>
* fix(audit): record only the tags that actually changed; skip no-op tag events
Review follow-up for #13055:
- graph: TagsAdded/TagsRemoved now carry the tags that were actually added
or removed (requesting an existing tag, or removing an absent one, is not
a change). Search only uses the event's Ref, so it is unaffected.
- audit: skip tag events whose tag list is empty. Graph still publishes
TagsRemoved for search when nothing was present; that is not an audit event.
- audit: document why User is the executant for tag events; describe Tags
as carried by the event; remove a stray copy-pasted doc comment.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WpoeSoKYEdgQcWjEzTVKpT
Signed-off-by: Paul Faure <paul@faure.ca>
* fix(audit): carry the requested tags in tag events, as before
Per review: TagsAdded/TagsRemoved go back to carrying the tags as
requested, and the audit log records every request, including tags that
were already present (or absent, for a removal), so repeated requests stay
visible. Computing the actual delta belongs in the tags package, not here.
Removes the graph-side tagsDiff helper and its test, and the audit
service's skip for empty tag lists. The other review fixes stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WpoeSoKYEdgQcWjEzTVKpT
Signed-off-by: Paul Faure <paul@faure.ca>
---------
Signed-off-by: Paul Faure <paul@faure.ca>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
* refactor(storage-users): [OCISDEV-1382] list upload sessions through the coordinator
Signed-off-by: Firas Frikha <firas.frikha@kiteworks.com>
* fix(storage-users): [OCISDEV-1382] use a safe type assertion for the driver config
Signed-off-by: Firas Frikha <firas.frikha@kiteworks.com>
---------
Signed-off-by: Firas Frikha <firas.frikha@kiteworks.com>
Remove the "Session expiring" extend/dismiss popup and its expiry
worker. Drop the frontend session_duration capability and config;
OCIS_MFA_SESSION_DURATION stays in use by the proxy.
* chore(OCISDEV-900): bump reva to pr7-switchover, add upload_directory and mount_id to revaconfig
* chore(OCISDEV-900): bump reva to the switchover rebased on the upload write fix
* chore(OCISDEV-900): bump reva to main with the upload coordinator switchover
---------
Co-authored-by: Firas Frikha <firas.frikha@kiteworks.com>
* fix: the public share configuration and fixed graceful shutdown
* fix: [OCISDEV-1433] remove GRPC_MAX_CONNECTION_AGE
The setting closed healthy grpc connections on a timer so that clients would redo
their DNS lookup. It never helped against the failure it was reached for - a
connection whose peer stopped answering - because the age limit is enforced by
the server, the grace period was left at infinity so a request already in flight
was never ended, and any value without a unit suffix silently disabled it again.
Detecting a peer that stops answering is now the job of the grpc clients, which
ping the peer while a request is in flight. The servers here got the matching
enforcement policy so they accept those pings; the client side arrives with the
next reva bump.
* fix: Added the new variable OCDAV_DISABLE_PROPFIND_PUBLIC_LINK_RESOLUTION that disable the resolution of public link shares when answering PROPFIND requests.
* chore: bump reva
* fix: The keepalive added to grpc clinet
* chore: bump reva
* build(deps): bump go 1.26.8, grpc-go dependency
---------
(cherry picked from commit e86eb4d210)
For the 9.0 branch, the reva dependency was pointed at reva's main-branch
merge of PR #748 (commit 373f9509a, pseudo-version
v2.0.0-20261005091647-373f9509a363) instead of the 8.2-targeted
e0beaa380005, since the 8.2 merge predates the VaultMode/UploadSessionFilter.Orphaned
APIs already present on the 9.0 reva lineage.
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
# Conflicts:
# changelog/unreleased/security-bump-grpc.md
# go.mod
# go.sum
# vendor/google.golang.org/grpc/server.go
# vendor/google.golang.org/grpc/stream.go
# vendor/google.golang.org/grpc/version.go
# vendor/modules.txt
`requireAcr()`, used by the admin settings route guards, redirected to the
IdP whenever the `acr` did not match, so a user without a second factor
looped forever.
It now uses the same protection as the vault: the step-up carries its
target as OIDC state, and if the IdP answers it without the required
`acr`, `requireAcr()` returns false. The admin settings guards then
redirect to the default view and an error message is shown.
Follow-up to https://github.com/owncloud/ocis/pull/12985, which fixed the same loop for the vault.
* chore: bump reva
* chore: bump pnpm dependencies
* fix: avoid go vet false positive in userlog conversion.go
The go.mod bump to go 1.26.8 made go vet flag loadTemplates' calls to
t.Get(nt.Subject/nt.Message) as non-constant format strings, breaking
the build for services/userlog/pkg/service. These are translation
lookup keys, not printf format strings, so route the call through a
local func value to defeat vet's static trace.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
* chore: bump grpc
Fixes GO-2026-6443, a server panic when handling requests missing
authority or Host headers, flagged by govulncheck in CI.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Selecting a language dropped focus to the page body and the save
confirmation went unannounced, because the select's own best-effort
refocus raced against the handler's translation reload and network
save. Restore focus explicitly once that work settles, before
announcing the save.
* fix(web): stop redirect loop when vault MFA step-up fails
Signed-off-by: Samuel Schumacher <samuel.schumacher@werkspiel.de>
Signed-off-by: Samuel Schumacher <schumacher@b1-systems.de>
* fix(web): leave vault with a full page load after failed MFA step-up
Returning to `/` in-app kept the vault clients and loaded vault spaces
with the non-MFA token, which ended on the RUNTIME-BOOTSTRAP-040 crash
page. Vault mode is fixed per page load, so reload outside the vault
instead and show the MFA error message after the reload. The spaces
load error handler no longer routes to the crash page while leaving.
Also addresses review feedback:
- use $pgettext with translator context for the error message
- test that an expired user with a fresh marker is still redirected
* fix(web): only treat a vault step-up as failed after the IdP answered it
The step-up marker relied on a 5 minute TTL, so a user who went to the
IdP, pressed back and opened the vault again got the error without ever
seeing the IdP. The step-up request now carries its target as OIDC
state; the sign-in callback picks it up and only the navigation right
after the callback counts as the answer. The sessionStorage marker and
the TTL are gone.
Also addresses review feedback:
- simplify the auth guard check to `redirect !== undefined`
- drop the storage key re-export, the spec imports it from the helper
Signed-off-by: Samuel Schumacher <schumacher@b1-systems.de>
---------
Signed-off-by: Samuel Schumacher <samuel.schumacher@werkspiel.de>
Signed-off-by: Samuel Schumacher <schumacher@b1-systems.de>
* fix(web): [OCISDEV-1478] move combobox role to the focusable input
The combobox role and its ARIA state lived on vue-select's non-focusable
wrapper div, so screen readers never announced the actual input as a
combobox and its accessible name fell back to a generic hardcoded label.
Moves role, aria-expanded, aria-controls, aria-haspopup and
aria-activedescendant to the focusable search input and gives it its own
label.
* fix(web): [OCISDEV-1478] fix CI, drop QuotaSelect's own search slot
It rendered a plain unlabeled input, bypassing OcSelect's accessible
one. That only worked by accident because vue-select's wrapper div
used to carry a fallback label, which the combobox fix removes.
feat(web): adopt Nx as task orchestrator for web/
Introduces Nx on top of the existing pnpm workspace, so lint/typecheck/
test can be scoped to only the projects affected by a change instead of
running against the whole monorepo on every PR.
- Phase 0: add nx (^23.2.1) as a workspace devDependency, nx.json with a
targetDefaults entry for test:unit (cache: true), ignore .nx/cache and
.nx/workspace-data. No behavior change to any existing script.
- Phase 1: register @nx/vitest's inference plugin so every package with
a vitest.config.ts gets a real, cached "test" target read directly
from its own config, not just the packages that happened to already
declare a "test:unit" npm script. Excludes vite.config.common.ts,
the root vite.config.ts and vite.cern.config.ts from the plugin's
default glob - none of them are test configs, and loading them as one
aborts the whole project graph. defaultBase: "master" (bare `nx
affected` defaults to a branch named "main"). testMode: "run" so `nx
run <project>:test` doesn't default to vitest's watch mode locally.
- Phase 2a: register @nx/eslint/plugin for a per-project "lint" target
on every project (root `lint` script untouched).
- Phase 2b: register @nx/vite/plugin's typecheckTargetName for a
per-project "typecheck" target on projects with their own real
vite.config.ts (design-system, web-client, web-pkg, web-test-helpers).
The ~20 web-app-*/web-runtime projects only have a vitest.config.ts
and aren't covered; root `pnpm run check:types` (whole-repo vue-tsc)
stays the one check that covers everything.
- Phase 3 (CI): adds a `full-run` output to detect-web-changes - true for
push to master/stable-* or a `[full-ci]` PR title (unchanged behavior),
false for a normal PR, which instead runs `nx affected -t lint` / `nx
affected -t test --base=<PR base sha>`. Added fetch-depth: 0 to
web-build-test's checkout, needed for `nx affected --base=<sha>` to
find that commit. Check types and the full-run unit-test path
deliberately stay whole-repo (see inline comments for why).
Also:
- removes design-system's broken "lint": "lint:stylelint" alias (needed
the "lint" name free for the new per-project target; it was never
callable as written - "lint:stylelint" isn't a binary - and nothing
called it).
- makes the design system's webfontloader import fire-and-forget so an
in-flight rejection at test teardown doesn't surface as an unhandled
rejection under vitest's per-project runs.
- pin `typescript` via `pnpm.overrides`. Adding nx's own devDependencies
makes pnpm re-resolve the workspace's peer graph, and today's registry
now has a typescript 6.x that some peer ranges accept - without the
pin, half the vue-peer-dependent packages (pinia, vue-router,
vue3-gettext, focus-trap-vue, ...) fork into a second, incompatible
module instance. Same pin as the dependency-cycle fix, for an
unrelated reason; needed independently here since this branch changes
package.json on its own.
nx's `dependsOn: ["^target"]` errors outright on a circular task graph,
so this only works once the pre-existing web-pkg/design-system/
web-test-helpers dependency cycle is fixed - see
fix(web): break web-pkg/design-system/web-test-helpers dependency cycle,
which this PR targets rather than master.
Verified: nx run-many -t test / lint / typecheck succeed for all
projects; nx show projects --affected --files=... resolves correctly for
shared config changes; nx affected -t lint --base=<sha> matches pnpm
lint; root pnpm lint/check:types/check:format/test:unit/build all still
pass unchanged (380 files / 3128 tests).
fix(web): break web-pkg/design-system/web-test-helpers dependency cycle
web-pkg, design-system and web-test-helpers formed a cycle: the mount
helpers have to install the design system (its components are registered
globally) and web-pkg's mocked pinia stores, so web-test-helpers was
imported by both packages that imported it back.
Resolved by layering the helpers onto the packages that already need
them, instead of adding another one:
design-system/testing mount/shallowMount, prop types, design system +
gettext + router-link stub plugins
web-pkg/src/testing the above, extended with casl abilities, mocked
pinia stores and component mocks
web-test-helpers re-export of web-pkg/src/testing
design-system sits at the bottom of the workspace graph, so it cannot
depend on a package that installs it - hence the generic half lives
there. web-pkg composes those plugins rather than duplicating them, so
every helper is still defined exactly once, and no package depends on
one above it.
The public API of `@ownclouders/web-test-helpers` is unchanged, so
external extensions are unaffected.
Also:
- pin `typescript` via `pnpm.overrides` - without it, a second peer-
resolved typescript version forks `vue`, which forks `vue3-gettext`
into two module instances, breaking `inject(GetTextSymbol)` for any
component mounted through these helpers.
- keep `@ownclouders/design-system/testing` external in web-pkg's lib
build. rollup matches `external` strings exactly, so the subpath was
inlined, shipping a second copy of the design system and of
@vue/test-utils into the published bundle - components and wrappers
were then not identity-equal to the consumer's own, and gettext
injection broke.
- name the web-test-helpers umd output `.cjs`. The package is ESM, so the
`.js` file that publishConfig.exports pointed `require` at could not be
required.
Verified: `pnpm install --frozen-lockfile` clean, zero cyclic-workspace
warnings; `pnpm test:unit` 380 files / 3129 tests pass; `pnpm check:types`
0 errors; `pnpm lint`/`check:format` 0 errors; `pnpm build` succeeds;
published artifacts checked by mounting through the built `dist/` bundles
the way an external extension resolves them via publishConfig.exports.
* test:start auth-bearer service separately instead of via OCIS_ADD_RUN_SERVICES
* test: fix timezone-dependent expiry assertions and flaky email notification
* test: simplify host timezone detection and log the UTC fallback
* test: oonly run cli commands test suite
* test: run all suites
* test: resolve the expiry timestamp in the timezone the mail was sent in
* test: inline the UTC expiration date conversion and drop the helper
* test: simplify the mail timezone formatter and restore the CI coverage guard
* fix(web): [OCISDEV-1474] keep focus on trigger when dropdown closes
Dropdowns that close on item click removed the clicked item from the
DOM, dropping keyboard focus to the page body and causing screen
readers to re-announce the whole page over any status message the
action triggered. OcDrop now restores focus to its trigger on close,
unless the action already moved focus elsewhere itself.
* fix(web): [OCISDEV-1474] hide trigger tooltip when refocused on close
Restoring focus to the trigger button popped its own tooltip back
open, since tippy's default trigger includes focus. The tooltip then
sat on top of the button and blocked the next click, breaking the
share e2e test. Hide the tooltip right after refocusing.
Toast/status messages (e.g. clipboard copy, file restore) were often
dropped by screen readers because the live region was never cleared
between messages. Clear it before each message and refill after a
short delay so announcements survive focus changes. Toasts themselves
are no longer live regions, since a freshly inserted aria-live node
isn't reliably announced.
Searching for share recipients in the vault ("Safe") could take minutes,
because each search scanned the role assignments of every account in the
system. Vault eligibility is now checked only for the users the search
matched, a few at a time in parallel, so the search is about as fast as
outside the vault.
The Shares navigation (desktop tab list and mobile drop-down) always offered a
"Shared via link" entry, even when public link sharing was disabled for the account —
for example in the Vault, where the backend rejects public link creation and the
capability `files_sharing.public.enabled` reports `false`. The entry led to a page
that could never contain anything.
The Shares navigation now hides the "Shared via link" entry whenever
`files_sharing.public.enabled` is `false`. Anyone who still reaches the via-link
route directly, including through the legacy `/list/shared-via-link` redirect, is
redirected to "Shared with me" at navigation time, keeping the current route scope
(e.g. `vault`) intact. When public sharing is enabled, all three entries behave as before.
PR: https://github.com/owncloud/ocis/pull/13005
* fix: use "ownCloudUUID" as attribute name everywhere
* fix: use "displayName" as LDAP attribute
* fix: ensure the WopiFolderURLBaseURL always ends with "/"
* fix: restore wrong substitution
* Revert "fix: use "displayName" as LDAP attribute"
This reverts commit 02de7a2db7.
Note that the default values outside of the graph service still remains
Tab is bound to indenting in the text editor rather than moving focus,
and the editor's own built-in escape hatch for this (Ctrl-M / Shift-Alt-M
on Mac) doesn't work on a standard Mac keyboard layout, since Option+Shift+M
is consumed by macOS as a diacritic combo before it reaches the page.
Added a Ctrl+M handler, identical on every platform, that moves focus
to the first enabled toolbar button, intercepted ahead of the editor's
own listener. The edit area's accessible description now announces
this shortcut for assistive technology users.
The notification bell's accessible name was a static "Notifications"
string regardless of the unread count, so screen reader users never
heard the count shown visually on the badge.
The accessible name (and tooltip) now include the exact unread count,
with correct singular/plural wording.
OCISDEV-1461
Arrow-key navigation in the notification bell's dropdown only started
working after an extra Tab press once it was open. Pressing an arrow
key too early fell through to the browser's default scroll action,
which looked like the dropdown had closed.
Added focus-on-open to the dropdown, matching other click-triggered
dropdowns in the codebase, so focus moves to the first item as soon
as it opens.
* fix: improve contrast on file name/extension in editor topbar
The file name and extension shown in the topbar when a file is open
were rendered in white on top of a light brand-colored background in
the vault Light Theme, and fell back to the same failing combination
in the vault Dark Theme - High Contrast (where the color was left
unset). Both now use a dark color that reads correctly against that
background.
* fix: improve contrast on share role dropdown hover text
The share permission dropdown's role options (e.g. "Can view",
"Can edit") rendered their hovered text in a color too close in
lightness to the hover background in the vault Dark Theme,
producing insufficient contrast. Lightened the color slightly to
restore adequate contrast without affecting its other uses.
* fix: improve contrast on dropdown menu item hover text
Dropdown menu items (e.g. the "New" file/folder menu) rendered their
hovered text in the brand-hover color, which is designed to work as
a background color, not as text on top of the generic hover
background. This produced poor contrast in some themes. The hover
text now uses the same passive-default color already used at rest,
which is verified to read well against the hover background in
every theme.
* fix: improve contrast on nav item and primary button hover states
Non-active sidebar navigation items and primary-variation buttons
(filled and outline appearances) rendered black text/icons on top of
a dark brown hover background in the vault theme, producing
insufficient contrast. Both now use the text-inverse color for their
hover state instead of the primary-contrast token, which resolves
correctly across all themes.
OCISDEV-1451
* docs: add changelog for nav/primary button hover contrast fix
* docs: link changelog entry to PR #12993
* fix: improve low contrast on disabled danger buttons
Disabled danger-filled buttons had insufficient contrast between their
label text and background, caused by a disabled-state opacity fade
fighting against the muted background color. Danger buttons now keep
full opacity when disabled and use a darker muted background.
The web frontend was merged in-tree under web/ and relicensed
AGPL-3.0 -> Apache-2.0 (#12491), but the README still linked web as
a separate external client repo and had a stale copyright year.
Ref #12518
Signed-off-by: Lukas Hirt <info@hirt.cz>
fix(deps): bump reva to pull in ErrNotExist->NotFound fix for RestoreRecycleItem
Restoring an already-restored/purged trash item returned 500 CODE_INTERNAL
instead of 404. Fixed upstream in owncloud/reva#740; bump the vendored reva
to 98fec04d9 to pick it up.
* feat(web): add mermaid-editor app for standalone .mmd diagrams
md-editor-v3's mermaid support only fires inside a Markdown fenced
code block, so there was no way to edit a Mermaid diagram on its own.
This adds a dedicated split-pane editor/preview app (mirroring
web-app-html-editor's shape) for the mmd/mermaid extensions, feeding
raw diagram source straight into mermaid.render() - no Markdown
wrapping involved. Invalid syntax surfaces an inline error instead of
crashing the preview pane, and the rendered SVG is sanitized with
DOMPurify the same way the embedded markdown-mermaid renderer already
does.
🤖 Generated with Claude Code
Signed-off-by: David Walter <david.walter@kiteworks.com>
* test(web): add e2e coverage and WCAG 2.2 checks for mermaid-editor
Wires the new 'mmdFile' resource type into the create/edit e2e
resource helpers (mirroring txtFile/mdFile) and adds a spec covering
diagram rendering, invalid-syntax error surfacing, and the view-mode
toggle. The new mermaidEditor.ts page-object asserts the existing
WCAG 2.1 a11y baseline every other e2e spec uses, plus an additional
WCAG 2.2 tag scan (target-size, focus-appearance, etc.) scoped to
this file only - the shared a11y helper used by every other spec
stays on its current WCAG 2.1 tag set, since widening it repo-wide is
a separate decision with its own pre-existing-violation triage cost.
🤖 Generated with Claude Code
Signed-off-by: David Walter <david.walter@kiteworks.com>
* fix(web): register mermaid-editor in the default enabled apps list
CI's e2e run for the new mermaid-editor app timed out waiting for the
"New > Mermaid diagram" menu entry: config.json.dist (a reference/dev
file) had "mermaid-editor" added, but the actual runtime default config
a packaged oCIS binary serves comes from services/web's Go defaults,
which didn't. Also runs Prettier over the 3 files check:format flagged.
🤖 Generated with Claude Code
Signed-off-by: David Walter <david.walter@kiteworks.com>
* fix(web): correct vue3-gettext version, add changelog entry
vue3-gettext was pinned to an exact "2.4.0" in web-app-mermaid-editor's
package.json (a copy-paste slip) instead of "^4.0.1" like every other
web app package, pulling in a stray v2 dependency tree with its own
deprecated transitives (glob@7.2.3, inflight@1.0.6). Also adds the
changelog/unreleased entry this PR was missing.
🤖 Generated with Claude Code
Signed-off-by: David Walter <david.walter@kiteworks.com>
* fix(web): resolve stale mermaid lockfile entry from merge conflict
web/pnpm-lock.yaml pinned mermaid to 11.16.0 for the new
web-app-mermaid-editor importer, left over from a badly-resolved merge
with master (which resolves mermaid to 11.16.1 in every other
importer and in the packages snapshot). pnpm install --frozen-lockfile
failed in CI with ERR_PNPM_LOCKFILE_MISSING_DEPENDENCY since 11.16.0
had no corresponding packages entry.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: dj4oC <david.walter@kiteworks.com>
* test(web): register mermaid-editor in the e2e CI oCIS config
tests/config/ci/ocis-config.json is the WEB_UI_CONFIG_FILE the e2e
docker-compose stack (tests/acceptance/docker/src/ocis-base.yml) feeds
the oCIS instance under test. It keeps its own "apps" allowlist,
separate from services/web's Go defaults (already fixed) and
config.json.dist (also already fixed) - and it never got
"mermaid-editor" added. Without it, the running instance never
registers the app, so the "New > Mermaid diagram" menu entry the
mermaidEditor.spec.ts e2e test waits for never renders, and the click
times out after all retries.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: dj4oC <david.walter@kiteworks.com>
* fix(web): give the mermaid-editor CodeMirror pane an accessible name
The plain-text CodeMirror content div renders with role="textbox"
aria-multiline="true" but no aria-label/aria-labelledby/title, which
axe-core (and screen readers) flag as a serious WCAG violation - this
is exactly what the e2e a11y scan caught on the new mermaidEditor
spec. Fixed via EditorView.contentAttributes, the same mechanism
CodeMirror exposes for this. MermaidEditorPane.spec.ts is updated to
install defaultPlugins() like its sibling specs already do, since the
component now calls useGettext() for the label text.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: dj4oC <david.walter@kiteworks.com>
---------
Signed-off-by: David Walter <david.walter@kiteworks.com>
Signed-off-by: dj4oC <david.walter@kiteworks.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
* fix: [OCISDEV-1413] unify when the maintenance banner clears
The webdav client and ClientService disagreed about when to clear
maintenance mode: webdav cleared it on any non-503 error, including a
plain 404 or 500, while ClientService only cleared it on a genuine
successful response. Whether the maintenance banner disappeared during
real maintenance depended on which client made the last request.
Both clients now only clear maintenance mode on a 2xx response, and the
now-unused clearOnUnrelatedError option is dropped.
* docs: link changelog entry to #12966
* fix: [OCISDEV-1413] treat the 503 signal, not general unhealthiness, as maintenance
Per review feedback: maintenance is an explicit, deliberately-chosen
server state, not the same as a general error. An unrelated response
(a 401, a 404, even a 500) proves the server answered and is not the
same as the 503 maintenance signal, so it should clear the banner too.
Only a transport-level failure, where no response is received at all,
is left untouched, since that is not evidence either way.
acceptance-coverage ran unconditionally (if: always()) even when its
upstream test jobs (local-api-tests, cli-tests, ldap-pool-tests,
core-api-tests) were skipped for docs-only PRs, per detect-changes.
With no coverage artifacts to download, actions/download-artifact
never creates the target directory and the subsequent
`go tool covdata textfmt` step fails with "no such file or
directory", blocking merge of docs-only PRs.
Skip the job using the same docs-only guard build-and-test already
uses.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* chore: [OCISDEV-1412] remove the readOnly workaround from the libre-graph client generation
The client generation stripped every `readOnly: true` line from the spec
before running the generator, because the typescript-fetch templates leave
read-only fields out of the serializers they emit and a few fields oCIS does
accept on write were annotated read-only. Stripping them all also unmarked
the fields that genuinely are response-only.
The annotations are corrected upstream now, so the generator runs on the spec
as published. Everything oCIS writes is still serialized: the drive quota
total, the drive type, a space image and readme, the hidden flag and remote
item of a drive item, and the fields of a sharing permission. Response-only
fields such as the computed quota values are now typed read-only, which the
handful of places that assigned to them had to be adjusted for.
* chore: [OCISDEV-1412] regenerate the libre-graph client after the driveType split
drive now declares its own writable driveType while driveUpdate marks it
readOnly, so updateDrive no longer accepts a value the server rejects.
* fix: [OCISDEV-1412] keep the special folder id in the drive update body
Setting a space image or readme patches the drive with the id of an existing
item under special. driveItem.id was marked readOnly in the spec, so the
generated serializer dropped it and the server skipped the entry: the request
returned 200 and did nothing, which the e2e space image test caught as a
timeout waiting for the image to load.
The annotation is gone from the spec, and updateDrive now has tests asserting
the serialized body, since neither type checking nor a mocked call notices a
field that quietly disappears.
* fix: [OCISDEV-1412] regenerate after splitting the drive special folder schema
An update to a drive assigns its special folders by referencing existing
items by id. Upstream now models that with a dedicated schema instead of
reusing the response-only drive item, so the update body keeps the id while
the drive item itself is read-only again.
The wrapper around the generated client typed the update body as a drive
rather than a drive update, which no longer holds now that the two differ in
how they describe the special folders.
The proxy public share authenticator set the brute force protection skip
marker on every authentication, including requests where the proxy is the
only authenticator. Failed password attempts on those requests were never
counted, so the rate limit for password protected public links was not
enforced.
The skip marker is now only set for requests that are re-authenticated
downstream, so failed attempts are reliably counted and the throttle is
applied consistently.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Change the documented introductionVersion of the
OCIS_LDAP_INSTANCE_MAPPER_CACHE_TTL environment variable from 8.0.0 to 8.3.0.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* feat(web-client): add native fetch http core
* test(web-test-helpers): replace axios mocks with fetch-shaped helpers
* refactor(web-pkg): build HttpClient on the fetch core
* refactor(web-pkg): unify ClientService interceptors on the fetch core
* refactor(web-pkg): drop axios types from useRequest
* fix(web): align error and header access with the fetch core
* refactor(web-client): move ocs onto the fetch core
* refactor(web-client): move webdav helpers onto the fetch core
* chore(web-client): regenerate graph client with typescript-fetch
* refactor(web-client): adapt graph wrappers to the fetch-based generated client
Regenerate the libre-graph client with the typescript-fetch template and
rewrite the eight facade factories against it:
- the generated APIs are classes (`new XxxApi(config)`), take a single
request-parameters object and resolve to the payload rather than an
envelope, so the wrappers no longer destructure `{ data }`
- every generated request is routed through `FetchClient` via
`Configuration.fetchApi`, keeping header injection, maintenance
detection and `HttpError`-on-non-2xx intact. Callers keep seeing
`HttpError` with `statusCode` and `data`, never `ResponseError`
- `toInitOverrides` merges our per-request headers into the generated
`RequestInit` instead of replacing them, which a plain object would do
because the runtime spreads `initOverrides` shallowly
- undeclared query parameters travel on a symbol-keyed channel, since the
runtime assembles the URL before it applies `initOverrides`
`--type-mappings=DateTime=string` keeps date-times as strings, matching
what the previous template emitted and what the app expects.
* refactor: use the generated property names for OData-annotated graph fields
The typescript-fetch template emits real JSON serializers, so annotated
fields like `@libre.graph.permissions.actions`, `@odata.id`, `@UI.Hidden`
and `@client.synchronize` are mapped to camelCase properties on the way in
and back to their wire names on the way out. The wire format is unchanged;
only the TypeScript-side names are. Reads left on the old names would have
silently resolved to `undefined`, and writes would have been dropped.
The OData `$filter` expression in FileSideBar keeps its annotated spelling,
being a query value rather than a property.
Response-only fields are now `readonly`, which the editable copies and test
fixtures built from them need to opt out of, hence `writeable()`.
* chore: drop the axios dependency
Nothing imports axios any more, so remove it from the eight manifests that
declared it and update the web-client README, whose usage examples still
instantiated an axios client.
Also applies prettier to the files touched over the course of the migration.
* fix(web-pkg): keep the axios-era surface on HttpClient
Dropping axios changed more than the transport. Four spellings that consumers
outside this repo were written against disappeared with it, and none of them had
to.
Response headers were a plain lowercased object under axios, so `headers['etag']`
was the only way to read one; a fetch `Response` exposes a `Headers`, where
`get('etag')` is. `httpHeaders` wraps the native object in a proxy that answers
both, case-insensitively, and enumerates the lowercased names — it stays a real
`Headers`, so neither spelling is a migration.
A rejected request carried its body on `error.response.data` and its status on
`error.response.status`. `HttpError` names them `data` and `statusCode`, which
this repo unifies on, but the response those shadow is reachable from outside it,
so `buildError` defines both on the response as well and keeps axios's
`Request failed with status code <n>` message. The body is read from a clone, so
callers still get an unread one.
The config `HttpClient` takes has always named the request body `data`, and web
extensions pass `data` when they issue raw WebDAV requests through
`httpAuthenticated`. Carrying the core's `body` up would have dropped those
bodies silently, so `RequestConfig` keeps `data` and `send` translates it. For
the same reason a default-responseType body that is not JSON falls back to the
raw text instead of throwing: a WebDAV multistatus answered without an explicit
`responseType: 'text'` used to arrive as a string, and a `SyntaxError` there
would turn a working request into a failing one.
`cancel()` is back, on an `AbortController` instead of a `CancelToken`. Combining
the client-wide signal with a per-request one needs a listener per request, so
`send` disposes of them once the request has settled rather than letting them
accumulate on a long-lived client.
`mockAxiosResolve` and `mockAxiosReject` stay exported from web-test-helpers as
deprecated aliases, so suites written against the axios era keep compiling.
* fix(web-client): keep read-only graph fields in request bodies
The typescript-fetch templates omit fields the spec marks `readOnly: true` from
the generated `*ToJSON` serializers. Every field of `Quota` is annotated that
way, so `updateDrive(id, { quota: { total: 500 } })` went out as
`{ quota: {} }` and quotas could no longer be changed. Seventeen other models
were affected the same way, among them `UserUpdate` and `ItemReference`.
The annotation is now stripped from the spec before generating, which is what
the axios-generated client effectively did. That also drops the `readonly`
modifiers, so the `writeable` escape hatch is no longer needed.
* fix(web-client): let graph errors keep their status and body
The generated runtime wraps whatever its `fetchApi` throws in a `FetchError`,
which buried the `HttpError` the core raises for a non-2xx response. Callers
that branch on the status saw neither `statusCode` nor `data`, so the banned
password hint on a public link never appeared and an aborted graph request
stopped looking like an abort.
Rethrowing from an `onError` middleware escapes the wrap for every graph
operation at once.
* fix(web-client): let fetch set the multipart boundary for FormData bodies
A caller-supplied `Content-Type: multipart/form-data` carries no boundary. Axios
replaced the header before sending, fetch passes it through, so the server could not
parse the body and the admin settings logo upload silently did nothing.
* fix(web): merge request headers case-insensitively, plus PR review fixes
Header names are case-insensitive, but the header layers were merged with an
object spread, where object keys are not. `Authorization` and `authorization`
both survived it, and a spec-compliant `Headers` applies a record init with
`append`, so the two were joined into `Bearer stale, Bearer fresh` instead of
the override replacing the token. The graph bridge lowercased every per-request
header name while the client-wide ones are canonically cased, which made the
collision the normal case rather than an edge one.
Merge each layer with `Headers.set()` instead, in the fetch client and in the
graph `initOverrides` bridge, which had its own copy of the same spread. The
new specs run under `@vitest-environment node`: happy-dom's `Headers` applies a
record init with `set` semantics and would hide the bug.
Also from the PR review:
- read an error body with the caller's `responseType` rather than cloning the
response, so a `blob` caller keeps getting a Blob on `error.data`
- treat any rejection on an aborted signal as an abort, since `abort(reason)`
rejects with the reason verbatim and only defaults to an `AbortError`
- share the maintenance-mode `onResponse` handler between the webdav client and
`ClientService`, with their pre-existing disagreement about clearing on an
unrelated error made explicit instead of silently unified
- pass the graph headers straight through as a `HeadersInit` and drop the
unused `httpClient` from the graph factory options
- collapse `combineSignals` onto `AbortSignal.any`
- let an abort through `getFileContents` unwrapped
- assert maintenance detection against the real `shouldResponseTriggerMaintenance`
instead of a mock, which had been hiding that a 500 is not a maintenance signal
* chore(web): drop leaked test title prefixes, document the maintenance-mode widening
* fix(web): keep graph fields the generated decoder used to lose
The typescript-fetch templates rebuild every response from the fields the
spec declares, which is what lets them rename the OData annotated fields.
Two consequences were unhandled.
A field the spec does not declare is dropped. oCIS returns `attributes` on
users, filled from OCIS_USER_SEARCH_DISPLAYED_ATTRIBUTES and displayed by the
sharing autocomplete, and the field is not part of the upstream spec. It is
now declared before generating, and the generation script fails if the spec
stops matching the line it patches, so the field cannot go missing silently.
A declared field the server omits is present holding `undefined`, so
`'accountEnabled' in user` no longer says whether the server sent it. Three
places read it that way: the login select in the user edit panel showed no
value at all, its watcher kept reporting unsaved changes, and sorting the user
list by login threw on `undefined.toString()`. The same went for
`'total' in quota`, which showed a personal quota of `?` for users without one.
* test: rollback sending last chunk twice status code to only 404
* test: run all suites
* test: run coreApiWebdav remaining suite in k8s
* test: exclude coreApiWebdavPreviews
Document that the *_TLS_INSECURE options for the nats-js-kv store, cache and
service registry disable authentication of the NATS server and are for testing
only, so operators securing a multi-node deployment are not misled into
weakening the connection they just enabled TLS on.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Five review comments landed on #12892 after it merged.
**The tag overflow popover dismissed itself on click.** `mode="hover"` maps to
tippy's `mouseenter focus` trigger, and `hideOnClick` is hardcoded true in
`OcDrop`. tippy only skips its document-press hide when the trigger contains
`click`, so a click on the button fell through to `hide()` and set
`didHideDueToDocumentMouseDown`, which then blocked the focus trigger from
reopening it — the pointer had to leave and come back.
`mode="click"` fixes it without touching the design system: tippy toggles a
click-triggered instance, so the button opens and closes it, Enter/Space work
because a native button activation dispatches a click, and Escape still closes
via the `hideOnEsc` plugin with a click able to reopen it. Under `hover` that
last one was a dead end — Escape hid the popover and no new focus event could
follow. The trade is that hovering no longer reveals the tags; a disclosure
that answers to the keyboard is worth more than a hover shortcut.
That click also had to stop propagating: the button sits inside the `<tr>` that
`OcTable` highlights on click, so opening the popover selected the file as
well. tippy's listener is on the same element, so stopping propagation still
toggles the popover.
`is-nested` goes with it. It was set purely to suppress the `hideAll` that ran
when a pointer crossed the button, and pointer movement no longer opens
anything. Dropping it also un-silences `showDrop`/`hideDrop`, which `OcDrop`
only emits for drops that are not nested.
**The button claimed to be a popover trigger without saying so.** It now
carries `aria-haspopup` and an `aria-expanded` driven by those two events.
tippy manages `aria-expanded` itself only when the reference does not already
have one (`hasAriaExpanded` is read once at create time), and Vue renders the
attribute before `OcDrop` mounts, so there is one owner, not two.
**The accessible name dropped the visible text.** WCAG 2.5.3 Label in Name
wants the visible `+ 3` inside the name; `Show 3 more tags` left speech input
with nothing to match. The count now leads the string.
**The read-only tag lock was invisible to screen readers.** No
`accessible-label` means `OcIcon` renders it `aria-hidden`, so the only signal
that a tag cannot be removed was the absent deselect button.
**Themes inherited no tag palette.** `tagColorsList` was missing from
`defaults.designTokens`, so a deployment serving its own theme.json gets grey
chips. Seeding the defaults with the light palette turned out to be the wrong
place for it: every other value in that block is an empty-string placeholder,
because supplying colours is a theme's responsibility. The defaults stay
colourless. `useTagColor` already returns -1 without a list and `OcTag` then
renders the plain chip, which is what tags looked like before this feature.
* feat: [OCISDEV-115] colour tag chips by tag name
Tag chips were all the same grey, so a file's tags were hard to tell apart
at a glance and the same tag looked like nothing in particular across the app.
Fill each chip with a colour derived from the tag name: `hash(tag) % length`
picks a slot in the theme's new `designTokens.tagColorsList`, emitted as
`--oc-color-tag-N`. The colour is derived, never stored, so a tag looks the
same for every user on every device with no API, storage or migration change.
The label colour is computed per fill rather than pinned to a token: the
fills come from the theme, so one token cannot stay legible against all of
them, and `--oc-color-text-inverse` gets it backwards in the light theme. The
calculation lives in `useTagColor` rather than in `OcTag` because the theme
store is a reactive dependency and `getComputedStyle` is not — resolving it
in the component would leave the label stale after a theme switch. The fill
is read straight out of `tagColorsList` rather than from the emitted css var,
since `getHexFromCssVar` reports an unresolvable var as `#000000` and would
hand a pale fill an illegible white label.
A filled chip carries `oc-tag-filled`, which forces the colours of everything
nested inside it down as `inherit`/`currentColor`. Those nested elements
otherwise repaint themselves — a `router-link` takes the global anchor colour,
a raw `OcButton` its own swatch, `.oc-tag .oc-icon > svg` a muted fill —
which left navy labels and a washed-out close icon on the deep light-theme
fills, and labels that were too light on the pale dark-theme ones. Nothing
hardcodes a colour, so both themes are covered by construction.
`OcTag` keeps its default appearance: it is the generic badge (the app-store
"most recent" pill, instance badges, the disabled-space indicator, the `+N`
counter), so both `fillColor` and `labelColor` are opt-in.
`initializeThemes` now merges with replace semantics for arrays. deepmerge
concatenates by default, which would turn a `tagColorsList` present in both
`defaults` and a theme into 60 entries and shift every hue.
Also make the tag overflow indicator on the files list a real, keyboard
reachable button that shows the hidden tags in a popover instead of opening
the sidebar. That popover is sized to its tags: `OcDrop` is a fixed 300px
wide, which left it nearly empty when it held a single chip capped at 80px by
`.resource-table-tag`, with the right alignment the tags column passes down
pushing that chip to the far edge. 300px is kept only as a cap so a long tag
still truncates.
Both `theme.json` copies gain 30 placeholder fills per theme, per theme
rather than in `defaults`, so the feature can be exercised end to end while
design's real values are outstanding. They were generated by binary-searching
HSL lightness for a target relative luminance per hue, since equal-lightness
hues differ a lot in perceived brightness: deep fills with white labels in
the light themes, pale fills with black labels in the dark ones. Worst-case
label contrast is 6.31:1 (light) and 8.52:1 (dark), higher in both
high-contrast themes. Both copies are needed — web-runtime's file is what
`pnpm build` publishes to `web/dist/themes`, while an ocis binary serves the
go:embed-ed `services/web/assets/themes` copy instead
(services/web/pkg/server/http/server.go layers it over the embedded core
assets). Every theme in a file has the same list length, so a tag keeps its
colour slot across a theme switch.
* ci: Update k6-load-test.yml for new AWS setup
Moving from the old Hetzner hosted machines to a new AWS setup with a single self-hosted Github worker.
* fix: [OCISDEV-1381][PANAMA-538] Resolving comment on PR #12819
* fix: [OCISDEV-1381][PANAMA-538] Updated SEED_USERS_TOTAL=20
---------
Co-authored-by: Lukas Schwarz <lukas.schwarz@kiteworks.com>
Co-authored-by: Deyan Zhekov <deyan.zhekov@kiteworks.com>
The env var was tagged introductionVersion:"NEXT", a placeholder the docs
process rejects. The var was introduced by #12467 and is still unreleased;
master is on the 8.3.0 dev cycle, so pin it to 8.3.0.
* ci: pass the PR title through env: instead of interpolating it into the shell
acceptance-tests.yml and web-tests.yml both build their step script with
PR_TITLE="${{ github.event.pull_request.title }}". The expression is
substituted into the script text before bash parses it, so a pull request
title closing the quote runs as code on the runner.
Both steps write the value that gates the rest of the workflow
(docs-only, web-changed) to $GITHUB_OUTPUT, so an injected title can also
forge that value and skip the suite meant to test the pull request.
Passing the title through env: leaves it as an environment variable that is
never parsed as source. The [full-ci] check is unchanged.
* ci(release): take version_override through env: and reject non-version values
The env: move alone is not enough in release.yml: the value becomes the `version`
job output, which nine later run: blocks interpolate into their own script text --
one of them unquoted -- so a payload that never breaks out of the quotes at line 56
still executes in a different job. An allow-list on VERSION closes all nine at the
source.
* fix: apply renewed access token in embed mode with delegated authentication
The "owncloud-embed:update-token" message listener was registered unbound,
so it crashed on `this.configStore` before applying the renewed token. It
also passed the whole message payload to updateContext instead of the
access token string. The embedded instance therefore kept the initial
access token until it expired and the user got logged out.
* test: merge delegated token update tests into the existing describe block
Move the window.dispatchEvent based tests into the pre-existing
handleDelegatedTokenUpdate block and add coverage for update-token
messages arriving without an access token.
* test: assert renewed token payload and shorten changelog title
Assert the exact updateContext payload in the trusted-origin test so it
guards againsst the payload regression, and parameterize the message event
helper so the positive case can send a distinct renewed token. Shorten the
changelog title to fit the 80 character lint limit.
* fix: [OCISDEV-128] recover login page after the current user was deleted
When a user account was deleted while its session was still stored in the
browser, opening the web interface redirected to an authentication error page
and looped there. lico kept accepting the stale logon session but could no
longer resolve the deleted user, so the sign-in flow re-issued the authorization
request without its parameters and lico answered with a self-referential
error redirect that the browser followed forever.
Add an idp middleware that detects this stuck authorization loop (an OAuth2
error parameter on the authorize endpoint, which never occurs in a healthy
inbound request), expires the stale logon cookie server-side and restarts a
clean login so a different user can sign in.
* chore: reference PR number in changelog
* feat: add ownCloud branding background to login screens
Ships the ownCloud branding image as the default IDP login background and
aligns the web and Keycloak login screens to match.
Reworked for the no-npm IDP (services/idp/src was removed by #12086): the
branding is applied directly in the committed bundle. The default background
image lives at services/idp/assets/identifier/static/media and is referenced
from theme.css, which now anchors it to the top right (background-position) so
the ownCloud logo stays fully visible at every viewport aspect ratio instead
of being cropped by center positioning. Operators can still override the image
via IDP_LOGIN_BACKGROUND_URL (unchanged on master).
Also embeds the same image in the web service theme assets and adds an
"owncloud" Keycloak login theme (already anchored top right) to the
ocis_keycloak deployment example.
Signed-off-by: David Walter <david.walter@kiteworks.com>
Signed-off-by: Lukas Hirt <info@hirt.cz>
* docs(deployment): title-case ocis_keycloak README headings
Co-authored-by: Martin <github@diemattels.at>
Signed-off-by: Lukas Hirt <info@hirt.cz>
---------
Signed-off-by: David Walter <david.walter@kiteworks.com>
Signed-off-by: Lukas Hirt <info@hirt.cz>
Co-authored-by: kobergj <jkoberg@owncloud.com>
Co-authored-by: Martin <github@diemattels.at>
A theme can define its own logo per UI variant under
clients.web.themes[].logo, including the built-in "owncloud" theme, most
of whose variants (dark, high contrast, ...) already do this. The admin
logo upload endpoint only ever patched clients.web.defaults.logo, so the
active theme's own per-variant logo kept winning over a logo an admin
explicitly uploaded through the admin settings web app.
Force the branding (admin-uploaded) logo onto every theme variant's own
logo entries after the theme merge, so it always takes precedence.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* feat(collaboration): add Version to Collabora WOPI CheckFileInfo
Add Version field to the Collabora struct to match Microsoft and OnlyOffice
implementations. This allows Collabora Online to properly detect stale
documents for cache invalidation and document reload detection, which is
particularly important in multi-node Kubernetes deployments.
- Add Version field to Collabora struct with json:"Version,omitempty" tag
- Add case for KeyVersion in Collabora.SetProperties method
- Update existing Collabora integration tests to verify Version is populated
- Add three unit tests for Version handling in collabora_test.go
- Add integration test verifying Collabora CheckFileInfo response includes Version
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): add LastModifiedTime to Collabora CheckFileInfo for conflict detection
Add LastModifiedTime to the Collabora struct to match Microsoft and OnlyOffice,
and implement the X-COOL-WOPI-Timestamp conflict detection PutFile relies on to
use it. Collabora Online tracks the LastModifiedTime it received in
CheckFileInfo and sends it back during PutFile; without this field the WOPI
host has no way to detect that a file changed since Collabora last checked it,
so concurrent edits could silently overwrite each other.
- Add LastModifiedTime field to Collabora struct (json:"LastModifiedTime,omitempty")
and wire it in Collabora.SetProperties via the existing KeyLastModifiedTime constant
- fileconnector.go already populates KeyLastModifiedTime unconditionally for all
targets, so no gating changes were needed there
- Add HeaderCoolWopiTimestamp ("X-COOL-WOPI-Timestamp") constant and thread it
from HttpAdapter.PutFile through the ContentConnectorService.PutFile interface
- ContentConnector.PutFile compares the client-supplied timestamp against the
file's current mtime and returns a new NewResponseCOOLConflict() (409,
COOLStatusCode 1010) on mismatch; an empty timestamp (Microsoft/OnlyOffice,
and file-creation call sites in PutRelativeFileSuggested/Relative) skips the
check entirely, so existing WOPI clients see no behavior change
- Hand-updated the mockery-generated ContentConnectorService mock (mockery
itself fails to build under the local Go toolchain) and every PutFile call
site/mock expectation across fileconnector.go, fileconnector_test.go,
contentconnector_test.go and httpadapter_test.go for the new 5-arg signature
- Add fileinfo/collabora_test.go unit tests for LastModifiedTime SetProperties/
JSON marshalling/omitempty, update the 3 existing Collabora CheckFileInfo
integration tests with the expected LastModifiedTime, and add PutFile tests
covering COOL timestamp mismatch (409) and match (success) in
contentconnector_test.go
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* fix(collaboration): handle nil Mtime and add HttpAdapter test coverage for COOL WOPI timestamp
The COOL conflict-detection check in ContentConnector.PutFile treated a
nil Mtime as an automatic mismatch, causing a permanent 409 on every
save for files with no recorded mtime. Skip the comparison (fail open)
when Mtime is nil, matching CheckFileInfo's fallback posture. Also add
a regression test for that case, plus a test asserting HttpAdapter.PutFile
correctly reads the X-COOL-WOPI-Timestamp header and passes it through
to the content connector, which previously had no coverage.
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): add ReadOnly to Collabora WOPI CheckFileInfo
Add ReadOnly to the Collabora struct to match Microsoft and OnlyOffice, and
populate it in CheckFileInfo for all three targets. KeyReadOnly already
existed as a constant and both Microsoft.SetProperties and
OnlyOffice.SetProperties already had a `case KeyReadOnly:`, but nothing in
fileconnector.go ever put a value into the properties map for it - so
ReadOnly was silently false for every WOPI target, regardless of whether the
user actually had write access.
- Add ReadOnly field to the Collabora struct (json:"ReadOnly", no omitempty,
consistent with Microsoft/OnlyOffice since false is meaningful) and wire it
in Collabora.SetProperties via the existing KeyReadOnly constant
- In fileconnector.go's CheckFileInfo, set
infoMap[fileinfo.KeyReadOnly] = wopiContext.ViewMode != VIEW_MODE_READ_WRITE
unconditionally for all targets. wopiContext.ViewMode is already resolved
upstream from the actual CS3 permissions, space status and lock state, so
this derives ReadOnly from that single source of truth instead of
re-deriving the same signals in the connector
- Add fileinfo/collabora_test.go unit tests for ReadOnly SetProperties (true/
false) and JSON marshalling (asserting the field is present for both true
and false, since there is no omitempty)
- Add two new CheckFileInfo integration tests asserting ReadOnly=true for a
view-only mode and ReadOnly=false for read-write, and add ReadOnly: true to
the 4 existing CheckFileInfo integration tests that assert a full
Microsoft/Collabora/OnlyOffice struct under a non-read-write ViewMode
(the 2 ViewMode assignments in the Lock/GetLock test block were left
untouched since those tests don't assert against a FileInfo struct)
🤖 Generated with Claude Code
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): add SupportsUpdate to Collabora WOPI CheckFileInfo
Signed-off-by: David Walter <david.walter@kiteworks.com>
* fix(collaboration): add missing godoc comment to Collabora.SupportsUpdate
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): add IsAnonymousUser to Collabora WOPI CheckFileInfo
Implement support for the IsAnonymousUser property in the Collabora struct,
enabling Collabora Online to distinguish between authenticated and anonymous
users (public share access). This property is derived from the user context's
public-share-role indicator and is already computed in fileconnector.go.
Changes:
- Add IsAnonymousUser field to Collabora struct with omitempty tag
- Wire KeyIsAnonymousUser case in SetProperties
- Add unit tests: SetProperties behavior, JSON omit/include when false/true
- Add integration tests: anonymous user context returns true, authenticated
user returns false, UserId still populated for anonymous users
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): add URL properties to Collabora WOPI CheckFileInfo
Add the 7 MS-WOPI file URL properties (CloseUrl, DownloadUrl,
FileSharingUrl, FileVersionUrl, HostEditUrl, HostViewUrl, SignoutUrl)
to the Collabora fileinfo struct, mirroring the Microsoft struct's
existing fields and JSON tags. This is struct/SetProperties wiring
only; fileconnector.go population follows in a subsequent commit.
SignoutUrl is intentionally left unpopulated in CheckFileInfo (no
fileconnector.go change): the collaboration service has no OIDC
issuer/logout configuration to build a real sign-out URL from, so
Collabora reaches parity with Microsoft/OnlyOffice's existing
"field exists but is never populated" gap rather than introducing a
new one.
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): populate CloseURL and DownloadURL in CheckFileInfo
CloseURL and DownloadURL were never populated in CheckFileInfo for any
WOPI target (Microsoft, OnlyOffice, or Collabora), despite Microsoft's
struct having had these fields all along.
- CloseURL reuses the existing parentFolderURL (the same "folder
containing the file" URL already used for BreadcrumbFolderURL)
rather than building a second URL for the same concept. This flows
through the shared infoMap, so it now also reaches Microsoft and
OnlyOffice, both of which already declare KeyCloseURL in their
SetProperties switch; existing full-struct-equality test
expectations are updated accordingly.
- DownloadURL is built by a new createFileDownloadURL helper pointing
at this service's own GET /wopi/files/{fileid}/contents route,
authenticated with a freshly generated WOPI access token. It shares
its "generate token + build hashed-resource-id path + attach
access_token query param" logic with the existing template
createDownloadURL via an extracted createWopiResourceURL helper,
rather than duplicating it. Population is defensive: if WOPI token
generation fails, DownloadURL is simply omitted (logged) instead of
failing the whole CheckFileInfo request, mirroring the existing
TemplateSource pattern.
HostViewURL, HostEditURL, FileSharingURL, and FileVersionURL needed no
fileconnector.go change - they were already unconditionally computed
into infoMap; only Collabora's struct lacked the fields to receive
them (added in the previous commit).
Adds integration test coverage for: CloseURL/BreadcrumbFolderURL
reuse, HostEditURL vs HostViewURL distinctness, the DownloadURL route
pattern, and graceful omission of DownloadURL when WOPI token
generation fails (via ShortTokens with no store configured) without
the overall request failing.
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): complete Breadcrumb properties in Collabora WOPI CheckFileInfo
Add the four Breadcrumb* fields to the Collabora fileinfo struct that were
already present on Microsoft/OnlyOffice (BreadcrumbFolderName/URL just
needed struct wiring; BreadcrumbBrandName/URL needed new logic in
CheckFileInfo, derived from the CS3 StorageSpace Name/Root).
BreadcrumbBrandURL is withheld for public-share (anonymous) access, mirroring
the existing precedent for parentFolderURL/CloseURL, since it would expose
an internal space/resource id an anonymous user has no other way to reach.
BreadcrumbBrandName is just a display string and stays populated either way.
Also guards the new brand URL construction against a nil space root so it
degrades to an empty string instead of a misleading bare ".../f" URL when
no space info is available.
🤖 Generated with Claude Code
Signed-off-by: David Walter <david.walter@kiteworks.com>
* test(collaboration): cover BreadcrumbBrandURL when space has no root
Add a new test case to verify that when a StorageSpace has a Name but
a nil Root, the BreadcrumbBrandName is populated while BreadcrumbBrandURL
remains empty, ensuring the nil-guard doesn't allow malformed URLs.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): add PostMessage properties to Collabora WOPI CheckFileInfo
Add ClosePostMessage, EditModePostMessage, EditNotificationPostMessage,
FileSharingPostMessage, and FileVersionPostMessage to the Collabora
fileinfo struct with SetProperties wiring and godoc comments, mirroring
what OnlyOffice already exposes.
Only EditModePostMessage is actually populated in CheckFileInfo, gated
to the Collabora target: the oCIS web frontend's iframe wrapper
(web-app-external/src/App.vue, shared by all WOPI targets) only has a
real postMessage handler for UI_Edit today. The other four flags are
left unset so Collabora falls back to the corresponding URL properties
(HostEditURL/HostViewURL/FileSharingURL/FileVersionURL, added in an
earlier task) instead of firing PostMessages nobody listens for.
Because OnlyOffice's SetProperties already implements these same keys,
the Collabora-only behavior requires an explicit `if` gate on
f.cfg.App.Product rather than an unconditional map write, to avoid
silently changing OnlyOffice's current (all-absent) behavior.
Signed-off-by: David Walter <david.walter@kiteworks.com>
* feat(collaboration): add Collabora-specific IsUserLocked and IsAdminUser to WOPI CheckFileInfo
Add the two Collabora-only WOPI CheckFileInfo properties: IsUserLocked
(applies coolwsd.xml locked_commands to the user) and IsAdminUser
(unlocks Collabora's server audit panel).
- IsUserLocked is derived from the existing "secure view" condition
already used to gate DisableExport/DisableCopy/DisablePrint/
WatermarkText (ViewMode == VIEW_MODE_VIEW_ONLY with a non-empty
ViewOnlyToken), applied regardless of public-share vs authenticated
user.
- IsAdminUser is derived from the CS3 user's Opaque.Map["roles"] JSON
array (the same raw data ocis-pkg/middleware/account.go lifts into
go-micro metadata), compared against
defaults.BundleUUIDRoleAdmin only - SpaceAdmin and other roles do
not qualify.
Both keys have no matching SetProperties case in Microsoft/OnlyOffice,
so they are silently dropped for those targets, consistent with the
existing pattern for other Collabora-only properties in this
connector. No new config surface was added, matching the scoping
approach used throughout this properties-gap series.
🤖 Generated with Claude Code
Signed-off-by: David Walter <david.walter@kiteworks.com>
* test(collaboration): remove redundant Collabora omitempty test duplicates
TestCollaboraVersionOmitEmpty and TestCollaboraLastModifiedTimeOmitEmpty
fully duplicated the coverage already provided by
TestCollaboraJSONMarshallingIncludesVersion and
TestCollaboraJSONMarshallingIncludesLastModifiedTime (both already assert
JSON inclusion/omission via a shouldInclude flag). Removing the duplicates
also drops an unused `expected` table field flagged by the final
whole-branch review.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* docs(changelog): add changelog entry for Collabora WOPI CheckFileInfo gaps
Signed-off-by: David Walter <david.walter@kiteworks.com>
* test(collaboration): fix checkFileInfo acceptance tests for ReadOnly derivation
Four "check file info with different mode(s)" scenario outlines
(onlyOffice/fakeOffice, personal space and project space) hardcoded
"ReadOnly": {"const": false} for every view mode. That was accurate only
because ReadOnly was never actually populated in CheckFileInfo before this
PR (it silently defaulted to Go's zero value). Now that ReadOnly correctly
reflects whether the WOPI session grants write access
(ReadOnly = ViewMode != READ_WRITE, the exact negation of UserCanWrite),
"view" and "read" mode responses correctly report ReadOnly: true, which
these tests now assert via a new "read-only" Examples column instead of a
static const.
The "check file info with different view-mode (collabora)" scenario is
unaffected: it never asserted ReadOnly in its schema.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* revert(collaboration): remove X-COOL-WOPI-Timestamp PutFile conflict detection
CI on owncloud/ocis PR #12593 reproducibly failed the e2e test
web/tests/e2e/specs/app-provider/officeSuites.spec.ts:17:3 "create an
OpenDocument file with Collabora" across two independent full CI runs,
timing out after 180s behind a Collabora "document conflict" popup that
intercepts all clicks.
Server logs showed the new PutFile conflict check firing on literally
the first save of a freshly-created document, with a consistent ~8s gap
between the client's cached X-COOL-WOPI-Timestamp and the server's
current mtime that never resolved across 6+ retries over 3+ minutes.
This is most likely oCIS's async post-processing (search indexing,
thumbnailing, etc.) legitimately bumping the file's mtime shortly after
creation - something this comparison can't distinguish from a real
edit conflict, and which Collabora's client doesn't recover from
automatically.
Revert just the conflict-detection portion of task 02: the
coolWopiTimestamp parameter on ContentConnectorService.PutFile / its
implementation, the X-COOL-WOPI-Timestamp header handling in
HttpAdapter.PutFile, and NewResponseCOOLConflict, plus their tests and
mock signatures. The LastModifiedTime WOPI property (and everything
else task 02 added) is untouched and remains fully intact.
🤖 Generated with Claude Code
Signed-off-by: David Walter <david.walter@kiteworks.com>
* test(web): add e2e Playwright coverage for WOPI CheckFileInfo properties
Adds dedicated Playwright specs, each covering both Collabora and
OnlyOffice, for the WOPI CheckFileInfo properties this PR added that
have a genuinely observable, already-proven-safe browser-level signal:
- wopiReadOnly.spec.ts: false for the file owner, true for a
view-only share recipient (via the existing canEditCollaboraDocument/
canEditOnlyOfficeDocument-backed userShouldNotBeAbleToEditContentOfResources
step).
- wopiSupportsUpdate.spec.ts: a new document created via the office
suite's own "New" menu (PutRelativeFile) persists its content across
a reopen.
- wopiVersionAndLastModifiedTime.spec.ts: an edit saved by one actor is
visible to a second actor opening the file afterward, rather than a
stale cached copy.
- wopiCloseUrl.spec.ts: closing the editor navigates the top-level page
back into the files app.
All four are built exclusively from step-level helpers already proven
reliable elsewhere in this suite (officeSuites.spec.ts, secureView.spec.ts)
- no new selectors into Collabora's or OnlyOffice's own iframe DOM.
Not added: dedicated e2e tests for BreadcrumbBrandName/Url,
EditModePostMessage, IsUserLocked, and IsAdminUser. CheckFileInfo is a
server-to-server call the office suite's own backend makes directly to
the collaboration service - it is never visible to the browser, so
Playwright cannot observe the JSON response for any property. These
four also have no independently observable browser effect without
either inventing unverified selectors into third-party iframe internals
(breadcrumb bar, edit-mode button) or Collabora-side configuration
(locked_commands, audit panel) this test environment doesn't set up.
They remain correctly covered by the Go unit/integration tests
(fileinfo/collabora_test.go, fileconnector_test.go) and the
tests/acceptance/features/apiCollaboration/checkFileInfo.feature
acceptance suite, which assert the actual JSON response server-side.
An initial IsAnonymousUser spec was written and dropped after review:
it only asserted that content loads, which IsAnonymousUser does not
gate, making it indistinguishable from a regression (already covered
correctly at the Go level in fileconnector_test.go).
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* fix(web): reformat wopiVersionAndLastModifiedTime.spec.ts for prettier
pnpm check:format (web-build-test CI job) flagged the test.describe()
call: its 3 arguments (title, options, callback) didn't fit within
this repo's printWidth 100 on one line, so prettier expects them
wrapped one per line. Reformatted to match and reindented the
describe block body accordingly. No logic change.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* fix(collaboration): address PR #12593 review findings
- Restructure the VIEW_ONLY watermark check to nest inside the
ViewOnlyToken check instead of repeating the condition, per
jvillafanez's review comment.
- Add a reva token mint/dismantle round-trip test covering the admin
role Opaque entry, exercising the real JWT serialization seam
IsAdminUser depends on rather than only direct context injection,
per DeepDiver1975's review.
- Correct the changelog entry: ReadOnly/CloseUrl (and DownloadUrl for
Microsoft) already had matching `case` handling in microsoft.go/
onlyoffice.go, so populating them unconditionally changes those
targets' output too, not just Collabora's. Only IsUserLocked/
IsAdminUser are genuinely Collabora-only.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
---------
Signed-off-by: David Walter <david.walter@kiteworks.com>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Juan Pablo Villafañez <jpvillafanez@izertis.com>
fix(registry): stop logging every service re-registration
RegisterService re-registers the service on a ticker so its TTL does
not lapse, and logged a debug line carrying the whole service record
on every tick. At the default 25s interval that is 3456 lines per
registration per day, and this tree has 20 non-test callers, so an
idle deployment at debug level writes tens of thousands of them with
no user interaction at all.
This is what the issue thread already agreed: only the error case is
worth a log there. The error branch is untouched, so a refresh that
fails still logs. The one-shot lines on first registration and on
deregistration are untouched too, because they fire once per process
rather than once per tick.
The test runs against the in-memory registry and fails on the
unmodified file. It lowers zerolog's global level first, because
importing ocis-pkg/log raises it to fatal in init() and the assertion
would otherwise pass on an empty buffer, and it requires the service
to still resolve after more than one TTL so the absence of a line
cannot be explained by a dead refresh loop.
The three review fixups are folded in here rather than kept as
separate commits: the changelog entry links the pull request ahead of
the issue, and the explanatory comment in register.go was dropped in
favour of this message.
Closes#8274.
Co-authored-by: Lukas Hirt <info@hirt.cz>
* fix(web): [OCISDEV-1128] app drawer leaks menu items to public link visitors
The top bar app drawer offered "Activities" and "Library" to anonymous
visitors following a public link. Both apps registered their app menu
item unconditionally at bootstrap, before any authentication context
exists, and the extension registry is shared between the authenticated
and the public link context.
Gate both registrations on a signed-in user, matching the idiom already
used by the files, text editor, app store, admin settings and ScienceMesh
apps. Add a cross-package spec pinning the invariant for all seven apps
that contribute a drawer entry.
test: fix flaky login error assertion in userFailsToLogin
config.timeout is declared in seconds and every other Playwright call site
multiplies it by 1000. session.ts passed it through unconverted, so the
assertion had 180ms rather than 180s to observe a message that only renders
after the sign-in round-trip completes.
The assertion was also not awaited. expect() here is @playwright/test's, so
toBeVisible() returns a Promise; unawaited, the a11y audit on the next line
ran before it settled.
After a handful of wrong password entries, the brute-force protection
temporarily blocks a password-protected public link. Visitors opening the link
were told "The resource could not be located, it may not exist anymore." or
simply "Unknown error" - including visitors, and owners, typing the *correct*
password, because the block is checked before the password is looked at. Both
messages were false, and they led link owners to delete and recreate links that
were never broken, forcing them to redistribute the URL.
The resolve page now derives the message from the HTTP status where it is
rendered, keying on 429 rather than on a server-supplied error code so it works
against the server versions already in the field, which send an empty 429 body.
The tasks propagate the original error untouched, so its status code and the
server's own message both survive for the callers and for the console.
Unrelated failures no longer claim the resource is gone either: they show the
message the server sent, or a neutral one when the server sent none. Since
parseError() stamps every body without a <d:error> with the literal 'Unknown
error', and a transport failure arrives with no status at all, the fallback
requires a status code and treats that sentinel as no message.
https://github.com/owncloud/ocis/issues/12824
The hidden folder backing a password protected folder is listed under
Shares > Shared via link, but its entry linked to the folder in the owner
personal space, so activating it opened the content without ever asking
for the link password.
Expose the link shares on outgoing share resources and, for the hidden
folder of a password protected folder, link to its password protected
public link instead. If no link can be determined, the entry is rendered
without a link at all rather than falling back to the folder itself.
* fix: [OCISDEV-1230] long username/name overflows access details popup and user details panel
The share "Access details" popup and the admin settings user details
panel/info box overflowed their fixed-width containers when a user name,
display name, email or domain was a long unbroken string. Long values now
wrap instead of overflowing.
* docs: fix changelog PR link to actual PR number
Master's LatestTag was still "8.0.0+dev" and its changelog/ folder
stopped at 8.0.4, even though 8.0.5-8.0.7, 8.1.0, and 8.2.0 have since
been released on their stable branches. The "bump master version"
step that normally follows a stable branch cut was skipped for both
the 8.1 and 8.2 cuts.
- Bump LatestTag to 8.2.0+dev, matching the latest actual release
(v8.2.0), consistent with how master has always been bumped after
a release (last released version + "+dev" placeholder, not the
next unreleased minor).
- Backport the missing changelog/8.0.5, 8.0.6, 8.0.7, 8.1.0, and
8.2.0 folders from their respective stable branches.
- Remove the now-duplicate fragments from changelog/unreleased/ that
those folders already cover (106 files) - verified by content/PR
match against every release folder, not just filename.
Signed-off-by: Lukas Hirt <info@hirt.cz>
All jobs previously ran with the GitHub-hosted default timeout of 360
minutes, so a hung job (e.g. apt-get stalling in the libcurl install
step of the acceptance tests) blocked a runner for 6 hours before
being killed.
Add an explicit timeout-minutes to every job, sized by workload:
- 120 min: acceptance/e2e/k8s/deployment/k6 test suites and the
release docker-build and build-binaries jobs
- 30-60 min: web build, code generation, license checks, scans,
npm/GitHub release publishing, pipeline report
- 5-15 min: change-detection gates, aggregate status jobs, changelog,
manifest/readme, stale-branch cleanup
The timeout counts only the job's own runtime (queue time and waiting
on `needs` dependencies are excluded) and applies per matrix entry.
Not covered: the jobs in commit-message.yml and translation-sync.yml
call reusable workflows via job-level `uses:`, which does not accept
timeout-minutes; those need timeouts in owncloud/reusable-workflows.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* test: [OCISDEV-861] pin public-link visibility in unfiltered share listings
ListPublicShares issued one gateway Stat per public link not created by the
calling user, which exceeded the request deadline on tenants with thousands of
links. The fix lands in reva; these scenarios pin the user-visible contract so
that any future attempt to replace the permission check cannot silently change
who sees which links.
Adds one OCS scenario, deliberately untagged so it also runs in reva's CI, and
three Graph scenarios covering /me/drive/sharedByMe: a space member sees a
co-member's link, a non-member does not, and a non-member holding ListGrants on
the individual resource does.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* test: cover more space roles and reuse standard user in sharedByMe scenarios
Extends the "space member sees link shares" scenario to cover Space
Editor and Space Viewer in addition to Manager, and swaps Carol for
Brian in the non-member scenarios since Brian is already provisioned
in the feature's Background, dropping a redundant creation step.
Signed-off-by: Lukas Hirt <info@hirt.cz>
---------
Signed-off-by: Lukas Hirt <info@hirt.cz>
* fix: [OCISDEV-1358] shift-click range selection in the files list
Shift-clicking a checkbox now triggers range selection, a plain
shift-click replaces the current selection instead of adding to it, and
the browser no longer highlights the text of the affected rows.
* fix: [OCISDEV-1358] keep the checkbox checked state in sync with the model
The browser toggles the native checked property on every click, while vue does
not re-patch an unchanged model-value, so the property stayed flipped whenever a
click did not change the selection, e.g. when a range selection keeps an already
selected resource selected. The tiles view worked around that by preventing the
default click action, which desyncs the property for good: chromium restores the
pre-click value after vue has already patched it, so it never follows the model
again.
Sync the native property from the model in OcCheckbox once the parent had its
chance to react to the change, and drop the workaround.
* test(apiGraphGroup): add acceptance test for configurable LDAP group object class
* test(apiGraphGroup): make LDAP object class test portable across test environments
* test: use multilines for message assertion
A MOVE whose source and destination resolve to the same resource is now
answered with 204 No Content server side instead of a confusing 403 or
404, and instead of 409 Conflict on the id based dav route, so every
client behaves the same way. The no-op still requires the move
permission.
The server-side guard lives in reva (owncloud/reva#708 and the follow-up
owncloud/reva#713, which moves the guard above the recursion checks so it
is also reached when the request addresses the resource by its id).
Pulled in here by bumping reva to v2.0.0-20260813121157-d386075a0421.
vendor/ was regenerated with `go mod vendor`; no hand edits.
On the test side the @issue-1976 tags are dropped from the five MOVE
feature files and the corresponding entries are removed from both
expected-failures lists. Scenario Outlines that mix roles with and
without the move permission parameterize the expected status in an extra
http-status-code Examples column rather than being split into duplicate
scenarios. The gherlint newline_before_scenario rule is configured as
["error", 2, true], counting tag lines toward the total, so the eight
scenarios that lost their tag get back the blank line it occupied.
Drop the "viewer" row from the same-name Examples table in
moveByFileId.feature: "viewer" is not a valid space role for a
permissionsRole invitation, so the step errored with
Role 'viewer' not found, and the "Space Viewer" row already covers
the 403.
* fix(deployments): support Collabora Online 26.x in ocis_full example
collabora/code 26.x dropped the shell (no /bin/bash, no /bin/sh) and the
coolconfig helper the ocis_full example relied on to start the container
and generate its WOPI proof key, so the deployment failed to start and,
once patched to start, would reject every document open with a 500 since
the collaboration service enforces WOPI proof-key verification by default.
Drop the custom bash entrypoint (the image's default entrypoint already
honors extra_params/username/password via --use-env-vars), replace the
bash-based healthcheck with the built-in "coolwsd --probe", and add a
one-shot init container that generates and persists the WOPI proof key
on the host before Collabora starts.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* fix(deployments): self-heal a bad WOPI proof key in ocis_full example
The collabora-proof-key-init container only checked "does /keys/proof_key
exist" before skipping generation. If the collabora service's single-file
bind mount of that path ever won the race against the init container (e.g.
on the very first `docker compose up`, or after an interrupted run), Docker
silently created a directory there instead of a file, which then persisted
across restarts and made coolwsd fail to load the proof key with an
EVPPKey::loadKey DECODER error, breaking WOPI CheckFileInfo for good.
Validate any existing proof_key with `openssl rsa -check` and remove it
before regenerating if it's missing, not a regular file, or invalid, so a
bad state (directory, truncated write, corrupt key) heals itself on the
next start instead of requiring a manual `rm -rf` of the generated config.
Signed-off-by: Lukas Hirt <info@hirt.cz>
---------
Signed-off-by: Lukas Hirt <info@hirt.cz>
* fix: pass mount id to the s3ng storage driver
Uploads to a s3ng backed storage-users service never left the processing
state, leaving the file unreadable and unmodifiable. This affects every
client equally: WebDAV, the desktop sync client and the web UI.
Decomposedfs discards any event whose storage id does not match its
configured mount id. Only the ocis driver was ever given a mount_id, so
under s3ng the comparison ran against an empty string and every
PostprocessingFinished event was dropped.
Regression since 8.1.0, where the mount-id event filter was introduced
for vault storage.
* fix: adding mount_id in OcisNoEvents and S3NGNoEvents
* fix(web): generate web timestamp by env SOURCE_DATE_EPOCH or git log (#12757)
* fix(web): suppress error when make in non-git directory (e.g. source tarballs)
* chore: add changelog for pull 12758
* fix(web): fix env description in changelog; remove cwd from execSync
* fix(web): fix format (prettier check)
* fix: use specific gookit config instance instance of using global
Using the global instance was causing a panic when the service was
restarted. That panic won't happen now.
* chore: add changelog entry
- ResourceTile: drop leading eslint comment (fragment root) and add
role=presentation so fallthrough attrs and drag listeners inherit and
the element ref resolves to the card; fixes drag-and-drop crash on tiles
- markRaw components passed as extension/folder-view data to avoid
reactive-component warnings
- web-app-external: wrap iframe/form in a single root element
- AppWrapper: type currentContent as string
fix(web): [OCISDEV-996] truncate long resource names instead of overlapping next column
Add `min-width: 0` to `.oc-resource` so the inline-flex item can shrink
below its content width. Without it the automatic min-content floor kept
the element at full name width, painting the name over the adjacent
column's value. The existing `oc-text-truncate` rule on the name span can
now take effect and truncate with an ellipsis at the column boundary.
Most visible in the Spaces overview, where a long space name overlapped
the "Manager" column, but it affected every resource table using the name
column, including the files list and search results.
feat(storage-users): [OCISDEV-1203] add recalculate-treesize command
The treesize of a directory is maintained as a running counter that is updated
on every change, so a failed or incomplete update leaves the counter wrong and
the reported quota usage of a space drifts from the data on disk. Removing a node
without propagating the size change leaves its size counted against the quota
with no way to reclaim it.
Add a command that walks a space bottom up, recalculates the treesize of every
directory from the actual size of its children and corrects the stored values:
ocis storage-users spaces recalculate-treesize --space-id <id>
As with the other maintenance commands --dry-run defaults to true, so the
command reports what it would change until explicitly told to write.
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Cmd+Clicking or middle-clicking a file with a `#` or `?` in its name opened the
space root instead of the file, and the top bar showed the space name rather than
the file name. The file's path is carried in a route parameter which the router
percent-encodes when it builds the URL, but the editor route was resolved twice
and resolving twice does not encode twice: the second pass rebuilt the URL from
the still-decoded parameter with the encoding step skipped. The browser then read
everything from the `#` onward as a fragment, discarding the query string along
with the `fileId` needed to identify the file. Left clicks were unaffected because
they never leave the app.
Editor routes are now handed to links unresolved, so the file name is encoded
exactly once and survives both a new tab and an in-app navigation. Hash and
question mark remain valid characters in file names.
* test(ci): run test on k8s deployment
* chore: update authapp in config
* chore: update storageusers in config
* chore: update version and envs
* chore: normalize service name
Bump reva to pick up the fix for upload sessions whose node metadata can no
longer be read. Such sessions can never finish postprocessing, stay in
processing state indefinitely and keep consuming the quota of their space.
Cleaning them previously removed the uploaded bytes without releasing the quota.
Wire up the new Orphaned session filter so operators can list the affected
sessions and remove them with --clean:
ocis storage-users uploads sessions --orphaned
ocis storage-users uploads sessions --orphaned --clean
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
* feat: bump reva
Bumps reva to 441d6e77b33d, pulling in the vault/non-vault share
mountpoint collision fix, decomposedfs DisableVersioning aspect
handling, ChunkHandler.Assemble/scan fields, and LDAP retry policy
config. Also picks up the transitive nats-server, grpc, go-sqlite3
and antithesis-sdk-go bumps from reva's go.mod.
* docs: add changelog for vault share mountpoint collision fix
Documents the reva fix (owncloud/reva#691) that stops resources shared
under the same name from vault and non-vault mountpoints from getting
a spurious (1) suffix.
The Files app nav labels checked window.location.pathname directly,
which missed hash-based vault routes and the post-login redirect
target, so labels didn't always reflect vault state.
Bump the vendored reva dependency to pick up the opt-in bounded LDAP
connection pool (owncloud/reva#658, #665), and wire it into oCIS: add
pool_enabled/pool_size/pool_checkout_timeout config to auth-basic,
users, groups and graph, forward it into the reva config map for the
first three, and unify graph's identity backend onto reva's LDAP
client (utils.GetLDAPClientFromConfig) instead of its own hand-rolled
reconnecting client, now that reva implements PasswordModify and
ModifyWithResult on both LDAP clients. Pooling is off by default and
fully backwards compatible.
Signed-off-by: Lukas Hirt <info@hirt.cz>
test(ldap): [OCISDEV-1031] run graph LDAP suites with pooling enabled in CI
Add a dedicated ldap-pool-tests job to acceptance-tests.yml that reruns
apiGraphUser/apiGraph/apiGraphGroup with OCIS_LDAP_POOL_ENABLED=true, so
concurrent behat requests exercise checkout/release, eviction and the
pooled PasswordModify/ModifyWithResult path end-to-end, in addition to
the existing pooling-disabled runs of the same suites.
Signed-off-by: Lukas Hirt <info@hirt.cz>
fix(ldap): [OCISDEV-1031] set real pool_size/pool_checkout_timeout defaults
Only PoolEnabled: false was set in the four defaultconfig.go files;
PoolSize/PoolCheckoutTimeout were left as Go zero values (0/0s),
relying on reva's NewLDAPPool substituting 5/30s when <= 0. That
reads as "zero connections" to an operator in the generated yaml
config rather than "default 5". Set the real defaults (5, 30s)
so documented defaults match what's emitted.
Signed-off-by: Lukas Hirt <info@hirt.cz>
chore(deps): [OCISDEV-1031] bump reva to pick up LDAP TLS fixes
Bumps the vendored reva dependency to owncloud/reva@8ee2020, picking
up owncloud/reva#672 (restore MinVersion: tls.VersionTLS12 on LDAP
TLS connections) and owncloud/reva#674 (restore pinned-CA-only trust
and PEM validation for the CA-cert path), both flagged during review
of this PR.
Signed-off-by: Lukas Hirt <info@hirt.cz>
docs: point changelog fragment at forward-port PR #12689
The group icon in the share collaborator autocomplete list referenced a
removed CSS variable, making it invisible. Switch to the current default
text color variable.
fix(graph): [OCISDEV-492] reject space images too large to be rendered
Setting a space image larger than the thumbnails service accepts appeared
to succeed but never changed the space image. Uploading the file and
assigning it as the space image are two separate requests, and both
completed successfully, so clients reported success. Only a later preview
request, which the assigning client never observes, was rejected because
the image exceeded THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE. As space images
are rendered exclusively as thumbnails, the image was not merely degraded,
it was invisible with no error anywhere in the UI.
The graph service now stats the file when a space image is assigned and
rejects the request with 413 Request Entity Too Large instead of storing a
reference which cannot be displayed. The previous space image is left
untouched. The limit is read from the new GRAPH_MAX_IMAGE_FILE_SIZE
setting, which defaults to the value of
THUMBNAILS_MAX_INPUT_IMAGE_FILE_SIZE so that a single setting keeps both
services in agreement. A limit of zero disables the check. Space
descriptions (readme) are not affected.
* fix: bump reva to allow space managers to remove others' shares
Space managers with the RemoveGrant permission on a resource could not
remove user shares created by other users; the share manager only allowed
the share's creator to remove it. This bumps reva to the commit that fixes
Unshare to also honor the RemoveGrant permission.
* fix(l10n): route gotext.Locale calls through func fields to satisfy go vet
Bumping reva pulled in reva's go 1.26 requirement, and go 1.26's stricter
printf vet analyzer now sees through the OcisLocale interface to flag
gotext.Locale.Get as a printf-wrapper, breaking go test across 5 packages.
Forwarding through func fields hides that static trail from vet.
* feat(graph): eliminate LDAP read-after-write on create/update
Every graph LDAP create/update wrote the entry, then immediately re-read it
back by DN solely to recover the entry ID for the response model. Against a
replicated directory reached through a proxy, that read-back can hit a lagging
replica and fail or return stale data.
When oCIS generates the UUID itself (GRAPH_LDAP_SERVER_UUID disabled, the
default), the read-back returns nothing new: create responses are now
synthesized from the data already sent, and update responses are built by
folding the applied modifications onto the entry read before the write. When
the directory assigns the ID (GRAPH_LDAP_SERVER_UUID enabled), creates keep the
existing read-back since the generated ID cannot otherwise be recovered.
New ldap_writeback.go with two pure helpers:
- attrsFromAddRequest: flatten an AddRequest for ldap.NewEntry (create paths)
- applyModifyToEntry: fold a ModifyRequest (Replace/Add/Delete,
case-insensitive, non-mutating, ByteValues populated for octet-string id
parity) onto a copy of the pre-read entry (update paths)
All 9 write sites updated:
- creates (user, group, education user/class/school): synthesize when the ID is
client-generated, keep the read-back when the server assigns it
- updates (user, education user): fold the ModifyRequest onto the pre-read
entry; the AccountEnabled trailing override and the rename read-back inside
changeUserName are preserved (rename is out of scope)
- education school update: updateSchoolProperties now returns its ModifyRequest
so the caller can fold it; the displayName ModifyDN rename is folded as a
displayName attribute replace
- education class update: pre-read widened from name/id only to the full
education-class attribute set so classification/externalID are not dropped
from the response; the externalID ModifyDN rename is folded as an attribute
replace
Model builders are untouched, preserving the response shape. Existing update
tests were reconciled: read-back Search mocks that are no longer issued were
removed and the pre-read fixtures now carry the full baseline entry, with all
assertions unchanged.
OCISDEV-1033
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix: hardcoded groupAttributeMap.id and wrong getLDAPGroup filter
* fix(graph): reject octet-string IDs without server-assigned UUIDs
Octet-string ID attributes (e.g. Active Directory's objectGUID) are assigned by
the directory server and require GRAPH_LDAP_SERVER_UUID=true. With
GRAPH_LDAP_SERVER_UUID=false oCIS generates the ID and writes it as a string
UUID, so an octet-string ID attribute would be decoded from raw string bytes
and produce a corrupt ID on both the read-back and the synthesize path.
NewLDAPBackend now rejects this incompatible combination at startup instead of
silently returning bad IDs.
Also adds regression tests for the id-attribute and group-name lookup fixes:
- CreateGroup / CreateEducationClass synthesize the response id under the
configured GroupIDAttribute (not a hardcoded attribute name)
- getLDAPGroupByNameOrID filters by the group name attribute, not the user one
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix: update the staled DN
* test(graph): assert no read-back by search scope, not hard-coded DN
The synthesize-on-create test matched the read-back on a hard-coded
createdDN whose correctness relied on the school base DN being empty.
Match on ScopeBaseObject instead: DN-independent and precise about the
read-back being eliminated.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* fix: fixed calling it with a nil argumets. prevent the slice mutations
* chore: tests
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
* feat(invitations): configurable Keycloak actions + working ocis_full SMTP
The invitations service already triggers Keycloak execute-actions-email after
provisioning a guest (service.Invite -> backend.SendMail ->
gocloak.ExecuteActionsEmail). Two things still limited it:
- The required actions were hardcoded to UPDATE_PASSWORD,VERIFY_EMAIL. They are
now configurable via INVITATIONS_KEYCLOAK_EXECUTE_ACTIONS (comma-separated,
same default). Unknown actions are logged and skipped, and the service falls
back to the defaults if none remain valid so a guest always has a setup path.
- The Keycloak realm shipped with the ocis_full example had an empty smtpServer,
so Keycloak silently dropped every mail it tried to send, including the guest
invitation mail. The realm now points SMTP at the bundled mailpit
(mailserver:1025).
Verified: execute-actions-email delivers to mailpit against the ocis_full realm;
go test ./services/invitations/... ./ocis-pkg/keycloak/... -race passes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* fix(invitations): return the created user as invitedUser in the response
service.Invite echoed the request body unchanged, leaving the invitedUser
relation of the Graph invitation response empty, so a client could not learn
the identity of the guest that was just created. The keycloak backend now
records the created user (OWNCLOUD_ID, email, user type) on the invitation.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
* refactor(invitations): pass Keycloak actions through verbatim (no allowlist)
Address review (@kobergj): the configured execute-actions no longer need to
match a hardcoded enum. UserAction is now a string type passed to Keycloak
as-is, so operators can configure any required action their Keycloak supports
without oCIS keeping a list in sync. The convenience constants remain, the
default (UPDATE_PASSWORD, VERIFY_EMAIL) is unchanged, and validation is left to
Keycloak. Removes UserActionFromString and the two lookup maps.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: David Walter <david.walter@kiteworks.com>
---------
Signed-off-by: David Walter <david.walter@kiteworks.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Renaming a password-protected folder did not update its `.psec` pointer
file, so the main file listing kept showing the old name. This happened
both when renaming via the hidden `.PasswordProtectedFolders` location
and when renaming from inside the folder-view modal, where an unsynced
rename left the pointer permanently stale.
Renaming the real folder now also renames its `.psec` counterpart. Inside
the folder-view modal, the framed public-link session notifies the parent
window at the moment of rename, so the pointer stays in sync even without
clicking Close.
* chore: Add audience restriction for OIDC access tokens
* fix: add new envvar to added table
Signed-off-by: Martin Mattel <github@diemattels.at>
* fix: add updated env_vars.yaml file
* chore: var name to plural. update config
---------
Signed-off-by: Martin Mattel <github@diemattels.at>
Co-authored-by: Martin Mattel <github@diemattels.at>
The errgroup workers converting CS3 shares into Graph DriveItems read from
the shared driveItems map while the collecting loop was already writing
results into the same map. The results channel is buffered, so workers never
blocked on the handover and the collecting loop started writing while workers
were still reading. The Go runtime aborts the process on a detected
concurrent map read and write, which is unrecoverable and dropped all
in-flight connections.
Collect the results after all workers have finished instead. Applies to
cs3UserSharesToDriveItems, cs3OCMSharesToDriveItems and
cs3PublicSharesToDriveItems, which all shared the same pattern.
Lowering OCIS_MAX_CONCURRENCY/GRAPH_MAX_CONCURRENCY was not a workaround: a
single worker still ran concurrently with the collecting loop.
(cherry picked from commit 2922769be9)
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Failures of the thumbnails service were logged at debug level only, so
errors which are not a property of the requested file — such as the
thumbnails service being unreachable — were invisible at production log
levels. A complete preview outage produced HTTP 500 responses without a
single log line explaining them.
Unmapped errors are now logged at error level, while expected per-file
outcomes such as an unsupported file type or a file still being processed
stay at debug level. Two of the four thumbnail handlers also logged
without the request context, so their messages carried no request id.
Also add the missing codesEnum entries for 403, 425 and 429 and fall back
to a generic exception name for any remaining unmapped status code, so
error responses no longer render an empty <s:exception></s:exception>.
(cherry picked from commit 6950f47885)
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
In the user management, the account you are currently logged in as could
be selected and included in a delete action, even though the backend
always rejects self-deletion. Deleting a selection that included your own
account produced a "Failed to delete 1 user" error and made your own row
temporarily disappear from the list until the page was refreshed.
The delete action now excludes the current user from the request, so all
other selected users are deleted while your own account is left
untouched. When your own account is part of the selection, the delete
confirmation dialog shows a hint that it will not be deleted.
feat(web): [OCISDEV-1085] add undo action to delete notification
Adds an "Undo" action to the delete success toast so users can restore
deleted resources without navigating to the trash bin, plus a Ctrl+Z/Cmd+Z
shortcut that triggers the same restore while the notification is visible.
The New and Upload button dropdowns did not receive focus when opened,
so arrow key navigation between menu items didn't work, unlike the
context menu.
Each breadcrumb list item had tabindex="0", putting it in the
keyboard/screen reader focus order alongside the link or button
nested inside it, causing every segment to be announced twice.
feat(web): show select-all checkbox label in tile view
Make the select-all checkbox label visible in the tile view to match
the list view and make the checkbox's purpose clear.
Fixes low-contrast sliders, switches, select highlights, and the global
search input/placeholder, including an !important override that blocked
theme-specific search colors and an invalid CSS var() fallback.
The /graph/v1.0/me endpoint reported the internal user UUID as
identities[].issuerAssignedId instead of the OIDC sub. The fast path
built the user model from the CS3 context user, which does not carry the
external identity. /me now always resolves the user through the identity
backend; group memberships are still only expanded on $expand=memberOf.
Forward-port of #12411 to master.
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
feat: add missing main/footer regions and fix skip-to-main link
Add missing main and footer elements to the 404, private/public link
resolving, missing-config, logout, and access-denied pages, and fix the
skip-to-main link which silently did nothing on plain-layout pages due
to a missing target id and a stale cached DOM reference.
- Keep keyboard and screen-reader focus inside the versions sidebar while panels transition or reload.
- Restore focus to the opening control when the sidebar closes and to the matching Restore action after a version is restored.
- Improve version date and action announcements without introducing duplicate announcements or additional tab stops.
Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
Migrates all v-translate directive usages to $gettext() calls since
v4 removes the deprecated <translate> component/directive entirely
and silently drops such strings during extraction. Also drops the
now-unsupported disableHtmlEscaping positional argument from ~40
call sites (v4 no longer HTML-escapes interpolated values; none of
the affected strings are rendered via v-html) and removes the pnpm
patch that only backported a types export field v4 now ships
natively.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* build(deps): bump pnpm dependencies
* style(web): format code with prettier
Signed-off-by: Lukas Hirt <info@hirt.cz>
* test(web): update ActivitiesPanel snapshot for dompurify/happy-dom sanitization change
The dependency bump upgraded dompurify to 3.4.3+, which combined with
happy-dom's DOM implementation drops a leading <strong> tag that is the
first sanitized child node. Real browsers are unaffected; only the
happy-dom test snapshot needed updating.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
---------
Signed-off-by: Lukas Hirt <info@hirt.cz>
Co-authored-by: Lukas Hirt <info@hirt.cz>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
The Light/Dark High-Contrast themes set colorPalette.background-highlight
equal to background-default, making hover backgrounds indistinguishable
from the resting page background wherever background-highlight was used
for interactive feedback (e.g. the global search results dropdown). The
non-high-contrast Dark theme had the same collision.
Set background-highlight to the same value as background-hover in those
theme blocks, and point SearchBar's result-preview hover/active state and
CreateShortcutModal's context-menu hover/active state at
--oc-color-background-hover directly, since background-highlight is
otherwise used for static surfaces (cards, modals, form fields) rather
than interaction feedback.
- OcBreadcrumb: add `inert` to truncation placeholder <li> so its
focusable <a> child is unreachable (fixes aria-hidden-focus)
- OcTable: remove aria-hidden from header cell span and fall back to
field.name so icon/avatar columns always have discernible text
(fixes empty-table-header)
- Plain layout: wrap router-view in <main> so login/public-link pages
have a landmark (fixes region violations)
- SidebarNav: change root element to <aside> with aria-label so the
versions div is inside a landmark (fixes region violations)
- web-app-ocm App: change root element to <main> (fixes region)
- Add v-if="pageTitle" to sr-only <h1> in 6 components so empty
headings are never rendered (fixes empty-heading)
- Disable aria-allowed-role in search dropdown check — axe 4.11
incorrectly rejects <li role="group"> inside <ul role="listbox">
which is valid per ARIA 1.2
- Disable label rule in Application.open() check for pages that may
transiently render Keycloak's OTP setup form
- Remove stale post-navigation check in createFileFromTemplate
sidebar branch (sidebar is unmounted before check runs)
The groups API could return group membership details to callers who
should not have had access to it via the single-group GET endpoint.
Access to group member data is now properly restricted based on the
caller's permissions.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* test: add test to check vault mode capabilities endpoint response
Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
* test: add cleanup for Keycloak related configs after each test
Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
* test: use ocs version 2
Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
---------
Signed-off-by: Prajwol Amatya <prajwolamatya11@gmail.com>
* fix: fix CI (#12551)
* fix(ci): disable docker release jobs like in 8.1
The docker-build/manifest/readme jobs were enabled in 8.2 and wired into
create-github-release/audit-release. They fail at docker/login-action
("Username and password required") because DockerHub credentials are not
available, which cascades and cancels the whole release.
Restore the 8.1 behavior: re-add `if: false` to the docker jobs and unwire
them from the downstream release jobs.
* fix(ci): reinstall web deps in license-check job
Excluding web from the generated-code artifact (#12557, to avoid OOM on
upload) also dropped web/node_modules, which provides the
license-checker-rseidelsohn binary used by `make ci-node-check-licenses`.
The job failed with "license-checker-rseidelsohn: not found".
Run `pnpm install` in web before the license check so its node_modules is
present again.
---------
Co-authored-by: Roman Perekhod <2403905@gmail.com>
The release workflow is running out of memory when uploading the generated code.
This fixes it by excluding the web directory. The web directory is not needed because the build is handled via the generation.
Signed-off-by: Lukas Hirt <info@hirt.cz>
* fix(e2e): resolve admin-settings general spec violations
- prevent focusable elements inside hidden breadcrumb items
- make OcDrop tippy role configurable, default to none
- wait for logo-wrapper element after page reload in e2e
* fix(e2e): resolve admin-settings groups spec violations
- add aria-label to the icon-only groups filter-confirm button, which
had no name for screen readers to announce
- set reducedMotion on e2e browser contexts so notification fade-in
animations don't race axe scans and produce false color-contrast
failures
- fix tippbBox selector typo (-> tippyBox) that made the scan on the
group context menu throw instead of running
- fix groupList and editPanel selectors in the shared selector map:
groupList pointed at a nonexistent class, and editPanel used the
non-standard :visible pseudo-selector which is invalid in native
querySelectorAll
* fix(e2e): skip tooltip fade transition under reduced motion
Plain tooltips (v-oc-tooltip) use tippy.js's default fade animation
and default #333/#fff colors, driven by tippy's own duration option
rather than a CSS transition. Setting reducedMotion on the Playwright
browser context does not stop this, since tippy's animation ignores
prefers-reduced-motion on its own. Axe scans could catch the tooltip
mid-fade, when the text is still low-opacity, and report a false
color-contrast violation. Now the duration is forced to 0 when the
media query matches, mirroring how oc-fade-in already handles this
for CSS-driven animations.
* fix(e2e): resolve officeSuites spec progressbar violation and test bugs
- add aria-label to the global loading progress bar, which had no name
- point the space quota progress bar at its existing text label via
aria-labelledby instead of leaving it unnamed
- fix a string-literal-instead-of-variable typo, an XPath selector that
axe can't use (only CSS), and a scan that ran after clicking closed
the element it was targeting, all in the public link test helpers
- move the create-document-modal scan to after the modal actually
opens, since it was scanning too early and finding nothing
* fix(e2e): resolve app-store details spec contrast violation and scan bug
- override md-editor-v3's default link and inline-code colors in the
read-only markdown preview, which didn't meet WCAG AA contrast
against the app card background
- point the download-app a11y scan at the app list page instead of a
details-page selector that isn't present on that page, a leftover
from copying the sibling download-version helper
* fix(e2e): resolve participantManagement pagination spec violations
- patch vue-select to render aria-controls on its combobox toggle,
which it already computed internally but never attached to the
element with role="combobox"
- add aria-label to the account menu quota bar and upload progress
bar, both missing a name on their progressbar role, same gap fixed
earlier in LoadingIndicator/SpaceQuota
- add aria-label to the file-details preview-loading spinner, which
rendered role="img" with an empty aria-label
- stop scanning the sidebar actions panel in deleteResource after it
was already closed, which made the scan throw instead of running
* fix(e2e): add missing aria-label to hide-share quick action button
The icon-only hide/unhide-share button in the shared-with-me table had
a tooltip but no aria-label, so it had no accessible name. Reused the
label already computed for the tooltip instead of duplicating it.
* fix(e2e): fix sidebarPanel selector typo in downloadResources
Used the string 'sidebarPanel', which isn't a key in the shared a11y
selector map, so it fell through to being used as a literal (and
broken) CSS selector. Switched to the existing appSidebar key, which
resolves to the same #app-sidebar selector already used for this
concept elsewhere.
* fix(e2e): add accessible name to markdown editor's content area
md-editor-v3's underlying CodeMirror instance renders its editable
content div with role="textbox" but no accessible name, and the
library exposes no prop to pass one through. Set aria-label on it
directly after mount, since that's the only available hook.
* fix(e2e): fix users-filter button label and navigate scan selector
- add aria-label to the icon-only users search/filter-confirm button,
the same button-name gap already fixed for the groups page
- fix Users.navigate scanning appSidebar, which isn't rendered until a
sidebar panel is actually opened; switched to scanning body, matching
the working pattern already used by Groups.navigate
* fix(e2e): fix global search dropdown ARIA structure and scan bugs
- restructure the search results listbox so its direct children are
valid group/option roles instead of plain nested <li>/<ul>, fixing
aria-required-children/parent, list, and listitem violations
- give the loading/no-results states no listbox role at all, since
they're informational text rather than actual options
- give the listbox an accessible name via the existing search label
- fix the icon-only "search options" listbox missing aria-controls
becoming null instead of a static string when the dropdown isn't
rendered
- add a disableRules option to assertNoSevereA11yViolations, using it
for two narrow, investigated cases: search-result rows render a real
<a href> so native middle-click/ctrl-click "open in new tab" keeps
working (nested-interactive can't be satisfied without removing
that), and a checkbox nested in a clickable filter-list button that
would otherwise lose its only accessible selection-state indicator
- fix the same aria-controls transient-timing gap in two more call
sites that hit it after a route change (closing the editor, opening
any app via the app switcher)
* fix(e2e): fix low contrast search input in select combobox
vue-select's vendor CSS dims the search input to 20% opacity while
searching but not yet open, dropping text contrast to 1.51:1 against
the required 4.5:1. Override the opacity back to 1 for that state.
* fix(e2e): add labels to app gallery navigation buttons
The prev/next/set-image buttons in the app details image gallery only
render a decorative icon with no text or label, leaving them with no
discernible name for screen reader users.
* fix(e2e): add label to clear-clipboard button in files app bar
The clear-clipboard button next to "Paste here" only renders a
decorative close icon with no text or label, leaving it with no
discernible name for screen reader users.
* fix(e2e): add label to generic app-loading spinner
The spinner shown while an external app is loading has no aria-label,
leaving the role="img" element with no accessible name even though a
visually-hidden "Loading app" text already exists right next to it.
* fix(e2e): add label to GDPR export loading spinner
The spinner shown while the GDPR export status is loading has no
aria-label, leaving the role="img" element with no accessible name.
* fix(e2e): fix combobox aria attributes in create shortcut modal
The suggestion dropdown had no explicit toggle target, so tippy fell
back to the input wrapper div and set aria-expanded on an element with
no ARIA role. Point the drop at the actual input and give it proper
combobox semantics.
* fix(e2e): fix users filter checkbox-button scan and delete selector bug
Suppress the already-accepted checkbox-in-button nested-interactive
rule at the two roles filter scan sites in filterUsers, matching the
pattern used elsewhere for the same ItemFilter.vue markup. Also fix a
string-literal selector in deleteUserUsingContextMenu that was never
actually calling util.format, so axe scanned for a nonexistent element.
* fix(e2e): resolve admin-settings spaces spec violations
- replace removed #files-toggle-sidebar with the "Show details" button
(that button now opens the sidebar in one click; selecting via the
checkbox first would toggle the space off when Show details toggles it on)
- fix broken scan selectors: 'appSidebarDiv' -> 'appSidebar' (not a key in
the selectors map, was silently falling through to the literal string);
'tippyBox' -> 'ocModal' at the confirm-action scan (the modal is what's
actually rendered there, not a tippy); 'filesView' -> 'adminSettingsWrapper'
in performSpaceAction (this runs on the admin-settings page, not files)
- wrap transitionend waits in Promise.all with their triggering click, so
the listener attaches before the transition begins - otherwise a near-
instant transition (under prefers-reduced-motion: reduce, enabled by an
earlier fix in this branch) can finish before the listener binds and
the wait never resolves, hanging the "list members via sidebar" test
* fix(e2e): mark kindergarten journey test as slow
The journey performs 16 downloads plus shares and deletes, each cycling
the sidebar with a11y scans, and consistently runs 3-4 minutes even in
isolation - past the default 180s timeout. When the deadline hits, the
axe scan in flight fails with "Target page, context or browser has been
closed" from a different call site each run.
test.slow() triples the timeout to 540s, the idiomatic Playwright hint
for legitimately long journey tests.
* fix(e2e): add aria-label to create-user button when icon-only
When admin-settings shrinks to a limited-width viewport, the create-user
button collapses to icon-only and its visible text label is hidden. The
tooltip already switches to the accessible name in that mode; mirror
that on aria-label so the button retains an accessible name in the
collapsed state (WCAG 4.1.2).
* fix(e2e): import expect in crashPage step helpers
expectCrashPageHasNoAccessibilityViolations uses expect() but the
import only included Page - the file wouldn't compile if that helper
was referenced anywhere.
* fix(e2e): pass selector variables to admin-settings users a11y scans
Four call sites passed string keys ('loginToggleWithDropdown',
'loginDropDown', 'groupsModalInput') that don't exist in the shared
selectors map - assertNoSevereA11yViolations' fallback then used those
literal strings as raw CSS selectors, matching nothing, so axe threw
"No elements found for include" instead of actually scanning. Same
class of bug as the earlier 'tippbBox'/'sidebarPanel'/'linkUpdateDialog'
fixes in this branch.
Switched to passing the local const variables directly, which resolve
to the real CSS selectors defined in the same file.
* fix(e2e): scan notifications dropdown container instead of message list
Both notification-related scans passed notificationItemsMessages, which
is a selector that matches multiple elements (one per notification). axe
throws on multi-match includes. Switched to notificationsDrop, the
single container that wraps the message list.
* fix(e2e): wait for link-update dialog before scanning it
Four call sites (changeRole, changeName, addExpiration, deleteLink) ran
assertNoSevereA11yViolations on the linkUpdateDialog notification right
after the action that triggers it, without waiting for the notification
to actually appear - axe would race and sometimes scan before the DOM
was there.
Also fixed copyLinkToClipboard: previously scanned '.snackbar' (which
doesn't exist in this codebase) unconditionally; now waits for the
linkUpdateDialog and scans it, or for the password-protected-folder
case, waits inside the iframe and scans the iframe locator instead
(mirroring the pattern already used by open() in utils/sidebar.ts).
* fix(e2e): scan iframe locator for password-protected-folder sidebar
Two scans in the passwordProtectedFolder branch were pointed at
top-level page selectors ('tippyBox', the plain sidebarPanel const)
but that sidebar lives inside its own iframe (#iframe-folder-view),
not on the top-level page - so axe found nothing to scan and threw.
Switched to scanning the iframe locator itself. In open()'s post-open
scan, made the target conditional so the non-iframe branch keeps
scanning #app-sidebar as before.
* fix(e2e): drop premature tippyBox scan before more-options dropdown opens
createShare scanned the tippyBox before clicking showMoreOptionsButton,
but the tippy isn't in the DOM yet at that point - the click on the
button is what opens it. The second scan a couple of lines below runs
after the click, when the dropdown is actually rendered, which is the
only place the scan belongs.
* fix(e2e): scan body in shared createSpace instead of #files-view
createSpace is invoked from both the Files app spaces view (which has
#files-view) and the admin-settings spaces page (which has
#admin-settings-wrapper instead) - scanning a single view-specific
root failed in one of the two callers. Scan the always-present body
so both callers work.
* fix(e2e): make resource-action a11y scans robust to timing and view mode
- clickResource: it's used for both folder navigation (breadcrumb
appears) and file-open (navigates away into a viewer/editor with no
breadcrumb). The unconditional post-click scan of 'breadcrumb' timed
out on file opens. Wait for the breadcrumb with a 5s cap and skip
the scan when it never appears.
- createNewFolder: was scanning 'filesSpaceTable' which only exists in
table view. Scan the view-mode-agnostic 'filesView' wrapper instead.
- downloadResources / pasteResource / moveOrCopyResource: add waitFor
on the target selector before axe scans it, otherwise axe can race
and scan before the DOM updates from the preceding click.
* fix(web-app-app-store): fix TS2322 type error in AppImageGallery aria-label
# Configuration for update-docs - https://github.com/behaviorbot/update-docs
# Comment to be posted to on PRs that don't update documentation
updateDocsComment:>
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a [changelog](https://github.com/owncloud/ocis/blob/master/changelog/README.md) item based on your changes.
* [ ] QA: [Web Office Smoke test](https://github.com/owncloud/QA/blob/master/Server/Test_Plan_OCIS_Smoke_Web_Office_Test.md) on Web Office (Collabora, Onlyoffice, Microsoft office)
* [ ] QA: [Smoke test](https://github.com/owncloud/QA/blob/master/Server/Test_Plan_OCIS_Smoke_Test.md) on pre-production server
* [ ] DEV: Check successful CI run on `vx.y.z` tag / BLOCKING for all further activity
* [ ] Merge release notes
### Post-release communication
* [ ] DEV: Create a `docs-stable-x.y` branch based on the docs folder in the ocis repo @micbar
* [ ] DEV/QA: Ping documentation in RC about the new release tag (for ocis/helm chart version bump in docs)
* [ ] DEV/QA: Ping marketing to update all download links (download mirrors are updated at the full hour, wait with ping until download is actually available)
* [ ] DEV/QA: Ping @hodyroff once the demo instances are running this release
* [ ] DEV: Merge back release branch
* [ ] DEV: Create stable-x.y branch in the ocis repo from final tag
CVE-2026-32284 # github.com/shamaton/msgpack/v2 v2.4.0 — no fix available upstream
vendor/github.com/crewjam/saml/xmlenc/fuzz.go # test RSA key used in fuzz corpus, not a real secret
CVE-2026-116587 # github.com/go-jose/go-jose/v3 v3.0.5 — no v3 fix exists, only a transitive dependency of libregraph/lico, which parses JWKs only from local files and from configured OIDC authorities; go-jose/v4 is fixed
@@ -69,13 +69,15 @@ Use as URL `localhost:9200` and the user/password printed.
Infinite Scale allows the following ownCloud clients:
*[web](https://github.com/owncloud/web),
*Web (bundled in this repository under [`web/`](web/)),
* [Android](https://github.com/owncloud/android),
* [iOS](https://github.com/owncloud/ios-app) and
* [Desktop](https://github.com/owncloud/client/)
to synchronize and share file spaces with a scalable server backend based on [reva](https://reva.link/) using open and well-defined APIs like [WebDAV](http://www.webdav.org/) and [CS3](https://github.com/cs3org/cs3apis/).
The Web client used to live in the separate [owncloud/web](https://github.com/owncloud/web) repository; it is now developed in-tree here under [`web/`](web/) as part of a single-repo product (backend + web frontend). `owncloud/web` is archived and kept only as the historical record up to its final release; file web-related issues and contributions in this repository instead.
### Web Office Applications
Infinite Scale can integrate web office applications such as:
@@ -102,7 +104,7 @@ Before starting to set up an instance, we **highly** recommend reading the [Prer
### Use the Official Documentation
See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/depl-examples/ubuntu-compose/ubuntu-compose-prod.html) for a production ready deployment starting with a Raspberry Pi, a single server or VM.
See the [Install Infinite Scale on a Server](https://doc.owncloud.com/ocis/next/admin/depl-examples/ubuntu-compose/ubuntu-compose-prod.html) for a production ready deployment starting with a Raspberry Pi, a single server or VM.
### Use the ocis Repo as Source
@@ -166,5 +168,5 @@ Some builds of stable ownCloud Infinite Scale releases provided by ownCloud GmbH
Bugfix: Restarting the proxy service on error was causing panics
Starting oCIS with the `ocis server` command causes oCIS to monitor the
services being started. When a service fails to start, this monitor tries
to restart the services. For the cause of the proxy service, restarting it
was a panic.
Now, the proxy service can be restarted as expected, without that panic.
Note that the service might still fail to start if the actual cause isn't
fixed, such as the service's port being taken by a different application.
https://github.com/owncloud/ocis/pull/12769
Loaded 100 of 2014 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.