* 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>