Compare commits

..
Author SHA1 Message Date
Roman Perekhod 0d7db9f97e fix readme 2026-02-10 11:36:23 +01:00
Niraj Acharya 2d0ae5a313 update thumbnail images for test 2026-02-10 15:44:05 +05:45
Roman Perekhod 2c66253014 force go-1.25.7 2026-02-09 23:39:31 +01:00
Roman Perekhod f3676fb2b2 feat: bump bingo to v0.10.0 2026-02-09 20:32:41 +01:00
Roman Perekhod f63e310687 feat: bump govulncheck 2026-02-09 20:06:32 +01:00
Roman Perekhod 8895e1dee2 feat: bump mockery to v2.53.5 2026-02-09 19:11:44 +01:00
Roman Perekhod 68b4791fce feat: bump go to 1.25
bump reva
2026-02-09 18:44:14 +01:00
143 changed files with 2908 additions and 2871 deletions

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
# The test runner source for UI tests
WEB_COMMITID=65cfd7b833f369623ae1d8682a66c4c768b9be9f
WEB_COMMITID=6c5fae0833660f0893d824b5d64d050b2f29b842
WEB_BRANCH=stable-12.3
+5 -9
View File
@@ -5,7 +5,7 @@
# NOTE: need to be updated if new production releases are determined
# - follow semver
# - omit 'v' prefix
PRODUCTION_RELEASE_TAGS = ["5.0", "7", "8"]
PRODUCTION_RELEASE_TAGS = ["5.0", "7"]
# images
ALPINE_GIT = "alpine/git:latest"
@@ -895,15 +895,12 @@ def uploadScanResults(ctx):
},
{
"name": "codacy",
"image": "codacy/codacy-coverage-reporter:latest",
"environment": {
"CODACY_PROJECT_TOKEN": {
"image": PLUGINS_CODACY,
"settings": {
"token": {
"from_secret": "codacy_token",
},
},
"commands": [
"/app/codacy-coverage-reporter report --force-coverage-parser go -r cache/coverage/coverage.out",
],
},
{
"name": "sonarcloud",
@@ -2471,7 +2468,7 @@ def documentation():
},
"pages_directory": "docs/hugo/content/",
"copy_contents": "true",
"target_branch": "docs-stable-8.0",
"target_branch": "docs",
"delete": "true",
},
"when": {
@@ -3840,7 +3837,6 @@ def prepareOcisDeployment():
"sed -i '/{{- define \"ocis.basicServiceTemplates\" -}}/a\\\\ {{- $_ := set .scope \"appNameAuthBasic\" \"authbasic\" -}}' ./charts/ocis/templates/_common/_tplvalues.tpl",
"sed -i '/- name: IDM_ADMIN_PASSWORD/{n;N;N;N;d;}' ./charts/ocis/templates/idm/deployment.yaml",
"sed -i '/- name: IDM_ADMIN_PASSWORD/a\\\\\\n value: \"admin\"' ./charts/ocis/templates/idm/deployment.yaml",
"sed -i '/- name: STORAGE_PUBLICLINK_DEBUG_ADDR/i\\\\ {{- include \"ocis.persistentStore\" . | nindent 12 }}\\\n' ./charts/ocis/templates/storagepubliclink/deployment.yaml",
"sed -i '/- name: PROXY_HTTP_ADDR/i\\\\ - name: PROXY_ENABLE_BASIC_AUTH\\\n value: \"true\"' ./charts/ocis/templates/proxy/deployment.yaml",
"sed -i 's|/etc/ocis/sharing-banned-passwords.txt|config/drone/banned-password-list.txt|' ./charts/ocis/templates/sharing/deployment.yaml",
"sed -i 's|- name: configs|- name: banned-passwords|' ./charts/ocis/templates/sharing/deployment.yaml",
@@ -1,6 +0,0 @@
Enhancement: Bump Web to 12.3.1
Bugfix [owncloud/web#13553](https://github.com/owncloud/web/pull/13553): Search Text Overalps With Search Icon In The Search Bar
https://github.com/owncloud/ocis/pull/12016
https://github.com/owncloud/web/releases/tag/v12.3.1
@@ -1,5 +0,0 @@
Bugfix: Fix group creation in ocis-multi example
Group creation was not working in ocis.ocm instance
https://github.com/owncloud/ocis/pull/12019
@@ -1,8 +0,0 @@
Enhancement: Bump reva
Bumped reva to the latest version. This includes a refactoring of the
scope expansion and verification logic, as well as a fix for the
signature-auth propfind attribute that now correctly supports archive
downloads in password-protected public links.
https://github.com/owncloud/ocis/pull/12097
@@ -1,6 +0,0 @@
Enhancement: Bump Web to 12.3.2
- Enhancement [owncloud/ocis#11963](https://github.com/owncloud/ocis/issues/11963): Use signature auth
https://github.com/owncloud/ocis/pull/12074
https://github.com/owncloud/web/releases/tag/v12.3.2
@@ -1,6 +0,0 @@
Bugfix: Don't use hardcoded groupOfNames in group creation
Formerly, when creating a group with a different objectClass, it will always use groupOfNames instead of the one provided in the config.
Now, the server creates groups using the objectClass defined in the config.
https://github.com/owncloud/ocis/pull/11776
@@ -1,6 +0,0 @@
Bugfix: Don't write empty externalID to LDAP
When creating new users in the graph service, the externalID attribute was being written to LDAP even when it was empty.
Now, the externalID attribute is only written when it has a non-empty value.
https://github.com/owncloud/ocis/pull/12085
@@ -1,6 +0,0 @@
Bugfix: Expose the signature-auth attribute
Expose the "oc:signature-auth" attribute for the subfolders in the public link propfinds.
This is a necessary change to be able to support archive downloads in password protected public links.
https://github.com/owncloud/ocis/pull/12052
-12
View File
@@ -18,16 +18,4 @@ Demo User have different roles on different instances
Users can be invited to instances they are not member of by using their exact email address in space membership or share dialog.
## Master-ID Configuration
**Configuration:**
- **Master-ID Value**: `11111111-1111-1111-1111-111111111111`
- **Environment Variable**: `OCIS_MULTI_INSTANCE_MASTER_ID`
- **User**: admin (configured in config/ldap/ldif/20_users.ldif)
- **Purpose**: Users with this ID in their `owncloudMemberOf` or `owncloudGuestOf` claims can login to any instance
Users with the master-id are granted member access to all instances without maintaining instance-specific IDs. The feature is optional and disabled when `OCIS_MULTI_INSTANCE_MASTER_ID` is empty.
**Security Note:** Master-id grants member status only (not admin privileges). Regular users require specific instance IDs for access control.
@@ -126,6 +126,7 @@ uidNumber: 20004
gidNumber: 30000
homeDirectory: /home/admin
ownCloudUUID: ddc2004c-0977-11eb-9d3f-a793888cd0f8
owncloudMemberOf: 11111111-1111-1111-1111-111111111111
owncloudMemberOf: ec730a6c-1b63-4b45-b83b-9e2311afdf85
owncloudMemberOf: 8d24cb5f-6ee6-4b98-86df-c4c268dddb46
ownCloudRole: ocisAdmin
userPassword:: e1NTSEF9UWhmaFB3dERydTUydURoWFFObDRMbzVIckI3TkI5Nmo=
@@ -41,11 +41,6 @@ olcAttributeTypes: ( ownCloudOid:1.1.9 NAME 'ownCloudRole'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcAttributeTypes: ( ownCloudOid:1.1.10 NAME 'owncloudExternalID'
DESC 'External ID for the user'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 )
olcObjectClasses: ( ownCloudOid:1.2.1 NAME 'ownCloud'
DESC 'ownCloud LDAP Schema'
AUXILIARY
@@ -54,9 +49,9 @@ olcObjectClasses: ( ownCloudOid:1.2.2 NAME 'ownCloudUser'
DESC 'ownCloud User LDAP Schema'
SUP ownCloud
AUXILIARY
MAY ( ocExternalIdentity $ ownCloudUserEnabled $ ownCloudUserType $ ocLastSignInTimestamp $ ownCloudMemberOf $ ownCloudGuestOf $ ownCloudRole $ owncloudExternalID) )
MAY ( ocExternalIdentity $ ownCloudUserEnabled $ ownCloudUserType $ ocLastSignInTimestamp $ ownCloudMemberOf $ ownCloudGuestOf $ ownCloudRole) )
olcObjectClasses: ( ownCloudOid:1.2.3 NAME 'ownCloudGroup'
DESC 'ownCloud Group LDAP Schema'
SUP groupOfNames
STRUCTURAL
SUP ownCloud
AUXILIARY
MAY ( ownCloudMemberOf ) )
@@ -100,13 +100,10 @@ services:
IDP_LDAP_UUID_ATTRIBUTE_TYPE: binary
GRAPH_LDAP_SERVER_WRITE_ENABLED: "true" # assuming the external ldap is writable
GRAPH_LDAP_REFINT_ENABLED: "true" # osixia has refint enabled.
OCIS_LDAP_DISABLE_USER_MECHANISM: "group"
OCIS_LDAP_DISABLED_USERS_GROUP_DN: "cn=disabled-users-ec730a6c-1b63-4b45-b83b-9e2311afdf85,ou=groups,dc=owncloud,dc=com"
# Multi-Instance Configuration
OCIS_MULTI_INSTANCE_ENABLED: true
OCIS_MULTI_INSTANCE_INSTANCEID: "ec730a6c-1b63-4b45-b83b-9e2311afdf85"
OCIS_MULTI_INSTANCE_MASTER_ID: "11111111-1111-1111-1111-111111111111"
OCIS_LDAP_USER_FILTER: "(&(objectclass=owncloud)(|(ownCloudMemberOf=ec730a6c-1b63-4b45-b83b-9e2311afdf85)(ownCloudGuestOf=ec730a6c-1b63-4b45-b83b-9e2311afdf85)(ownCloudMemberOf=11111111-1111-1111-1111-111111111111)))"
OCIS_LDAP_USER_FILTER: "(&(objectclass=owncloud)(|(ownCloudMemberOf=ec730a6c-1b63-4b45-b83b-9e2311afdf85)(ownCloudGuestOf=ec730a6c-1b63-4b45-b83b-9e2311afdf85)))"
OCIS_LDAP_GROUP_FILTER: "(&(objectclass=owncloud)(ownCloudMemberOf=ec730a6c-1b63-4b45-b83b-9e2311afdf85))"
OCIS_LDAP_USER_MEMBER_ATTRIBUTE: "owncloudMemberOf"
OCIS_LDAP_USER_GUEST_ATTRIBUTE: "ownCloudGuestOf"
@@ -191,8 +188,7 @@ services:
OCIS_LDAP_BIND_DN: "cn=admin,dc=owncloud,dc=com"
OCIS_LDAP_BIND_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin}
OCIS_LDAP_GROUP_BASE_DN: "ou=groups,dc=owncloud,dc=com"
GRAPH_LDAP_GROUP_CREATE_BASE_DN: "ou=groups-8d24cb5f-6ee6-4b98-86df-c4c268dddb46,ou=groups,dc=owncloud,dc=com"
OCIS_LDAP_GROUP_OBJECTCLASS: "owncloudGroup"
OCIS_LDAP_GROUP_OBJECTCLASS: "groupOfNames"
OCIS_LDAP_USER_BASE_DN: "ou=users,dc=owncloud,dc=com"
OCIS_LDAP_USER_OBJECTCLASS: "inetOrgPerson"
LDAP_LOGIN_ATTRIBUTES: "uid"
@@ -202,17 +198,13 @@ services:
IDP_LDAP_UUID_ATTRIBUTE_TYPE: binary
GRAPH_LDAP_SERVER_WRITE_ENABLED: "true" # assuming the external ldap is writable
GRAPH_LDAP_REFINT_ENABLED: "true" # osixia has refint enabled.
OCIS_LDAP_DISABLE_USER_MECHANISM: "group"
OCIS_LDAP_DISABLED_USERS_GROUP_DN: "cn=disabled-users-8d24cb5f-6ee6-4b98-86df-c4c268dddb46,ou=groups,dc=owncloud,dc=com"
# Multi-Instance
OCIS_MULTI_INSTANCE_ENABLED: true
OCIS_MULTI_INSTANCE_INSTANCEID: "8d24cb5f-6ee6-4b98-86df-c4c268dddb46"
OCIS_MULTI_INSTANCE_MASTER_ID: "11111111-1111-1111-1111-111111111111"
OCIS_LDAP_USER_FILTER: "(&(objectclass=owncloud)(|(ownCloudMemberOf=8d24cb5f-6ee6-4b98-86df-c4c268dddb46)(ownCloudGuestOf=8d24cb5f-6ee6-4b98-86df-c4c268dddb46)(ownCloudMemberOf=11111111-1111-1111-1111-111111111111)))"
OCIS_LDAP_USER_FILTER: "(&(objectclass=owncloud)(|(ownCloudMemberOf=8d24cb5f-6ee6-4b98-86df-c4c268dddb46)(ownCloudGuestOf=8d24cb5f-6ee6-4b98-86df-c4c268dddb46)))"
OCIS_LDAP_GROUP_FILTER: "(&(objectclass=owncloud)(ownCloudMemberOf=8d24cb5f-6ee6-4b98-86df-c4c268dddb46))"
OCIS_LDAP_USER_MEMBER_ATTRIBUTE: "owncloudMemberOf"
OCIS_LDAP_USER_GUEST_ATTRIBUTE: "ownCloudGuestOf"
OCIS_LDAP_GROUP_AFFILIATION_ATTRIBUTE: "owncloudMemberOf"
OCIS_LDAP_PRECISE_SEARCH_ATTRIBUTE: "cn"
OCIS_LDAP_INSTANCE_MAPPER_ENABLED: true
OCIS_LDAP_INSTANCE_MAPPER_BASE_DN: "dc=owncloud,dc=com"
@@ -224,8 +216,9 @@ services:
OCIS_MULTI_INSTANCE_GUEST_ROLE: "user-light"
OCIS_LDAP_CROSS_INSTANCE_REFERENCE_TEMPLATE: "{{.Username}}@{{.Instancename}}.owncloud.test"
OCIS_LDAP_INSTANCE_URL_TEMPLATE: "https://{{.Instancename}}.owncloud.test"
# FIXME: sync groups properly to keycloak and remove the next line
PROXY_AUTOPROVISION_CLAIM_GROUPS: ""
# user filter required for multi-instance ocis
# Workaround needed to show external users - can be removed once fixed
OCIS_USER_SEARCH_DISPLAYED_ATTRIBUTES: mail
PROXY_ROLE_ASSIGNMENT_OIDC_CLAIM: ownCloudRole
volumes:
- ./config/ocis/csp-ocm.yaml:/etc/ocis/csp-ocm.yaml
+1 -1
View File
@@ -64,7 +64,7 @@ require (
github.com/open-policy-agent/opa v1.12.3
github.com/orcaman/concurrent-map v1.0.0
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260116104114-10074a92be64
github.com/owncloud/reva/v2 v2.0.0-20260305165853-c9204c730c66
github.com/owncloud/reva/v2 v2.0.0-20260209172723-6b94461c2a1a
github.com/pkg/errors v0.9.1
github.com/pkg/xattr v0.4.12
github.com/prometheus/client_golang v1.23.2
+2 -4
View File
@@ -742,10 +742,8 @@ github.com/orcaman/concurrent-map v1.0.0 h1:I/2A2XPCb4IuQWcQhBhSwGfiuybl/J0ev9HD
github.com/orcaman/concurrent-map v1.0.0/go.mod h1:Lu3tH6HLW3feq74c2GC+jIMS/K2CFcDWnWD9XkenwhI=
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260116104114-10074a92be64 h1:z9djjzd+leAy6QZpi8dLy3OVjc/um+1XAGk1SJEvwE8=
github.com/owncloud/libre-graph-api-go v1.0.5-0.20260116104114-10074a92be64/go.mod h1:z61VMGAJRtR1nbgXWiNoCkxUXP1B3Je9rMuJbnGd+Og=
github.com/owncloud/reva/v2 v2.0.0-20260223151234-43d3d0896c59 h1:j5TOu6jBlnGcZEMKVugak4Dm3FYYKHnsp3HL9ygcd/Q=
github.com/owncloud/reva/v2 v2.0.0-20260223151234-43d3d0896c59/go.mod h1:eHbT6pmVlcjdiBeVEYw7exlfJmemMzKBh4R+HFgx9Cc=
github.com/owncloud/reva/v2 v2.0.0-20260305165853-c9204c730c66 h1:Krzzphe3EkE09Enxy6s5eIFPNF6Kodw/H8EcHo+jT+E=
github.com/owncloud/reva/v2 v2.0.0-20260305165853-c9204c730c66/go.mod h1:eHbT6pmVlcjdiBeVEYw7exlfJmemMzKBh4R+HFgx9Cc=
github.com/owncloud/reva/v2 v2.0.0-20260209172723-6b94461c2a1a h1:ExIZgutPn8K1DbRrnUSyMlIXtxHwsEO6obqVOdJhTc4=
github.com/owncloud/reva/v2 v2.0.0-20260209172723-6b94461c2a1a/go.mod h1:scEb/eOohP+x3m3indXyZNc+Mksim1XEBDZvHMOSjPA=
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c h1:rp5dCmg/yLR3mgFuSOe4oEnDDmGLROTvMragMUXpTQw=
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c/go.mod h1:X07ZCGwUbLaax7L0S3Tw4hpejzu63ZrrQiUe6W0hcy0=
github.com/pablodz/inotifywaitgo v0.0.9 h1:njquRbBU7fuwIe5rEvtaniVBjwWzcpdUVptSgzFqZsw=
+1 -1
View File
@@ -16,7 +16,7 @@ var (
// LatestTag is the latest released version plus the dev meta version.
// Will be overwritten by the release pipeline
// Needs a manual change for every tagged release
LatestTag = "8.0.1"
LatestTag = "8.0.0-rc.1"
// Date indicates the build date.
// This has been removed, it looks like you can only replace static strings with recent go versions
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Catalan (https://app.transifex.com/owncloud-org/teams/6149/ca/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: English (United Kingdom) (https://app.transifex.com/owncloud-org/teams/6149/en_GB/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: English (United States) (https://app.transifex.com/owncloud-org/teams/6149/en_US/)\n"
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 14:42+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Victor Vinuela <vinuela.victor@dissectio.com>, 2026\n"
"Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n"
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 14:42+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Cesare Capoferri, 2026\n"
"Language-Team: Italian (https://app.transifex.com/owncloud-org/teams/6149/it/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Japanese (https://app.transifex.com/owncloud-org/teams/6149/ja/)\n"
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Portuguese (https://app.transifex.com/owncloud-org/teams/6149/pt/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/owncloud-org/teams/6149/pt_BR/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Russian (https://app.transifex.com/owncloud-org/teams/6149/ru/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Albanian (https://app.transifex.com/owncloud-org/teams/6149/sq/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Uyghur (https://app.transifex.com/owncloud-org/teams/6149/ug/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
+2 -6
View File
@@ -1059,6 +1059,7 @@ func (i *LDAP) userToLDAPAttrValues(user libregraph.User) (map[string][]string,
"objectClass": {"inetOrgPerson", "organizationalPerson", "person", "top", "ownCloudUser"},
"cn": {user.GetOnPremisesSamAccountName()},
i.userAttributeMap.userType: {user.GetUserType()},
i.userAttributeMap.externalID: {user.GetExternalID()},
}
if identities, ok := user.GetIdentitiesOk(); ok {
@@ -1099,11 +1100,6 @@ func (i *LDAP) userToLDAPAttrValues(user libregraph.User) (map[string][]string,
attrs[i.userAttributeMap.givenName] = []string{givenName}
}
// Only set externalID when it's not empty.
if externalID := user.GetExternalID(); externalID != "" {
attrs[i.userAttributeMap.externalID] = []string{externalID}
}
if !i.usePwModifyExOp && user.PasswordProfile != nil && user.PasswordProfile.Password != nil {
// Depending on the LDAP server implementation this might cause the
// password to be stored in cleartext in the LDAP database. Using the
@@ -1311,7 +1307,7 @@ func (i *LDAP) CreateLDAPGroupByDN(dn string) error {
ar := ldap.NewAddRequest(dn, nil)
attrs := map[string][]string{
"objectClass": {i.groupObjectClass, "top"},
"objectClass": {"groupOfNames", "top"},
"member": {""},
}
+4 -4
View File
@@ -184,9 +184,9 @@ func (i *LDAP) GetGroupMembers(ctx context.Context, groupID string, req *godata.
}
// CreateGroup implements the Backend Interface for the LDAP Backend
// The implementation uses the configured groupObjectClass. Many common classes like
// "groupOfNames" and "groupOfUniqueNames" require a "member" attribute to be present.
// Empty Groups (groups without a member) are represented by adding an empty DN as the single member.
// It is currently restricted to managing groups based on the "groupOfNames" ObjectClass.
// As "groupOfNames" requires a "member" Attribute to be present. Empty Groups (groups
// without a member) a represented by adding an empty DN as the single member.
func (i *LDAP) CreateGroup(ctx context.Context, group libregraph.Group) (*libregraph.Group, error) {
logger := i.logger.SubloggerWithRequestID(ctx)
logger.Debug().Str("backend", "ldap").Msg("create group")
@@ -448,7 +448,7 @@ func (i *LDAP) getGroupCreateLDAPDN(group libregraph.Group) string {
func (i *LDAP) groupToLDAPAttrValues(group libregraph.Group) (map[string][]string, error) {
attrs := map[string][]string{
i.groupAttributeMap.name: {group.GetDisplayName()},
"objectClass": {i.groupObjectClass, "top"},
"objectClass": {"groupOfNames", "top", i.groupObjectClass},
// This is a crutch to allow groups without members for LDAP servers
// that apply strict Schema checking. The RFCs define "member/uniqueMember"
// as required attribute for groupOfNames/groupOfUniqueNames. So we
@@ -8,7 +8,6 @@ import (
"github.com/CiscoM31/godata"
"github.com/go-ldap/ldap/v3"
libregraph "github.com/owncloud/libre-graph-api-go"
"github.com/owncloud/ocis/v2/services/graph/pkg/identity/mocks"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
@@ -452,63 +451,3 @@ func TestUpdateGroupName(t *testing.T) {
})
}
}
func TestGroupToLDAPAttrValuesUsesConfiguredObjectClass(t *testing.T) {
tests := []struct {
name string
groupObjectClass string
}{
{
name: "default groupOfNames",
groupObjectClass: "groupOfNames",
},
{
name: "custom groupOfUniqueNames",
groupObjectClass: "groupOfUniqueNames",
},
{
name: "custom posixGroup",
groupObjectClass: "posixGroup",
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
// Setup config with custom groupObjectClass
testConfig := lconfig
testConfig.GroupObjectClass = tt.groupObjectClass
lm := &mocks.Client{}
b, err := getMockedBackend(lm, testConfig, &logger)
if err != nil {
t.Fatalf("Failed to create backend: %s", err.Error())
}
// Create test group
group := libregraph.Group{}
displayName := "Test Group"
group.SetDisplayName(displayName)
// Get LDAP attributes
attrs, err := b.groupToLDAPAttrValues(group)
if err != nil {
t.Fatalf("Expected groupToLDAPAttrValues to succeed, got error: %s", err.Error())
}
objectClasses, ok := attrs["objectClass"]
if !ok {
t.Fatal("Expected objectClass attribute to be present")
}
// Check objectClass has exactly 3 elements
if len(objectClasses) != 3 {
t.Errorf("Expected objectClass to have exactly 3 elements, got %d: %v", len(objectClasses), objectClasses)
}
// Check first element is the configured groupObjectClass (exact match)
if objectClasses[0] != tt.groupObjectClass {
t.Errorf("Expected first objectClass to be '%s', got '%s'", tt.groupObjectClass, objectClasses[0])
}
})
}
}
+39 -62
View File
@@ -129,72 +129,49 @@ func TestCreateUser(t *testing.T) {
givenName := "givenName"
userType := "Member"
tests := []struct {
name string
externalID string
}{
{
name: "with externalID",
externalID: "abcd-efgh-ijkl-mnop",
},
{
name: "without externalID",
externalID: "",
},
}
ar := ldap.NewAddRequest(fmt.Sprintf("uid=user,%s", lconfig.UserBaseDN), nil)
ar.Attribute(lconfig.UserDisplayNameAttribute, []string{displayName})
ar.Attribute(lconfig.UserEmailAttribute, []string{mail})
ar.Attribute(lconfig.UserNameAttribute, []string{userName})
ar.Attribute("sn", []string{surname})
ar.Attribute("givenname", []string{givenName})
ar.Attribute(lconfig.UserEnabledAttribute, []string{"TRUE"})
ar.Attribute(lconfig.UserTypeAttribute, []string{"Member"})
ar.Attribute(lconfig.ExternalIDAttribute, []string{"abcd-efgh-ijkl-mnop"})
ar.Attribute("cn", []string{userName})
ar.Attribute("objectClass", []string{"inetOrgPerson", "organizationalPerson", "person", "top", "ownCloudUser"})
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
ar := ldap.NewAddRequest(fmt.Sprintf("uid=user,%s", lconfig.UserBaseDN), nil)
ar.Attribute(lconfig.UserDisplayNameAttribute, []string{displayName})
ar.Attribute(lconfig.UserEmailAttribute, []string{mail})
ar.Attribute(lconfig.UserNameAttribute, []string{userName})
ar.Attribute("sn", []string{surname})
ar.Attribute("givenname", []string{givenName})
ar.Attribute(lconfig.UserEnabledAttribute, []string{"TRUE"})
ar.Attribute(lconfig.UserTypeAttribute, []string{"Member"})
if tt.externalID != "" {
ar.Attribute(lconfig.ExternalIDAttribute, []string{tt.externalID})
}
ar.Attribute("cn", []string{userName})
ar.Attribute("objectClass", []string{"inetOrgPerson", "organizationalPerson", "person", "top", "ownCloudUser"})
l := &mocks.Client{}
l.On("Search", mock.Anything).
Return(
&ldap.SearchResult{
Entries: []*ldap.Entry{userEntry},
},
nil)
l.On("Add", ar).Return(nil)
logger := log.NewLogger(log.Level("debug"))
l := &mocks.Client{}
l.On("Search", mock.Anything).
Return(
&ldap.SearchResult{
Entries: []*ldap.Entry{userEntry},
},
nil)
l.On("Add", ar).Return(nil)
logger := log.NewLogger(log.Level("debug"))
user := libregraph.NewUser(displayName, userName)
user.SetMail(mail)
user.SetSurname(surname)
user.SetGivenName(givenName)
user.SetAccountEnabled(true)
user.SetUserType(userType)
user.SetExternalID("abcd-efgh-ijkl-mnop")
user := libregraph.NewUser(displayName, userName)
user.SetMail(mail)
user.SetSurname(surname)
user.SetGivenName(givenName)
user.SetAccountEnabled(true)
user.SetUserType(userType)
if tt.externalID != "" {
user.SetExternalID(tt.externalID)
}
c := lconfig
c.UseServerUUID = true
b, _ := NewLDAPBackend(l, c, &logger, "")
c := lconfig
c.UseServerUUID = true
b, err := NewLDAPBackend(l, c, &logger, "")
assert.Nil(t, err)
newUser, err := b.CreateUser(context.Background(), *user)
assert.Nil(t, err)
assert.Equal(t, displayName, newUser.GetDisplayName())
assert.Equal(t, mail, newUser.GetMail())
assert.Equal(t, userName, newUser.GetOnPremisesSamAccountName())
assert.Equal(t, givenName, newUser.GetGivenName())
assert.Equal(t, surname, newUser.GetSurname())
assert.True(t, newUser.GetAccountEnabled())
assert.Equal(t, userType, newUser.GetUserType())
})
}
newUser, err := b.CreateUser(context.Background(), *user)
assert.Nil(t, err)
assert.Equal(t, displayName, newUser.GetDisplayName())
assert.Equal(t, mail, newUser.GetMail())
assert.Equal(t, userName, newUser.GetOnPremisesSamAccountName())
assert.Equal(t, givenName, newUser.GetGivenName())
assert.Equal(t, surname, newUser.GetSurname())
assert.True(t, newUser.GetAccountEnabled())
assert.Equal(t, userType, newUser.GetUserType())
}
func TestCreateUserModelFromLDAP(t *testing.T) {
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-08 00:34+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Ivan Fustero, 2026\n"
"Language-Team: Catalan (https://app.transifex.com/owncloud-org/teams/6149/ca/)\n"
@@ -140,46 +140,45 @@ msgstr "Visualitza, descarrega i mostra totes les persones convidades."
#. UnifiedRole FileEditor, Role Description (resolves directly)
#: pkg/unifiedrole/roles.go:174
msgid "View, download, upload and edit."
msgstr "Visualitza, descarrega, carrega i edita."
msgstr "Visualitza, descarrega, puja i edita."
#. UnifiedRole EditorLite, Role Description (resolves directly)
#. UnifiedRole SpaceEditorWithoutVersions, Role Description (resolves
#. directly)
#: pkg/unifiedrole/roles.go:140 pkg/unifiedrole/roles.go:208
msgid "View, download, upload, edit and add."
msgstr "Visualitza, descarrega, carrega, edita i afegeix."
msgstr "Visualitza, descarrega, puja, edita i afegeix."
#. UnifiedRole FileEditorListGrants, Role Description (resolves directly)
#: pkg/unifiedrole/roles.go:182
msgid "View, download, upload, edit and show all invited people."
msgstr ""
"Visualitza, descarrega, carrega, edita i mostra totes les persones "
"convidades."
"Visualitza, descarrega, puja, edita i mostra totes les persones convidades."
#. UnifiedRole Editor, Role Description (resolves directly)
#: pkg/unifiedrole/roles.go:148
msgid "View, download, upload, edit, add and delete."
msgstr "Visualitza, descarrega, carrega, edita, afegeix i suprimeix."
msgstr "Visualitza, descarrega, puja, edita, afegeix i suprimeix."
#. UnifiedRole SpaceEditorWithoutTrashbin, Role Description (resolves
#. directly)
#: pkg/unifiedrole/roles.go:216
msgid "View, download, upload, edit, add and show all versions."
msgstr "Visualitza, descarrega, carrega, edita i mostra totes les versions."
msgstr "Visualitza, descarrega, puja, edita i mostra totes les versions."
#. UnifiedRole EditorListGrants Editor, Role Description (resolves directly)
#: pkg/unifiedrole/roles.go:156
msgid "View, download, upload, edit, add, delete and show all invited people."
msgstr ""
"Visualitza, descarregar, carrega, editar, afegir, esborrar i mostrar totes "
"les persones convidades."
"Visualitza, descarregar, pujar, editar, afegir, esborrar i mostrar totes les"
" persones convidades."
#. UnifiedRole SpaceEditor, Role Description (resolves directly)
#: pkg/unifiedrole/roles.go:224
msgid "View, download, upload, edit, add, show all versions and delete."
msgstr ""
"Visualitza, descarrega, carrega, edita, afegeix, mostra totes les versions i"
" suprimeix."
"Visualitza, descarrega, puja, edita, afegeix, mostra totes les versions i "
"suprimeix."
#. UnifiedRole Manager, Role Description (resolves directly)
#: pkg/unifiedrole/roles.go:232
@@ -187,7 +186,7 @@ msgid ""
"View, download, upload, edit, add, show all versions, delete and manage "
"members."
msgstr ""
"Visualitza, descarrega, carrega, edita, afegeix, mostra totes les versions, "
"Visualitza, descarrega, puja, edita, afegeix, mostra totes les versions, "
"elimina i gestiona membres."
#. UnifiedRole EditorListGrantsWithVersions, Role Description (resolves
@@ -197,8 +196,8 @@ msgid ""
"View, download, upload, edit, delete, show all versions and all invited "
"people."
msgstr ""
"Visualitza, descarrega, carrega, edita, suprimeix, mostra totes les versions"
" i totes les persones convidades."
"Visualitza, descarrega, puja, edita, suprimeix, mostra totes les versions i "
"totes les persones convidades."
#. UnifiedRole FileEditorListGrantsWithVersions, Role Description (resolves
#. directly)
@@ -206,5 +205,5 @@ msgstr ""
msgid ""
"View, download, upload, edit, show all versions and all invited people."
msgstr ""
"Visualitza, descarrega, carrega, edita, mostra totes les versions i totes "
"les persones convidades."
"Visualitza, descarrega, puja, edita, mostra totes les versions i totes les "
"persones convidades."
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
@@ -5,16 +5,16 @@
#
# Translators:
# Martin <github@diemattels.at>, 2026
# Jesús Recio <jrecio@izertis.com>, 2026
# Jesús Recio <jrecio@solidgear.es>, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Jesús Recio <jrecio@izertis.com>, 2026\n"
"Last-Translator: Jesús Recio <jrecio@solidgear.es>, 2026\n"
"Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Roman Perekhod, 2026\n"
"Language-Team: Russian (https://app.transifex.com/owncloud-org/teams/6149/ru/)\n"
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Besnik Bleta <besnik@programeshqip.org>, 2026\n"
"Language-Team: Albanian (https://app.transifex.com/owncloud-org/teams/6149/sq/)\n"
@@ -12,7 +12,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Roman Perekhod, 2026\n"
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
+4
View File
@@ -90,6 +90,7 @@
"i18next-browser-languagedetector": "^7.2.2",
"i18next-http-backend": "^2.7.3",
"i18next-resources-to-backend": "^1.2.1",
"kpop": "https://download.kopano.io/community/kapp:/kpop-2.7.2.tgz",
"notistack": "^1.0.10",
"query-string": "^9.3.1",
"react": "^17.0.2",
@@ -171,6 +172,9 @@
"glob": "10.5.0",
"js-yaml": ">=4.1.1",
"lodash": ">=4.17.23",
"kpop>cldr": "",
"kpop>notistack": "^1.0.5",
"kpop>react-intl": "^5.25.0",
"undici": ">=7.18.2",
"vue-template-compiler": "^3.0.0",
"brace-expansion@>=1.0.0 <=1.1.11": ">=1.1.12",
+2645 -1825
View File
File diff suppressed because it is too large. Load diff
+43 -36
View File
@@ -1,62 +1,69 @@
import React, { ReactElement, Suspense, lazy, useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import React, { ReactElement, Suspense, lazy, useState, useEffect } from 'react';
import PropTypes from 'prop-types';
import { MuiThemeProvider } from '@material-ui/core/styles'
import { MuiThemeProvider } from '@material-ui/core/styles';
import { defaultTheme } from 'kpop/es/theme';
import Spinner from './components/Spinner'
import * as version from './version'
import { InfiniteScaleContext } from './infiniteScaleContext'
import 'kpop/static/css/base.css';
import 'kpop/static/css/scrollbar.css';
import defaultTheme from './theme/default'
import Spinner from './components/Spinner';
import * as version from './version';
import { InfiniteScaleContext } from './infiniteScaleContext';
const LazyMain = lazy(() => import(/* webpackChunkName: "identifier-main" */ './Main'))
const LazyMain = lazy(() => import(/* webpackChunkName: "identifier-main" */ './Main'));
console.info(`Kopano Identifier build version: ${version.build}`) // eslint-disable-line no-console
console.info(`Kopano Identifier build version: ${version.build}`); // eslint-disable-line no-console
const App = ({ bgImg }): ReactElement => {
const [theme, setTheme] = useState(null)
const [config, setConfig] = useState(null)
const [loading, setLoading] = useState(true)
const [theme, setTheme] = useState(null);
const [config, setConfig] = useState(null);
const [loading, setLoading] = useState(true);
useEffect(() => {
const fetchData = async () => {
try {
const configResponse = await fetch('/config.json')
const configData = await configResponse.json()
setConfig(configData)
const configResponse = await fetch('/config.json');
const configData = await configResponse.json();
setConfig(configData);
const themeResponse = await fetch(configData.theme)
const themeData = await themeResponse.json()
setTheme(themeData)
const themeResponse = await fetch(configData.theme);
const themeData = await themeResponse.json();
setTheme(themeData);
} catch (error) {
console.error('Error fetching config/theme data:', error)
console.error('Error fetching config/theme data:', error);
} finally {
setLoading(false)
setLoading(false);
}
}
};
fetchData();
}, []);
fetchData()
}, [])
if (loading) {
return <Spinner />
return <Spinner />;
}
return (
<InfiniteScaleContext.Provider value={{ theme, config }}>
<div className="oc-login-bg" style={{ backgroundImage: bgImg ? `url(${bgImg})` : undefined }}>
<MuiThemeProvider theme={defaultTheme}>
<Suspense fallback={<Spinner />}>
<LazyMain />
</Suspense>
</MuiThemeProvider>
</div>
</InfiniteScaleContext.Provider>
)
<InfiniteScaleContext.Provider value={{ theme, config }}>
<div
className='oc-login-bg'
style={{ backgroundImage: bgImg ? `url(${bgImg})` : undefined }}
>
<MuiThemeProvider theme={defaultTheme}>
<Suspense fallback={<Spinner />}>
<LazyMain />
</Suspense>
</MuiThemeProvider>
</div>
</InfiniteScaleContext.Provider>
);
}
App.propTypes = {
bgImg: PropTypes.string
}
};
export default App
export default App;
+2 -145
View File
@@ -1,147 +1,3 @@
/* Kopano styles */
html,
body {
height: 100%;
}
body {
margin: 0;
padding: 0;
}
#bg {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: white;
}
#loader {
position: absolute;
bottom: 6%;
left: 50%;
font-weight: 400;
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
color: #666;
transform: translate(-50%, -50%);
}
#loader > a {
color: #1e98d7; /* KopanoBlue700 */
}
#font-preloader {
position: absolute;
top: -500px;
font-weight: 400;
color: white;
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
}
#font-preloader > span {
font-weight: 500;
}
#root {
height: 100%;
display: flex;
}
/* CSS Scrollbars, currently only Firefox: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Scrollbars */
* {
scrollbar-width: thin;
scrollbar-color: #ddd #f5f5f5;
}
body:hover * {
scrollbar-color: #bdbdbd #f5f5f5;
}
/* Webkit specific scrollbars, works in Chrome and Safari */
::-webkit-scrollbar {
height: 8px;
width: 8px;
background: transparent;
overflow: visible;
}
::-webkit-scrollbar-corner {
display: none;
background: #f5f5f5;
}
::-webkit-scrollbar-button {
display: none;
height: 0;
width: 0;
}
::-webkit-scrollbar-button:start:decrement,
::-webkit-scrollbar-button:end:increment {
display: block;
}
::-webkit-scrollbar-button:vertical:start:increment,
::-webkit-scrollbar-button:vertical:end:decrement {
display: none;
}
::-webkit-scrollbar-track {
-moz-background-clip: border;
-webkit-background-clip: border;
background-clip: padding-box;
background-color: #f5f5f5;
}
::-webkit-scrollbar-thumb {
background-clip: padding-box;
background-color: #ddd;
min-height: 40px;
padding-top: 100px;
border-radius: 4px;
}
::-webkit-scrollbar-track:vertical,
::-webkit-scrollbar-track:horizontal {
border-left-width: 0;
border-right-width: 0;
}
::-webkit-scrollbar-track:vertical,
::-webkit-scrollbar-track:horizontal,
::-webkit-scrollbar-thumb:vertical,
::-webkit-scrollbar-thumb:horizontal,
::-webkit-scrollbar-track:vertical,
::-webkit-scrollbar-track:horizontal,
::-webkit-scrollbar-thumb:vertical,
::-webkit-scrollbar-thumb:horizontal {
border-style: solid;
border-color: transparent;
}
::-webkit-scrollbar-thumb:hover {
background-color: #bdbdbd;
}
::-webkit-scrollbar-thumb:active {
background-color: #989898;
}
::-webkit-scrollbar-thumb:vertical,
::-webkit-scrollbar-thumb:horizontal {
border-width: 0;
border-left-width: 0;
border-right-width: 0;
}
body:hover ::-webkit-scrollbar-thumb {
background-color: #bdbdbd;
}
/* additional css on top of kpop */
@font-face {
font-family: Inter;
@@ -151,7 +7,7 @@ body:hover ::-webkit-scrollbar-thumb {
}
html {
font-feature-settings: 'cv11';
font-feature-settings: "cv11";
}
body {
@@ -285,6 +141,7 @@ strong {
margin-bottom: 15px;
}
/*
* Special SR classes
* Used to hide an element visually, but keeping it accessible for accessibility tools.
-55
View File
@@ -1,55 +0,0 @@
import { createMuiTheme } from '@material-ui/core/styles'
import blueGrey from '@material-ui/core/colors/blueGrey'
import red from '@material-ui/core/colors/red'
const kopanoBlue = {
50: '#e5f7fd',
100: '#ccf0fc',
200: '#99e1f9',
300: '#66d1f6',
400: '#33c2f3',
500: '#00b3f0',
600: '#14a9e7',
700: '#1e98d7',
800: '#188cc8',
900: '#0d74b6',
A100: '#96e8ff',
A200: '#6ddaff',
A400: '#56cbff',
A700: '#48acf0'
}
const primaryColor = kopanoBlue
const secondaryColor = blueGrey
const errorColor = red
// All the following keys are optional.
// We try our best to provide a great default value.
const theme = createMuiTheme({
palette: {
primary: primaryColor,
secondary: secondaryColor,
error: errorColor,
// Used by `getContrastText()` to maximize the contrast between the background and
// the text.
// NOTE(longsleep): KopanoBlue is too light and thus needs 2.4 contrastThreshold
// to make sure the default 500 color is still using white text. It will
// show warnings in development mode that the contrast is too low as W3C
// recommends the threshold to be 3 or more. This cannot be helped.
contrastThreshold: 2.4,
// Used to shift a color's luminance by approximately
// two indexes within its tonal palette.
// E.g., shift from Red 500 to Red 300 or Red 700.
tonalOffset: 0.2
},
typography: {
useNextVariants: true,
button: {
textTransform: 'none',
fontSize: '1rem'
}
}
})
export default theme
+2 -3
View File
@@ -267,14 +267,13 @@ module.exports = function (webpackEnv) {
plugins: [
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
// guards against forgotten dependencies and such.
PnpWebpackPlugin
// Disabled ModuleScopePlugin to support pnpm's .pnpm directory structure
PnpWebpackPlugin,
// Prevents users from importing files from outside of src/ (or node_modules/).
// This often causes confusion because we only process files within src/ with babel.
// To fix this, we prevent you from importing files out of src/ -- if you'd like to,
// please link the files into your node_modules/ and let module-resolution kick in.
// Make sure your source files are compiled, as they will not be processed in any way.
// new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson])
new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson])
]
},
resolveLoader: {
@@ -5,16 +5,15 @@
#
# Translators:
# Martin <github@diemattels.at>, 2026
# Ivan Fustero, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-08 00:34+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Ivan Fustero, 2026\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Catalan (https://app.transifex.com/owncloud-org/teams/6149/ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -121,7 +120,7 @@ msgid ""
msgstr ""
"{ShareSharer} ({ShareSharerMail}) vol començar a compartir recursos de col·laboració amb vós.\n"
"Visiteu la configuració de la federació i utilitzeu els detalls següents:\n"
"Token: {Token}\n"
"Testimoni (token): {Token}\n"
"Domini del proveïdor: {ProviderDomain}"
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
@@ -141,7 +140,7 @@ msgstr ""
"{ShareLink}\n"
"\n"
"Alternativament, podeu visitar la configuració de la vostra federació i utilitzar els següents detalls:\n"
"Token: {Token}\n"
"Testimoni (token): {Token}\n"
"Domini del proveïdor: {ProviderDomain}"
#. ShareCreated email template, resolves via {{ .MessageBody }}
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: English (United Kingdom) (https://app.transifex.com/owncloud-org/teams/6149/en_GB/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: English (United States) (https://app.transifex.com/owncloud-org/teams/6149/en_US/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n"
@@ -1,197 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
# Translators:
# Martin <github@diemattels.at>, 2026
# Cesare Capoferri, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-08 00:34+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Cesare Capoferri, 2026\n"
"Language-Team: Italian (https://app.transifex.com/owncloud-org/teams/6149/it/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: it\n"
"Plural-Forms: nplurals=3; plural=n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
#: pkg/email/templates.go:78
msgid "Click here to check it: {ShareLink}"
msgstr "Clicca qui per controllare: {ShareLink}"
#. ShareCreated email template, resolves via {{ .CallToAction }}
#. SharedSpace email template, resolves via {{ .CallToAction }}
#: pkg/email/templates.go:23 pkg/email/templates.go:63
msgid "Click here to view it: {ShareLink}"
msgstr "Clicca qui per visualizzarlo: {ShareLink}"
#. ShareCreated email template, resolves via {{ .Greeting }}
#: pkg/email/templates.go:19
msgid "Hello {ShareGrantee}"
msgstr "Ciao {ShareGrantee}"
#. ShareExpired email template, resolves via {{ .Greeting }}
#. ShareRemoved email template, resolves via {{ .Greeting }}
#: pkg/email/templates.go:32 pkg/email/templates.go:45
msgid "Hello {ShareGrantee},"
msgstr "Ciao {ShareGrantee},"
#. SharedSpace email template, resolves via {{ .Greeting }}
#. UnsharedSpace email template, resolves via {{ .Greeting }}
#. MembershipExpired email template, resolves via {{ .Greeting }}
#: pkg/email/templates.go:59 pkg/email/templates.go:72
#: pkg/email/templates.go:87
msgid "Hello {SpaceGrantee},"
msgstr "Ciao {SpaceGrantee},"
#. Grouped email template, resolves via {{ .Greeting }}
#: pkg/email/templates.go:131
msgid "Hi {DisplayName},"
msgstr "Ciao {DisplayName},"
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
#. }}
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
#. via {{ .Greeting }}
#: pkg/email/templates.go:100 pkg/email/templates.go:117
msgid "Hi,"
msgstr "Ciao,"
#. MembershipExpired email template, Subject field (resolves directly)
#: pkg/email/templates.go:85
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
msgstr "L'iscrizione a '{SpaceName}' è scaduta il {ExpiredAt}"
#. Grouped email template, Subject field (resolves directly)
#: pkg/email/templates.go:129
msgid "Report"
msgstr "Rapporto"
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
#. directly)
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
#. field (resolves directly)
#: pkg/email/templates.go:98 pkg/email/templates.go:115
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
msgstr "ScienceMesh: {InitiatorName} vuole collaborare con te"
#. ShareExpired email template, Subject field (resolves directly)
#: pkg/email/templates.go:30
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
msgstr "La condivisione a '{ShareFolder}' è scaduta il {ExpiredAt}"
#. MembershipExpired email template, resolves via {{ .MessageBody }}
#: pkg/email/templates.go:89
msgid ""
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
"\n"
"Even though this membership has expired you still might have access through other shares and/or space memberships"
msgstr ""
"La tua iscrizione allo spazio {SpaceName} è scaduta il {ExpiredAt}\n"
"\n"
"Anche se questa iscrizione è scaduta, potresti comunque avere accesso attraverso altre condivisioni e/o l'appartenenza ad altri spazi"
#. ShareExpired email template, resolves via {{ .MessageBody }}
#: pkg/email/templates.go:34
msgid ""
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
"\n"
"Even though this share has been revoked you still might have access through other shares and/or space memberships."
msgstr ""
"La tua condivisione su {ShareFolder} è scaduta il {ExpiredAt}\n"
"\n"
"Anche se questa condivisione è stata revocata, potresti comunque avere accesso attraverso altre condivisioni e/o l'appartenenza ad altri spazi."
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
#. via {{ .MessageBody }}
#: pkg/email/templates.go:119
msgid ""
"{ShareSharer} ({ShareSharerMail}) wants to start sharing collaboration resources with you.\n"
"Please visit your federation settings and use the following details:\n"
" Token: {Token}\n"
" ProviderDomain: {ProviderDomain}"
msgstr ""
"{ShareSharer} ({ShareSharerMail}) vuole iniziare a condividere risorse in collaborazione con te.\n"
"Visita le tue impostazioni di condivisione e usa i seguenti dettagli:\n"
" Token: {Token}\n"
" DominioFornitore: {ProviderDomain}"
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
#. .MessageBody }}
#: pkg/email/templates.go:102
msgid ""
"{ShareSharer} ({ShareSharerMail}) wants to start sharing collaboration resources with you.\n"
"To accept the invite, please visit the following URL:\n"
"{ShareLink}\n"
"\n"
"Alternatively, you can visit your federation settings and use the following details:\n"
" Token: {Token}\n"
" ProviderDomain: {ProviderDomain}"
msgstr ""
"{ShareSharer} ({ShareSharerMail}) vuole iniziare a condividere risorse in collaborazione con te.\n"
"Per accettare l'invito, visita il seguente URL:\n"
"{ShareLink}\n"
"\n"
"In alternativa, puoi visitare le tue impostazioni di condivisione e utilizzare i seguenti dettagli:\n"
" Token: {Token}\n"
" DominioFornitore: {ProviderDomain}"
#. ShareCreated email template, resolves via {{ .MessageBody }}
#: pkg/email/templates.go:21
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
msgstr "{ShareSharer} ha condiviso \"{ShareFolder}\" con te."
#. ShareRemoved email template, resolves via {{ .MessageBody }}
#: pkg/email/templates.go:47
msgid ""
"{ShareSharer} has unshared '{ShareFolder}' with you.\n"
"\n"
"Even though this share has been revoked you still might have access through other shares and/or space memberships."
msgstr ""
"{ShareSharer} ha revocato la condivisione di '{ShareFolder}' con te.\n"
"\n"
"Anche se questa condivisione è stata revocata, potresti comunque avere accesso attraverso altre condivisioni e/o l'appartenenza ad altri spezi."
#. ShareCreated email template, Subject field (resolves directly)
#: pkg/email/templates.go:17
msgid "{ShareSharer} shared '{ShareFolder}' with you"
msgstr "{ShareSharer} ha condiviso '{ShareFolder}' con te"
#. ShareRemoved email template, Subject field (resolves directly)
#: pkg/email/templates.go:43
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
msgstr "{ShareSharer} ha revocato la condivisione a '{ShareFolder}' con te"
#. SharedSpace email template, resolves via {{ .MessageBody }}
#: pkg/email/templates.go:61
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
msgstr "{SpaceSharer} ti ha invitato a unirti a \"{SpaceName}\"."
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
#: pkg/email/templates.go:74
msgid ""
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
"\n"
"You might still have access through your other groups or direct membership."
msgstr ""
"{SpaceSharer} ti ha rimosso da \"{SpaceName}\".\n"
"\n"
"Potresti ancora avere accesso attraverso gli altri tuoi gruppi o l'iscrizione diretta."
#. SharedSpace email template, Subject field (resolves directly)
#: pkg/email/templates.go:57
msgid "{SpaceSharer} invited you to join {SpaceName}"
msgstr "{SpaceSharer} ti ha invitato a unirti a {SpaceName}"
#. UnsharedSpace email template, Subject field (resolves directly)
#: pkg/email/templates.go:70
msgid "{SpaceSharer} removed you from {SpaceName}"
msgstr "{SpaceSharer} ti ha rimosso da {SpaceName}"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Portuguese (https://app.transifex.com/owncloud-org/teams/6149/pt/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/owncloud-org/teams/6149/pt_BR/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Russian (https://app.transifex.com/owncloud-org/teams/6149/ru/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Albanian (https://app.transifex.com/owncloud-org/teams/6149/sq/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Uyghur (https://app.transifex.com/owncloud-org/teams/6149/ug/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
+1 -1
View File
@@ -355,7 +355,7 @@ func loadMiddlewares(logger log.Logger, cfg *config.Config,
middleware.UserCS3Claim(cfg.UserCS3Claim),
middleware.AutoprovisionAccounts(cfg.AutoprovisionAccounts),
middleware.EventsPublisher(publisher),
middleware.MultiInstance(cfg.MultiInstance.Enabled, cfg.MultiInstance.InstanceID, cfg.MultiInstance.MasterID, cfg.MultiInstance.MemberClaim, cfg.MultiInstance.GuestClaim, cfg.MultiInstance.GuestRole),
middleware.MultiInstance(cfg.MultiInstance.Enabled, cfg.MultiInstance.InstanceID, cfg.MultiInstance.MemberClaim, cfg.MultiInstance.GuestClaim, cfg.MultiInstance.GuestRole),
),
middleware.MultiFactor(cfg.MultiFactorAuthentication, middleware.Logger(logger)),
middleware.SelectorCookie(
-1
View File
@@ -251,7 +251,6 @@ type ClaimSpaceManagement struct {
type MultiInstanceConfig struct {
Enabled bool `yaml:"enabled" env:"OCIS_MULTI_INSTANCE_ENABLED" desc:"Enable multiple instances of Infinite Scale." introductionVersion:"8.0.0"`
InstanceID string `yaml:"instanceid" env:"OCIS_MULTI_INSTANCE_INSTANCEID" desc:"The unique id of this instance" introductionVersion:"8.0.0"`
MasterID string `yaml:"master_id" env:"OCIS_MULTI_INSTANCE_MASTER_ID" desc:"The master ID that grants access to all instances. Users with this ID in their memberOf or guestOf claims can access any instance. Leave empty to disable." introductionVersion:"NEXT"`
MemberClaim string `yaml:"member_claim" env:"OCIS_MULTI_INSTANCE_MEMBER_CLAIM" desc:"The claim name for the 'memberOf' property" introductionVersion:"8.0.0"`
GuestClaim string `yaml:"guest_claim" env:"OCIS_MULTI_INSTANCE_GUEST_CLAIM" desc:"The claim name for the 'guestOf' property" introductionVersion:"8.0.0"`
GuestRole string `yaml:"guest_role" env:"OCIS_MULTI_INSTANCE_GUEST_ROLE" desc:"The role that should be assigned to a guest user" introductionVersion:"8.0.0"`
@@ -43,7 +43,6 @@ func AccountResolver(optionSetters ...Option) func(next http.Handler) http.Handl
eventsPublisher: options.EventsPublisher,
multiInstance: options.MultiInstanceEnabled,
instanceID: options.InstanceID,
masterID: options.MasterID,
memberClaim: options.MemberClaim,
guestClaim: options.GuestClaim,
guestRoleName: options.GuestRoleName,
@@ -71,7 +70,6 @@ type accountResolver struct {
guestClaim string
guestRoleName string
instanceID string
masterID string
}
// TODO do not use the context to store values: https://medium.com/@cep21/how-to-correctly-use-context-context-in-go-1-7-8f2c0fafdf39
@@ -223,17 +221,6 @@ func (m accountResolver) resolveUserType(claims map[string]interface{}) (isMembe
// single instance behaviour - any user is considered a member
return true, false
}
// Check for master-id first (if configured)
if m.masterID != "" {
for _, miid := range readClaim(m.memberClaim, claims) {
if miid != "" && miid == m.masterID {
return true, false
}
}
}
// Check for instance-specific ID
for _, miid := range readClaim(m.memberClaim, claims) {
if miid != "" && miid == m.instanceID {
return true, false
@@ -295,180 +295,3 @@ func mockRequest(claims map[string]interface{}) (*http.Request, *httptest.Respon
type mockHandler struct{}
func (m mockHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request) {}
func TestResolveUserType(t *testing.T) {
const (
instanceID1 = "ec730a6c-1b63-4b45-b83b-9e2311afdf85"
instanceID2 = "8d24cb5f-6ee6-4b98-86df-c4c268dddb46"
masterID = "11111111-1111-1111-1111-111111111111"
)
testCases := []struct {
name string
multiInstance bool
instanceID string
masterID string
memberClaim string
guestClaim string
claims map[string]interface{}
expectMember bool
expectGuest bool
description string
}{
{
name: "single instance mode - always member",
multiInstance: false,
instanceID: instanceID1,
masterID: "",
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{},
expectMember: true,
expectGuest: false,
description: "In single instance mode, any user should be considered a member",
},
{
name: "multi-instance: user has matching instance ID in memberClaim",
multiInstance: true,
instanceID: instanceID1,
masterID: "",
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudMemberOf": instanceID1,
},
expectMember: true,
expectGuest: false,
description: "User with matching instance ID should be granted member access",
},
{
name: "multi-instance: user has matching instance ID in guestClaim",
multiInstance: true,
instanceID: instanceID1,
masterID: "",
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudGuestOf": instanceID1,
},
expectMember: false,
expectGuest: true,
description: "User with matching instance ID in guestClaim should be granted guest access",
},
{
name: "multi-instance: user has no matching instance ID",
multiInstance: true,
instanceID: instanceID1,
masterID: "",
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudMemberOf": instanceID2,
},
expectMember: false,
expectGuest: false,
description: "User without matching instance ID should be denied access",
},
{
name: "multi-instance with master-id: user has master-id in memberClaim",
multiInstance: true,
instanceID: instanceID1,
masterID: masterID,
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudMemberOf": masterID,
},
expectMember: true,
expectGuest: false,
description: "User with master-id in memberClaim should be granted member access to any instance",
},
{
name: "multi-instance with master-id disabled: user has master-id value but feature disabled",
multiInstance: true,
instanceID: instanceID1,
masterID: "", // Empty = disabled
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudMemberOf": masterID,
},
expectMember: false,
expectGuest: false,
description: "When master-id is empty/disabled, having the master-id value should not grant access",
},
{
name: "multi-instance with master-id: user has both master-id and instance-id",
multiInstance: true,
instanceID: instanceID1,
masterID: masterID,
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudMemberOf": []string{masterID, instanceID1},
},
expectMember: true,
expectGuest: false,
description: "User with both master-id and instance-id should be granted access (master-id matches first)",
},
{
name: "multi-instance with master-id: array with master-id in middle",
multiInstance: true,
instanceID: instanceID1,
masterID: masterID,
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudMemberOf": []string{instanceID2, masterID, "other-id"},
},
expectMember: true,
expectGuest: false,
description: "Master-id should be found when it's in an array with other values",
},
{
name: "multi-instance with master-id: user on wrong instance but has master-id",
multiInstance: true,
instanceID: instanceID2, // Different instance
masterID: masterID,
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudMemberOf": masterID,
},
expectMember: true,
expectGuest: false,
description: "Master-id should grant access to ANY instance, regardless of which instance is checking",
},
{
name: "multi-instance: empty claim values",
multiInstance: true,
instanceID: instanceID1,
masterID: masterID,
memberClaim: "owncloudMemberOf",
guestClaim: "owncloudGuestOf",
claims: map[string]interface{}{
"owncloudMemberOf": "",
},
expectMember: false,
expectGuest: false,
description: "Empty string values should not grant access",
},
}
for _, tc := range testCases {
t.Run(tc.name, func(t *testing.T) {
resolver := accountResolver{
multiInstance: tc.multiInstance,
instanceID: tc.instanceID,
masterID: tc.masterID,
memberClaim: tc.memberClaim,
guestClaim: tc.guestClaim,
}
isMember, isGuest := resolver.resolveUserType(tc.claims)
assert.Equal(t, tc.expectMember, isMember, "isMember mismatch: %s", tc.description)
assert.Equal(t, tc.expectGuest, isGuest, "isGuest mismatch: %s", tc.description)
})
}
}
+1 -3
View File
@@ -80,7 +80,6 @@ type Options struct {
// Multi-Instance Options
MultiInstanceEnabled bool
InstanceID string
MasterID string
MemberClaim string
GuestClaim string
GuestRoleName string
@@ -274,11 +273,10 @@ func ServiceAccount(id string, secret string) Option {
}
// MultiInstance sets muli-instance options
func MultiInstance(enabled bool, iid string, masterID string, memberClaim, guestClaim string, guestRole string) Option {
func MultiInstance(enabled bool, iid string, memberClaim, guestClaim string, guestRole string) Option {
return func(o *Options) {
o.MultiInstanceEnabled = enabled
o.InstanceID = iid
o.MasterID = masterID
o.MemberClaim = memberClaim
o.GuestClaim = guestClaim
o.GuestRoleName = guestRole
@@ -5,16 +5,15 @@
#
# Translators:
# Martin <github@diemattels.at>, 2026
# Ivan Fustero, 2026
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-08 00:34+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Ivan Fustero, 2026\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Catalan (https://app.transifex.com/owncloud-org/teams/6149/ca/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -73,8 +72,8 @@ msgid ""
"Notify when a file I uploaded was rejected because of a virus infection or "
"policy violation"
msgstr ""
"Notifica'm quan un fitxer que he carregat ha estat rebutjat per una infecció"
" per virus o una violació de la política"
"Notifica'm quan un fitxer que he pujat ha estat rebutjat per una infecció "
"per virus o una violació de la política"
#. description of the notification option 'Share Removed'
#: pkg/store/defaults/templates.go:14
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: English (United Kingdom) (https://app.transifex.com/owncloud-org/teams/6149/en_GB/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: English (United States) (https://app.transifex.com/owncloud-org/teams/6149/en_US/)\n"
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2026-03-05 00:04+0000\n"
"POT-Creation-Date: 2026-01-23 00:05+0000\n"
"PO-Revision-Date: 2026-01-02 10:10+0000\n"
"Last-Translator: Martin <github@diemattels.at>, 2026\n"
"Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n"
Loaded 100 of 143 files, more files were not shown because too many files have changed in this diff. Show more