Compare commits
127
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
88cbcce100 | ||
|
|
453debefe3 | ||
|
|
b7892923bb | ||
|
|
c0366670a2 | ||
|
|
3fdbb6e443 | ||
|
|
515c2938df | ||
|
|
f6b569767e | ||
|
|
b8e8d15439 | ||
|
|
d91970357d | ||
|
|
fee60fa356 | ||
|
|
51369fde10 | ||
|
|
7e50f1bf23 | ||
|
|
3a53b9cfec | ||
|
|
2bbc4d6177 | ||
|
|
f4dcca159e | ||
|
|
98f5df181d | ||
|
|
2e9a930c57 | ||
|
|
2d18f6bab4 | ||
|
|
a8137a4bef | ||
|
|
3d92096d14 | ||
|
|
99458292d4 | ||
|
|
2b3925fea8 | ||
|
|
d7156bce94 | ||
|
|
4eb397b5e4 | ||
|
|
51237058fb | ||
|
|
98a03f05e6 | ||
|
|
bf10a05c33 | ||
|
|
e65eade963 | ||
|
|
49f2c4ff36 | ||
|
|
05bbf75d0c | ||
|
|
0fc5c174bc | ||
|
|
7f458f7047 | ||
|
|
d0ddc61af8 | ||
|
|
508db66e0a | ||
|
|
671c229d98 | ||
|
|
5bd93206a1 | ||
|
|
ea0e098c46 | ||
|
|
e3876dba13 | ||
|
|
f041b6a4a2 | ||
|
|
b6482b4090 | ||
|
|
7c206f3b45 | ||
|
|
b783444017 | ||
|
|
645be12b32 | ||
|
|
ba2706cdf1 | ||
|
|
665072d86d | ||
|
|
b1305ffdc0 | ||
|
|
6753b88d4a | ||
|
|
e492662e77 | ||
|
|
40f84a7ffa | ||
|
|
ecf1a1b230 | ||
|
|
0bfa82806f | ||
|
|
326efe3be0 | ||
|
|
cde942cbd5 | ||
|
|
1cc23a9f47 | ||
|
|
484e576ce4 | ||
|
|
fd9de3ec8e | ||
|
|
e739797cde | ||
|
|
118d29dc7a | ||
|
|
64e3381fab | ||
|
|
3fc5ae96b0 | ||
|
|
c8b542e6d0 | ||
|
|
7185fe2d39 | ||
|
|
e02171d8be | ||
|
|
fdde88b46f | ||
|
|
c8bb438534 | ||
|
|
5cc79d962f | ||
|
|
87747e66b3 | ||
|
|
8dd1789821 | ||
|
|
ba924e757d | ||
|
|
d5e6d284b5 | ||
|
|
f6f9644485 | ||
|
|
3e7c500027 | ||
|
|
77becb5cf2 | ||
|
|
9c24f9fe00 | ||
|
|
57d70979c6 | ||
|
|
0632d3ee63 | ||
|
|
bc443e7894 | ||
|
|
39ba505b67 | ||
|
|
483e564602 | ||
|
|
5a0d460e53 | ||
|
|
5f448e1b8a | ||
|
|
090ab9f577 | ||
|
|
38e244f5ea | ||
|
|
3e553383ef | ||
|
|
7c861f3742 | ||
|
|
7d58877888 | ||
|
|
c9c42e990e | ||
|
|
0c84fe8b36 | ||
|
|
a34b0b20f4 | ||
|
|
2af539847a | ||
|
|
95913469ad | ||
|
|
63a75035b3 | ||
|
|
44b485d9cc | ||
|
|
fcb98f4df4 | ||
|
|
b4586aa650 | ||
|
|
44c2a4154a | ||
|
|
5744b6fdad | ||
|
|
46dd3979d0 | ||
|
|
7ba20d543c | ||
|
|
872d858e73 | ||
|
|
84d7632c43 | ||
|
|
690bbcf2e3 | ||
|
|
556f78c73a | ||
|
|
8800a08210 | ||
|
|
2279b8fb8c | ||
|
|
f035740b4a | ||
|
|
ce1cf9c6d2 | ||
|
|
7bf3f725be | ||
|
|
b4cf38fa1b | ||
|
|
4aab3a250d | ||
|
|
9e1fe81069 | ||
|
|
c58a26e4ed | ||
|
|
9822e84863 | ||
|
|
42140764d3 | ||
|
|
ef2744a203 | ||
|
|
5a5f25aaa1 | ||
|
|
7940557ff6 | ||
|
|
1d008a8e86 | ||
|
|
e0638d24f8 | ||
|
|
6054b7919f | ||
|
|
f419e538b6 | ||
|
|
efe329e858 | ||
|
|
2d30d12eec | ||
|
|
e1d80664f1 | ||
|
|
6ac2eb2cb9 | ||
|
|
5854df4961 | ||
|
|
ceb58b7e19 |
No files matched your search
+1
-1
@@ -1,3 +1,3 @@
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=8222156ec19d5a201ba3eb9293c1cd4516329400
|
||||
WEB_COMMITID=add80176512a06c3c9a6c96aa955f00f019c85c3
|
||||
WEB_BRANCH=stable-11.0
|
||||
+20
-1
@@ -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.0"]
|
||||
PRODUCTION_RELEASE_TAGS = ["5.0", "7"]
|
||||
|
||||
# images
|
||||
ALPINE_GIT = "alpine/git:latest"
|
||||
@@ -88,9 +88,28 @@ config = {
|
||||
"apiDepthInfinity",
|
||||
"apiLocks",
|
||||
"apiActivities",
|
||||
],
|
||||
"skip": False,
|
||||
},
|
||||
"settings": {
|
||||
"suites": [
|
||||
"apiSettings",
|
||||
],
|
||||
"skip": False,
|
||||
"withRemotePhp": [True],
|
||||
"emailNeeded": True,
|
||||
"extraEnvironment": {
|
||||
"EMAIL_HOST": "email",
|
||||
"EMAIL_PORT": "9000",
|
||||
},
|
||||
"extraServerEnvironment": {
|
||||
"OCIS_ADD_RUN_SERVICES": "notifications",
|
||||
"NOTIFICATIONS_SMTP_HOST": "email",
|
||||
"NOTIFICATIONS_SMTP_PORT": "2500",
|
||||
"NOTIFICATIONS_SMTP_INSECURE": "true",
|
||||
"NOTIFICATIONS_SMTP_SENDER": "ownCloud <noreply@example.com>",
|
||||
"NOTIFICATIONS_DEBUG_ADDR": "0.0.0.0:9174",
|
||||
},
|
||||
},
|
||||
"graph": {
|
||||
"suites": [
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
* [ ] DEV/QA: Check new strings and align with clients
|
||||
* [ ] DEV/DOCS: Create list of pending docs tasks
|
||||
* [ ] DEV: Create branch `release-x.x.x-rc.x` -> CODEFREEZE
|
||||
* [ ] DEV: specify if it is a production release in [.drone.star](https://github.com/owncloud/ocis/blob/b4cf38fa1ba180c58519026dfe762b7c45695466/.drone.star#L8) (if needed)
|
||||
* [ ] DEV: bump ocis version in necessary files
|
||||
* [ ] DEV: `changelog/CHANGELOG.tmpl`
|
||||
* [ ] DEV: `ocis-pkg/version/version.go`
|
||||
@@ -47,8 +48,8 @@
|
||||
* [ ] QA: against linux (use auto tests)
|
||||
* [ ] QA: android (define version) https://github.com/owncloud/android/releases
|
||||
* [ ] QA: ios (define version)
|
||||
* [ ] QA: [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 Hello extension
|
||||
* [ ] 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
|
||||
* [ ] QA: [Smoke test](https://github.com/owncloud/QA/blob/master/Server/Test_Plan_OCIS_Smoke_Ldap_Test.md) ldap
|
||||
* [ ] QA: Collecting errors found
|
||||
|
||||
|
||||
+153
-12
@@ -1,6 +1,8 @@
|
||||
# Table of Contents
|
||||
|
||||
* [Changelog for unreleased](#changelog-for-unreleased-unreleased)
|
||||
* [Changelog for 7.1.0-rc.2](#changelog-for-710-rc2-2025-01-17)
|
||||
* [Changelog for 7.1.0-rc.1](#changelog-for-710-rc1-2025-01-10)
|
||||
* [Changelog for 7.0.0](#changelog-for-700-2024-12-17)
|
||||
* [Changelog for 5.0.9](#changelog-for-509-2024-11-14)
|
||||
* [Changelog for 6.6.1](#changelog-for-661-2024-10-24)
|
||||
@@ -57,29 +59,169 @@
|
||||
|
||||
The following sections list the changes for unreleased.
|
||||
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v7.0.0...master
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v7.1.0-rc.2...master
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Share creation date is missing in invite response: [#10780](https://github.com/owncloud/ocis/pull/10780)
|
||||
* Bugfix - Fix the ocm gateway connection pool: [#10916](https://github.com/owncloud/ocis/pull/10916)
|
||||
* Bugfix - Add fallback for folder names: [#10932](https://github.com/owncloud/ocis/pull/10932)
|
||||
* Enhancement - Add email notification for share removed event: [#10915](https://github.com/owncloud/ocis/pull/10915)
|
||||
* Enhancement - Update Web to v1.11.1: [#10918](https://github.com/owncloud/ocis/pull/10918)
|
||||
* Enhancement - Update Web to v1.11.2: [#10930](https://github.com/owncloud/ocis/pull/10930)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix the ocm gateway connection pool: [#10916](https://github.com/owncloud/ocis/pull/10916)
|
||||
|
||||
Fix the ocm gateway connection pool. Fix ocis dependency in the reva go.mod
|
||||
file. Bump the ocis version accordingly to the major version.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10846
|
||||
https://github.com/owncloud/ocis/issues/10878
|
||||
https://github.com/owncloud/ocis/pull/10916
|
||||
|
||||
* Bugfix - Add fallback for folder names: [#10932](https://github.com/owncloud/ocis/pull/10932)
|
||||
|
||||
Add translated `shared-with-me` fallback for folder names in the activitylog to
|
||||
avoid `{folder}` in the output.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10906
|
||||
https://github.com/owncloud/ocis/pull/10932
|
||||
|
||||
* Enhancement - Add email notification for share removed event: [#10915](https://github.com/owncloud/ocis/pull/10915)
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10904
|
||||
https://github.com/owncloud/ocis/pull/10915
|
||||
|
||||
* Enhancement - Update Web to v1.11.1: [#10918](https://github.com/owncloud/ocis/pull/10918)
|
||||
|
||||
- Bugfix [owncloud/web#12112](https://github.com/owncloud/web/pull/12112):
|
||||
Optionally access preview app route query: #12112 - Bugfix
|
||||
[owncloud/web#12118](https://github.com/owncloud/web/pull/12118): Change
|
||||
federated share icon: #12118 - Bugfix
|
||||
[owncloud/web#12118](https://github.com/owncloud/web/pull/12118): Improve
|
||||
federated share icon contrast: #12118 - Bugfix
|
||||
[owncloud/web#12119](https://github.com/owncloud/web/pull/12119): Show external
|
||||
share indicator: #12119
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10918
|
||||
https://github.com/owncloud/web/releases/tag/v11.1.1
|
||||
|
||||
* Enhancement - Update Web to v1.11.2: [#10930](https://github.com/owncloud/ocis/pull/10930)
|
||||
|
||||
- Bugfix [owncloud/ocis#10891](https://github.com/owncloud/ocis/issues/10891):
|
||||
Rename ScienceMesh: #10891
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10930
|
||||
https://github.com/owncloud/web/releases/tag/v11.1.2
|
||||
|
||||
# Changelog for [7.1.0-rc.2] (2025-01-17)
|
||||
|
||||
The following sections list the changes for 7.1.0-rc.2.
|
||||
|
||||
[7.1.0-rc.2]: https://github.com/owncloud/ocis/compare/v7.1.0-rc.1...v7.1.0-rc.2
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Fix the mail notifications for the user light: [#10865](https://github.com/owncloud/ocis/pull/10865)
|
||||
* Bugfix - Fix filtering of PostprocessingStepFinished events: [#10868](https://github.com/owncloud/ocis/pull/10868)
|
||||
* Bugfix - Prevent empty email body for grouped email notifications: [#10869](https://github.com/owncloud/ocis/pull/10869)
|
||||
* Bugfix - Consistently name roles: [#10871](https://github.com/owncloud/ocis/pull/10871)
|
||||
* Bugfix - Fix grouped email notifications store key: [#10873](https://github.com/owncloud/ocis/pull/10873)
|
||||
* Bugfix - Fix missing newline in grouped email: [#10883](https://github.com/owncloud/ocis/pull/10883)
|
||||
* Bugfix - Fix email templates white spaces & new lines: [#10884](https://github.com/owncloud/ocis/pull/10884)
|
||||
* Enhancement - Add tests for grouped emails: [#10885](https://github.com/owncloud/ocis/pull/10885)
|
||||
* Enhancement - Use maintained forks: [#10886](https://github.com/owncloud/ocis/pull/10886)
|
||||
* Enhancement - Bump Reva: [#10887](https://github.com/owncloud/ocis/pull/10887)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix the mail notifications for the user light: [#10865](https://github.com/owncloud/ocis/pull/10865)
|
||||
|
||||
Fix the default bundle-list for mail notification settings for the user light.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10864
|
||||
https://github.com/owncloud/ocis/pull/10865
|
||||
|
||||
* Bugfix - Fix filtering of PostprocessingStepFinished events: [#10868](https://github.com/owncloud/ocis/pull/10868)
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10867
|
||||
https://github.com/owncloud/ocis/pull/10868
|
||||
|
||||
* Bugfix - Prevent empty email body for grouped email notifications: [#10869](https://github.com/owncloud/ocis/pull/10869)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10869
|
||||
|
||||
* Bugfix - Consistently name roles: [#10871](https://github.com/owncloud/ocis/pull/10871)
|
||||
|
||||
BundleUUIDRoleGuest has been renamed to BundleUUIDRoleUserLight for consistency
|
||||
reasons
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10871
|
||||
|
||||
* Bugfix - Fix grouped email notifications store key: [#10873](https://github.com/owncloud/ocis/pull/10873)
|
||||
|
||||
Interval and user id is now separated by `_` (key schema:
|
||||
`${INTERVAL}_${USER_ID}`).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10873
|
||||
|
||||
* Bugfix - Fix missing newline in grouped email: [#10883](https://github.com/owncloud/ocis/pull/10883)
|
||||
|
||||
`\n` is now replaced by `<br>` in the HTML email body
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10883
|
||||
|
||||
* Bugfix - Fix email templates white spaces & new lines: [#10884](https://github.com/owncloud/ocis/pull/10884)
|
||||
|
||||
Email templates now contain no unwanted white spaces & new lines if
|
||||
.CallToAction is nil
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10884
|
||||
|
||||
* Enhancement - Add tests for grouped emails: [#10885](https://github.com/owncloud/ocis/pull/10885)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10885
|
||||
|
||||
* Enhancement - Use maintained forks: [#10886](https://github.com/owncloud/ocis/pull/10886)
|
||||
|
||||
Switches away from unmainatained forks.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10886
|
||||
|
||||
* Enhancement - Bump Reva: [#10887](https://github.com/owncloud/ocis/pull/10887)
|
||||
|
||||
Bumps the reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10887
|
||||
|
||||
# Changelog for [7.1.0-rc.1] (2025-01-10)
|
||||
|
||||
The following sections list the changes for 7.1.0-rc.1.
|
||||
|
||||
[7.1.0-rc.1]: https://github.com/owncloud/ocis/compare/v7.0.0...v7.1.0-rc.1
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Share creation date is missing in invite response: [#10781](https://github.com/owncloud/ocis/pull/10781)
|
||||
* Bugfix - Bump some golang dependencies: [#10795](https://github.com/owncloud/ocis/pull/10795)
|
||||
* Bugfix - Allow to accepted invite after it was once deleted: [#10834](https://github.com/owncloud/ocis/pull/10834)
|
||||
* Enhancement - Part I: The user settings are extended by notifications preferences: [#10706](https://github.com/owncloud/ocis/pull/10706)
|
||||
* Enhancement - Part II: Filtering of in-app notifications: [#10779](https://github.com/owncloud/ocis/pull/10779)
|
||||
* Enhancement - Part III: Filtering of mail notifications: [#10792](https://github.com/owncloud/ocis/pull/10792)
|
||||
* Enhancement - Translate Notification Settings: [#10812](https://github.com/owncloud/ocis/pull/10812)
|
||||
* Enhancement - Bump Reva: [#10830](https://github.com/owncloud/ocis/pull/10830)
|
||||
* Enhancement - Part IV: Grouping of mail notifications: [#10838](https://github.com/owncloud/ocis/pull/10838)
|
||||
* Enhancement - Bump Reva: [#10842](https://github.com/owncloud/ocis/pull/10842)
|
||||
* Enhancement - Update web to v11.1.0: [#10853](https://github.com/owncloud/ocis/pull/10853)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Share creation date is missing in invite response: [#10780](https://github.com/owncloud/ocis/pull/10780)
|
||||
* Bugfix - Share creation date is missing in invite response: [#10781](https://github.com/owncloud/ocis/pull/10781)
|
||||
|
||||
The graph drives invite response now includes the `createdDateTime` field.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10739
|
||||
https://github.com/owncloud/ocis/pull/10780
|
||||
https://github.com/owncloud/ocis/pull/10781
|
||||
|
||||
* Bugfix - Bump some golang dependencies: [#10795](https://github.com/owncloud/ocis/pull/10795)
|
||||
|
||||
@@ -124,13 +266,6 @@ The following sections list the changes for unreleased.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10812
|
||||
|
||||
* Enhancement - Bump Reva: [#10830](https://github.com/owncloud/ocis/pull/10830)
|
||||
|
||||
Bumps the reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10830
|
||||
https://github.com/owncloud/ocis/pull/10842
|
||||
|
||||
* Enhancement - Part IV: Grouping of mail notifications: [#10838](https://github.com/owncloud/ocis/pull/10838)
|
||||
|
||||
Part IV: Mail notifications can now be grouped on a daily or weekly basis
|
||||
@@ -138,6 +273,12 @@ The following sections list the changes for unreleased.
|
||||
https://github.com/owncloud/ocis/issues/10793
|
||||
https://github.com/owncloud/ocis/pull/10838
|
||||
|
||||
* Enhancement - Bump Reva: [#10842](https://github.com/owncloud/ocis/pull/10842)
|
||||
|
||||
Bumps the reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10842
|
||||
|
||||
* Enhancement - Update web to v11.1.0: [#10853](https://github.com/owncloud/ocis/pull/10853)
|
||||
|
||||
- Bugfix [owncloud/web#12040](https://github.com/owncloud/web/pull/12040):
|
||||
|
||||
@@ -2,5 +2,5 @@ Bugfix: Share creation date is missing in invite response
|
||||
|
||||
The graph drives invite response now includes the `createdDateTime` field.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10780
|
||||
https://github.com/owncloud/ocis/pull/10781
|
||||
https://github.com/owncloud/ocis/issues/10739
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Bump Reva
|
||||
|
||||
Bumps the reva version
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10887
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Consistently name roles
|
||||
|
||||
BundleUUIDRoleGuest has been renamed to BundleUUIDRoleUserLight for consistency reasons
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10871
|
||||
@@ -0,0 +1,3 @@
|
||||
Enhancement: Add tests for grouped emails
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10885
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix email templates white spaces & new lines
|
||||
|
||||
Email templates now contain no unwanted white spaces & new lines if .CallToAction is nil
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10884
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix missing newline in grouped email
|
||||
|
||||
`\n` is now replaced by `<br>` in the HTML email body
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10883
|
||||
@@ -0,0 +1,3 @@
|
||||
Bugfix: Prevent empty email body for grouped email notifications
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10869
|
||||
@@ -0,0 +1,5 @@
|
||||
Bugfix: Fix grouped email notifications store key
|
||||
|
||||
Interval and user id is now separated by `_` (key schema: `${INTERVAL}_${USER_ID}`).
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10873
|
||||
@@ -0,0 +1,4 @@
|
||||
Bugfix: Fix filtering of PostprocessingStepFinished events
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10868
|
||||
https://github.com/owncloud/ocis/issues/10867
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Fix the mail notifications for the user light
|
||||
|
||||
Fix the default bundle-list for mail notification settings for the user light.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10865
|
||||
https://github.com/owncloud/ocis/issues/10864
|
||||
@@ -0,0 +1,5 @@
|
||||
Enhancement: Use maintained forks
|
||||
|
||||
Switches away from unmainatained forks.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10886
|
||||
@@ -0,0 +1,4 @@
|
||||
Enhancement: Add email notification for share removed event
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10915
|
||||
https://github.com/owncloud/ocis/issues/10904
|
||||
@@ -0,0 +1,9 @@
|
||||
Enhancement: Update Web to v1.11.1
|
||||
|
||||
- Bugfix [owncloud/web#12112](https://github.com/owncloud/web/pull/12112): Optionally access preview app route query: #12112
|
||||
- Bugfix [owncloud/web#12118](https://github.com/owncloud/web/pull/12118): Change federated share icon: #12118
|
||||
- Bugfix [owncloud/web#12118](https://github.com/owncloud/web/pull/12118): Improve federated share icon contrast: #12118
|
||||
- Bugfix [owncloud/web#12119](https://github.com/owncloud/web/pull/12119): Show external share indicator: #12119
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10918
|
||||
https://github.com/owncloud/web/releases/tag/v11.1.1
|
||||
@@ -0,0 +1,6 @@
|
||||
Enhancement: Update Web to v1.11.2
|
||||
|
||||
- Bugfix [owncloud/ocis#10891](https://github.com/owncloud/ocis/issues/10891): Rename ScienceMesh: #10891
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10930
|
||||
https://github.com/owncloud/web/releases/tag/v11.1.2
|
||||
@@ -0,0 +1,6 @@
|
||||
Bugfix: Add fallback for folder names
|
||||
|
||||
Add translated `shared-with-me` fallback for folder names in the activitylog to avoid `{folder}` in the output.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10932
|
||||
https://github.com/owncloud/ocis/issues/10906
|
||||
@@ -0,0 +1,8 @@
|
||||
Bugfix: Fix the ocm gateway connection pool
|
||||
|
||||
Fix the ocm gateway connection pool.
|
||||
Fix ocis dependency in the reva go.mod file. Bump the ocis version accordingly to the major version.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10916
|
||||
https://github.com/owncloud/ocis/issues/10846
|
||||
https://github.com/owncloud/ocis/issues/10878
|
||||
@@ -53,7 +53,7 @@ services:
|
||||
restart: always
|
||||
|
||||
collabora:
|
||||
image: collabora/code:24.04.11.1.1
|
||||
image: collabora/code:24.04.11.3.1
|
||||
# release notes: https://www.collaboraonline.com/release-notes/
|
||||
networks:
|
||||
ocis-net:
|
||||
|
||||
@@ -17,7 +17,7 @@ require (
|
||||
github.com/cenkalti/backoff v2.2.1+incompatible
|
||||
github.com/coreos/go-oidc/v3 v3.11.0
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1
|
||||
github.com/cs3org/reva/v2 v2.27.1-0.20250109115603-fe9caac22593
|
||||
github.com/cs3org/reva/v2 v2.27.3
|
||||
github.com/davidbyttow/govips/v2 v2.15.0
|
||||
github.com/dhowden/tag v0.0.0-20240417053706-3d75831295e8
|
||||
github.com/dutchcoders/go-clamd v0.0.0-20170520113014-b970184f4d9e
|
||||
@@ -342,13 +342,13 @@ require (
|
||||
|
||||
replace github.com/studio-b12/gowebdav => github.com/kobergj/gowebdav v0.0.0-20250102091030-aa65266db202
|
||||
|
||||
replace github.com/egirna/icap-client => github.com/fschade/icap-client v0.0.0-20240802074440-aade4a234387
|
||||
replace github.com/egirna/icap-client => github.com/kobergj/icap-client v0.0.0-20250116172800-8eaa5022532b
|
||||
|
||||
replace github.com/unrolled/secure => github.com/DeepDiver1975/secure v0.0.0-20240611112133-abc838fb797c
|
||||
|
||||
replace github.com/go-micro/plugins/v4/store/nats-js-kv => github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20240807130109-f62bb67e8c90
|
||||
|
||||
replace go-micro.dev/v4 => github.com/butonic/go-micro/v4 v4.11.1-0.20241115112658-b5d4de5ed9b3
|
||||
replace go-micro.dev/v4 => github.com/kobergj/go-micro/v4 v4.0.0-20250117084952-d07d30666b7c
|
||||
|
||||
// exclude the v2 line of go-sqlite3 which was released accidentally and prevents pulling in newer versions of go-sqlite3
|
||||
// see https://github.com/mattn/go-sqlite3/issues/965 for more details
|
||||
|
||||
@@ -192,8 +192,6 @@ github.com/bombsimon/logrusr/v3 v3.1.0/go.mod h1:PksPPgSFEL2I52pla2glgCyyd2OqOHA
|
||||
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc/go.mod h1:paBWMcWSl3LHKBqUq+rly7CNSldXjb2rDl3JlRe0mD8=
|
||||
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
|
||||
github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
|
||||
github.com/butonic/go-micro/v4 v4.11.1-0.20241115112658-b5d4de5ed9b3 h1:h8Z0hBv5tg/uZMKu8V47+DKWYVQg0lYP8lXDQq7uRpE=
|
||||
github.com/butonic/go-micro/v4 v4.11.1-0.20241115112658-b5d4de5ed9b3/go.mod h1:eE/tD53n3KbVrzrWxKLxdkGw45Fg1qaNLWjpJMvIUF4=
|
||||
github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=
|
||||
github.com/bytecodealliance/wasmtime-go/v3 v3.0.2 h1:3uZCA/BLTIu+DqCfguByNMJa2HVHpXvjfy0Dy7g6fuA=
|
||||
github.com/bytecodealliance/wasmtime-go/v3 v3.0.2/go.mod h1:RnUjnIXxEJcL6BgCvNyzCCRzZcxCgsZCi+RNlvYor5Q=
|
||||
@@ -253,8 +251,8 @@ github.com/crewjam/saml v0.4.14 h1:g9FBNx62osKusnFzs3QTN5L9CVA/Egfgm+stJShzw/c=
|
||||
github.com/crewjam/saml v0.4.14/go.mod h1:UVSZCf18jJkk6GpWNVqcyQJMD5HsRugBPf4I1nl2mME=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1 h1:RU6LT6mkD16xZs011+8foU7T3LrPvTTSWeTQ9OgfhkA=
|
||||
github.com/cs3org/go-cs3apis v0.0.0-20241105092511-3ad35d174fc1/go.mod h1:DedpcqXl193qF/08Y04IO0PpxyyMu8+GrkD6kWK2MEQ=
|
||||
github.com/cs3org/reva/v2 v2.27.1-0.20250109115603-fe9caac22593 h1:bzRnLxh2Vj/Buy2AYv0KRmpxgkIYSpfs9ELbR7fhasY=
|
||||
github.com/cs3org/reva/v2 v2.27.1-0.20250109115603-fe9caac22593/go.mod h1:OrCNgIFkp3ROHiEjNCj8eZHACmYCD4owtFRuYFlYZkU=
|
||||
github.com/cs3org/reva/v2 v2.27.3 h1:9YZpjQNlDGxlbdKJSyJ5zdgncvdj5Pcdq9sg/k8+7ac=
|
||||
github.com/cs3org/reva/v2 v2.27.3/go.mod h1:8yvuebW1eCKzRfzNXy+RSYYEESmMp5mCuM6MQ47zJow=
|
||||
github.com/cyberdelia/templates v0.0.0-20141128023046-ca7fffd4298c/go.mod h1:GyV+0YP4qX0UQ7r2MoYZ+AvYDp12OF5yg4q8rGnyNh4=
|
||||
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
|
||||
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
|
||||
@@ -326,8 +324,6 @@ github.com/foxcpp/go-mockdns v1.1.0 h1:jI0rD8M0wuYAxL7r/ynTrCQQq0BVqfB99Vgk7Dlme
|
||||
github.com/foxcpp/go-mockdns v1.1.0/go.mod h1:IhLeSFGed3mJIAXPH2aiRQB+kqz7oqu8ld2qVbOu7Wk=
|
||||
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
|
||||
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
|
||||
github.com/fschade/icap-client v0.0.0-20240802074440-aade4a234387 h1:Y3wZgTr29sLxWSMz4KF91o0x87EaJF6FIPNJFepRIiw=
|
||||
github.com/fschade/icap-client v0.0.0-20240802074440-aade4a234387/go.mod h1:HpntrRsQA6RKNXy2Nbr4kVj+NO3OYWpAQUVxeya+3sU=
|
||||
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
|
||||
github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
|
||||
github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA=
|
||||
@@ -702,8 +698,12 @@ github.com/klauspost/compress v1.17.11/go.mod h1:pMDklpSncoRMuLFrf1W9Ss9KT+0rH90
|
||||
github.com/klauspost/cpuid/v2 v2.0.1/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
|
||||
github.com/klauspost/cpuid/v2 v2.2.8 h1:+StwCXwm9PdpiEkPyzBXIy+M9KUb4ODm0Zarf1kS5BM=
|
||||
github.com/klauspost/cpuid/v2 v2.2.8/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
|
||||
github.com/kobergj/go-micro/v4 v4.0.0-20250117084952-d07d30666b7c h1:21N6rhk5dzUxYhJYiBsyqoRrIowpetooAS5mDwHayeE=
|
||||
github.com/kobergj/go-micro/v4 v4.0.0-20250117084952-d07d30666b7c/go.mod h1:eE/tD53n3KbVrzrWxKLxdkGw45Fg1qaNLWjpJMvIUF4=
|
||||
github.com/kobergj/gowebdav v0.0.0-20250102091030-aa65266db202 h1:A1xJ2NKgiYFiaHiLl9B5yw/gUBACSs9crDykTS3GuQI=
|
||||
github.com/kobergj/gowebdav v0.0.0-20250102091030-aa65266db202/go.mod h1:bHA7t77X/QFExdeAnDzK6vKM34kEZAcE1OX4MfiwjkE=
|
||||
github.com/kobergj/icap-client v0.0.0-20250116172800-8eaa5022532b h1:NBKEgFtIukCreWOEvtrgNQusqosGyhlxzyiHbba1zEI=
|
||||
github.com/kobergj/icap-client v0.0.0-20250116172800-8eaa5022532b/go.mod h1:HpntrRsQA6RKNXy2Nbr4kVj+NO3OYWpAQUVxeya+3sU=
|
||||
github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20240807130109-f62bb67e8c90 h1:pfI8Z5yavO6fU6vDGlWhZ4BgDlvj8c6xB7J57HfTPwA=
|
||||
github.com/kobergj/plugins/v4/store/nats-js-kv v0.0.0-20240807130109-f62bb67e8c90/go.mod h1:pjcozWijkNPbEtX5SIQaxEW/h8VAVZYTLx+70bmB3LY=
|
||||
github.com/kolo/xmlrpc v0.0.0-20200310150728-e0350524596b/go.mod h1:o03bZfuBwAXHetKXuInt4S7omeXUu62/A845kiycsSQ=
|
||||
|
||||
@@ -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 = "7.1.0-rc.1+dev"
|
||||
LatestTag = "7.1.0-rc.3+dev"
|
||||
|
||||
// Date indicates the build date.
|
||||
// This has been removed, it looks like you can only replace static strings with recent go versions
|
||||
|
||||
@@ -137,19 +137,23 @@ func (s *ActivitylogService) HandleGetItemActivities(w http.ResponseWriter, r *h
|
||||
message = MessageResourceUpdated
|
||||
}
|
||||
ts = utils.TSToTime(ev.Timestamp)
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.FileRef, false, ""), WithUser(nil, ev.ExecutingUser, ev.ImpersonatingUser))
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.FileRef, false, "", &t, loc),
|
||||
WithUser(nil, ev.ExecutingUser, ev.ImpersonatingUser))
|
||||
case events.FileTouched:
|
||||
message = MessageResourceCreated
|
||||
ts = utils.TSToTime(ev.Timestamp)
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, ""), WithUser(ev.Executant, nil, ev.ImpersonatingUser))
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, "", &t, loc),
|
||||
WithUser(ev.Executant, nil, ev.ImpersonatingUser))
|
||||
case events.FileDownloaded:
|
||||
message = MessageResourceDownloaded
|
||||
ts = utils.TSToTime(ev.Timestamp)
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, ""), WithUser(ev.Executant, nil, ev.ImpersonatingUser), WithVar("token", "", ev.ImpersonatingUser.GetId().GetOpaqueId()))
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, "", &t, loc),
|
||||
WithUser(ev.Executant, nil, ev.ImpersonatingUser), WithVar("token", "", ev.ImpersonatingUser.GetId().GetOpaqueId()))
|
||||
case events.ContainerCreated:
|
||||
message = MessageResourceCreated
|
||||
ts = utils.TSToTime(ev.Timestamp)
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, ""), WithUser(ev.Executant, nil, ev.ImpersonatingUser))
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, "", &t, loc),
|
||||
WithUser(ev.Executant, nil, ev.ImpersonatingUser))
|
||||
case events.ItemTrashed:
|
||||
message = MessageResourceTrashed
|
||||
ts = utils.TSToTime(ev.Timestamp)
|
||||
@@ -158,17 +162,19 @@ func (s *ActivitylogService) HandleGetItemActivities(w http.ResponseWriter, r *h
|
||||
switch isRename(ev.OldReference, ev.Ref) {
|
||||
case true:
|
||||
message = MessageResourceRenamed
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, ""), WithOldResource(ev.OldReference), WithUser(ev.Executant, nil, ev.ImpersonatingUser))
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, "", &t, loc),
|
||||
WithOldResource(ev.OldReference), WithUser(ev.Executant, nil, ev.ImpersonatingUser))
|
||||
case false:
|
||||
message = MessageResourceMoved
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, ""), WithUser(ev.Executant, nil, ev.ImpersonatingUser))
|
||||
vars, err = s.GetVars(ctx, WithResource(ev.Ref, false, "", &t, loc),
|
||||
WithUser(ev.Executant, nil, ev.ImpersonatingUser))
|
||||
}
|
||||
ts = utils.TSToTime(ev.Timestamp)
|
||||
case events.ShareCreated:
|
||||
message = MessageShareCreated
|
||||
ts = utils.TSToTime(ev.CTime)
|
||||
vars, err = s.GetVars(ctx,
|
||||
WithResource(toRef(ev.ItemID), false, ev.ResourceName),
|
||||
WithResource(toRef(ev.ItemID), false, ev.ResourceName, &t, loc),
|
||||
WithUser(ev.Executant, nil, nil),
|
||||
WithSharee(ev.GranteeUserID, ev.GranteeGroupID))
|
||||
case events.ShareUpdated:
|
||||
@@ -178,21 +184,21 @@ func (s *ActivitylogService) HandleGetItemActivities(w http.ResponseWriter, r *h
|
||||
message = MessageShareUpdated
|
||||
ts = utils.TSToTime(ev.MTime)
|
||||
vars, err = s.GetVars(ctx,
|
||||
WithResource(toRef(ev.ItemID), false, ev.ResourceName),
|
||||
WithResource(toRef(ev.ItemID), false, ev.ResourceName, &t, loc),
|
||||
WithUser(ev.Executant, nil, nil),
|
||||
WithTranslation(&t, loc, "field", ev.UpdateMask))
|
||||
case events.ShareRemoved:
|
||||
message = MessageShareDeleted
|
||||
ts = ev.Timestamp
|
||||
vars, err = s.GetVars(ctx,
|
||||
WithResource(toRef(ev.ItemID), false, ev.ResourceName),
|
||||
WithResource(toRef(ev.ItemID), false, ev.ResourceName, &t, loc),
|
||||
WithUser(ev.Executant, nil, nil),
|
||||
WithSharee(ev.GranteeUserID, ev.GranteeGroupID))
|
||||
case events.LinkCreated:
|
||||
message = MessageLinkCreated
|
||||
ts = utils.TSToTime(ev.CTime)
|
||||
vars, err = s.GetVars(ctx,
|
||||
WithResource(toRef(ev.ItemID), false, ev.ResourceName),
|
||||
WithResource(toRef(ev.ItemID), false, ev.ResourceName, &t, loc),
|
||||
WithUser(ev.Executant, nil, nil))
|
||||
case events.LinkUpdated:
|
||||
if ev.Sharer != nil && ev.ItemID != nil && ev.Sharer.GetOpaqueId() == ev.ItemID.GetSpaceId() {
|
||||
@@ -208,7 +214,7 @@ func (s *ActivitylogService) HandleGetItemActivities(w http.ResponseWriter, r *h
|
||||
case events.LinkRemoved:
|
||||
message = MessageLinkDeleted
|
||||
ts = utils.TSToTime(ev.Timestamp)
|
||||
vars, err = s.GetVars(ctx, WithResource(toRef(ev.ItemID), false, ""), WithUser(ev.Executant, nil, nil))
|
||||
vars, err = s.GetVars(ctx, WithResource(toRef(ev.ItemID), false, "", &t, loc), WithUser(ev.Executant, nil, nil))
|
||||
case events.SpaceShared:
|
||||
message = MessageSpaceShared
|
||||
ts = ev.Timestamp
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-29 00:04+0000\n"
|
||||
"POT-Creation-Date: 2025-01-18 00:26+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Andi Chandler <andi@gowling.com>, 2024\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: 2025-01-06 00:03+0000\n"
|
||||
"POT-Creation-Date: 2025-01-26 00:54+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Jesús Recio <jrecio@solidgear.es>, 2024\n"
|
||||
"Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-02 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-22 00:26+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: hoshi1800 <hoshi1800@gmail.com>, 2024\n"
|
||||
"Language-Team: Japanese (Japan) (https://app.transifex.com/owncloud-org/teams/6149/ja_JP/)\n"
|
||||
|
||||
@@ -12,7 +12,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-04 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-24 00:55+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Flávio Veras <flaviove@gmail.com>, 2024\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: 2025-01-05 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-25 00:53+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Keram, 2024\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: 2025-01-04 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-24 00:55+0000\n"
|
||||
"PO-Revision-Date: 2024-08-20 10:13+0000\n"
|
||||
"Last-Translator: Roman Perekhod, 2024\n"
|
||||
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
|
||||
|
||||
@@ -42,6 +42,7 @@ var (
|
||||
StrExpirationDate = l10n.Template("expiration date")
|
||||
StrDisplayName = l10n.Template("display name")
|
||||
StrDescription = l10n.Template("description")
|
||||
StrFallbackFolder = l10n.Template("shared-with-me")
|
||||
)
|
||||
|
||||
// GetActivitiesResponse is the response on GET activities requests
|
||||
@@ -65,7 +66,7 @@ type Actor struct {
|
||||
type ActivityOption func(context.Context, gateway.GatewayAPIClient, map[string]interface{}) error
|
||||
|
||||
// WithResource sets the resource variable for an activity
|
||||
func WithResource(ref *provider.Reference, addSpace bool, explicitResourceName string) ActivityOption {
|
||||
func WithResource(ref *provider.Reference, addSpace bool, explicitResourceName string, t *l10n.Translator, locale string) ActivityOption {
|
||||
return func(ctx context.Context, gwc gateway.GatewayAPIClient, vars map[string]interface{}) error {
|
||||
info, err := utils.GetResource(ctx, ref, gwc)
|
||||
if err != nil {
|
||||
@@ -99,6 +100,9 @@ func WithResource(ref *provider.Reference, addSpace bool, explicitResourceName s
|
||||
|
||||
parent, err := utils.GetResourceByID(ctx, info.GetParentId(), gwc)
|
||||
if err != nil {
|
||||
vars["folder"] = Resource{
|
||||
Name: t.Translate(StrFallbackFolder, locale),
|
||||
}
|
||||
return err
|
||||
}
|
||||
vars["folder"] = Resource{
|
||||
|
||||
@@ -12,7 +12,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-06 00:03+0000\n"
|
||||
"POT-Creation-Date: 2025-01-26 00:54+0000\n"
|
||||
"PO-Revision-Date: 2024-04-04 00:17+0000\n"
|
||||
"Last-Translator: Michael Barz <mbarz@owncloud.com>, 2024\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: 2025-01-06 00:03+0000\n"
|
||||
"POT-Creation-Date: 2025-01-26 00:54+0000\n"
|
||||
"PO-Revision-Date: 2024-04-04 00:17+0000\n"
|
||||
"Last-Translator: Keram, 2024\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: 2025-01-06 00:03+0000\n"
|
||||
"POT-Creation-Date: 2025-01-26 00:54+0000\n"
|
||||
"PO-Revision-Date: 2024-04-04 00:17+0000\n"
|
||||
"Last-Translator: Roman Perekhod, 2024\n"
|
||||
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
|
||||
|
||||
Generated
+4
-4
@@ -4233,8 +4233,8 @@ packages:
|
||||
ms@2.1.3:
|
||||
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
|
||||
|
||||
nanoid@3.3.7:
|
||||
resolution: {integrity: sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==}
|
||||
nanoid@3.3.8:
|
||||
resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==}
|
||||
engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
|
||||
hasBin: true
|
||||
|
||||
@@ -11600,7 +11600,7 @@ snapshots:
|
||||
|
||||
ms@2.1.3: {}
|
||||
|
||||
nanoid@3.3.7: {}
|
||||
nanoid@3.3.8: {}
|
||||
|
||||
natural-compare@1.4.0: {}
|
||||
|
||||
@@ -12301,7 +12301,7 @@ snapshots:
|
||||
|
||||
postcss@8.4.39:
|
||||
dependencies:
|
||||
nanoid: 3.3.7
|
||||
nanoid: 3.3.8
|
||||
picocolors: 1.0.1
|
||||
source-map-js: 1.2.0
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/cs3org/reva/v2/pkg/events"
|
||||
"github.com/cs3org/reva/v2/pkg/events/stream"
|
||||
"github.com/owncloud/ocis/v2/services/notifications/pkg/config"
|
||||
@@ -51,6 +52,7 @@ func SendEmail(cfg *config.Config) *cli.Command {
|
||||
return err
|
||||
}
|
||||
}
|
||||
fmt.Println("successfully sent SendEmailsEvent")
|
||||
return nil
|
||||
},
|
||||
}
|
||||
|
||||
@@ -81,6 +81,7 @@ func Server(cfg *config.Config) *cli.Command {
|
||||
evs := []events.Unmarshaller{
|
||||
events.ShareCreated{},
|
||||
events.ShareExpired{},
|
||||
events.ShareRemoved{},
|
||||
events.SpaceShared{},
|
||||
events.SpaceUnshared{},
|
||||
events.SpaceMembershipExpired{},
|
||||
|
||||
@@ -116,7 +116,7 @@ func NewGroupedHTMLTemplate(gmt GroupedMessageTemplate, vars map[string]string,
|
||||
}
|
||||
bodyParts = append(bodyParts, bodyPart)
|
||||
}
|
||||
gmt.MessageBody = strings.Join(bodyParts, "<br><br><br>")
|
||||
gmt.MessageBody = newlineToBr(strings.Join(bodyParts, "<br><br><br>"))
|
||||
|
||||
return gmt, nil
|
||||
}
|
||||
|
||||
@@ -7,16 +7,16 @@
|
||||
# Edith Parzefall, 2023
|
||||
# Florian Lenz <florian@owncloud.com>, 2023
|
||||
# Michael Barz <mbarz@owncloud.com>, 2023
|
||||
# Martin <github@diemattels.at>, 2024
|
||||
# Martin <github@diemattels.at>, 2025
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-01 00:04+0000\n"
|
||||
"POT-Creation-Date: 2025-01-25 00:53+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: Martin <github@diemattels.at>, 2024\n"
|
||||
"Last-Translator: Martin <github@diemattels.at>, 2025\n"
|
||||
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -25,62 +25,73 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr "Zum Überprüfen hier klicken: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "Zum Ansehen hier klicken: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "Hallo {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "Hallo {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "Hallo {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr "Hallo {DisplayName},"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "Hallo,"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "Die Mitgliedschaft für '{SpaceName}' ist am {ExpiredAt} abgelaufen."
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr "Bericht"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr "ScienceMesh: {InitiatorName} möchte mir Ihnen gerne zusammenarbeiten"
|
||||
msgstr "Vernetzung: {InitiatorName} möchte mit Ihnen gerne zusammenarbeiten"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "Die Freigabe für '{ShareFolder}' ist am {ExpiredAt} abgelaufen."
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -90,7 +101,7 @@ msgstr ""
|
||||
"Über eventuelle weitere Freigaben oder Space-Mitgliedschaften kann der Zugriff trotzdem weiterhin möglich sein."
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -102,7 +113,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -116,7 +127,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -136,22 +147,39 @@ msgstr ""
|
||||
" ProviderDomain: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} hat \"{ShareFolder}\" mit Ihnen geteilt."
|
||||
|
||||
#. 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} hat den Ordner '{ShareFolder}' nicht mehr mit Dir geteilt.\n"
|
||||
"\n"
|
||||
"Auch wenn diese Freigabe widerrufen wurde, haben Sie möglicherweise noch Zugriff über andere Freigaben und/oder Space Mitgliedschaften."
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} hat \"{ShareFolder}\" mit Ihnen geteilt"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr ""
|
||||
"{ShareSharer} hat den Ordner '{ShareFolder}' nicht mehr mit Dir geteilt"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} hat Sie eingeladen, dem Space \"{SpaceName}\" beizutreten."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -162,11 +190,11 @@ msgstr ""
|
||||
"Über eventuelle weitere Freigaben oder Space-Mitgliedschaften kann der Zugriff trotzdem weiterhin möglich sein."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} hat Sie eingeladen, dem Space {SpaceName} beizutreten."
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} hat Sie aus dem Space {SpaceName} entfernt."
|
||||
@@ -4,16 +4,16 @@
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
# Translators:
|
||||
# Andi Chandler <andi@gowling.com>, 2024
|
||||
# Andi Chandler <andi@gowling.com>, 2025
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-29 00:04+0000\n"
|
||||
"POT-Creation-Date: 2025-01-25 00:53+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: Andi Chandler <andi@gowling.com>, 2024\n"
|
||||
"Last-Translator: Andi Chandler <andi@gowling.com>, 2025\n"
|
||||
"Language-Team: English (United Kingdom) (https://app.transifex.com/owncloud-org/teams/6149/en_GB/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -22,62 +22,73 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr "Click here to check it: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "Click here to view it: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "Hello {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "Hello {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "Hello {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr "Hi {DisplayName},"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "Hi,"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr "Report"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -88,7 +99,7 @@ msgstr ""
|
||||
"Even though this membership has expired you still might have access through other shares and/or space memberships"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -100,7 +111,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -114,7 +125,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -133,22 +144,38 @@ msgstr ""
|
||||
" ProviderDomain: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
|
||||
#. 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} 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."
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -159,11 +186,11 @@ msgstr ""
|
||||
"You might still have access through your other groups or direct membership."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} invited you to join {SpaceName}"
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} removed you from {SpaceName}"
|
||||
@@ -4,17 +4,18 @@
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
# Translators:
|
||||
# Juan Carlos Garrote, 2023
|
||||
# Jesús Recio <jrecio@solidgear.es>, 2024
|
||||
# Martin <github@diemattels.at>, 2025
|
||||
# Juan Carlos Garrote, 2025
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-06 00:03+0000\n"
|
||||
"POT-Creation-Date: 2025-01-23 16:29+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: Jesús Recio <jrecio@solidgear.es>, 2024\n"
|
||||
"Last-Translator: Juan Carlos Garrote, 2025\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"
|
||||
@@ -23,62 +24,73 @@ msgstr ""
|
||||
"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:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr "Click aquí para comprobarlo: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "Click aquí para verlo: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "Hola {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "Hola {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "Hola {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr "Hola {DisplayName},"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "Hola,"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "La membresía de '{SpaceName}' caducó en {ExpiredAt}"
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr "Notificar"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr "ScienceMesh: {InitiatorName} quiere colaborar con usted"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "La compartición a '{ShareFolder}' caducó en {ExpiredAt}"
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -89,7 +101,7 @@ msgstr ""
|
||||
"Aunque esta membresía ha caducado, aún puedes tener acceso a través de otras comparticiones y/o membresías al space"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -101,7 +113,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -115,7 +127,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -134,22 +146,35 @@ msgstr ""
|
||||
"ProviderDomain: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} ha compartido \"{ShareFolder}\" contigo."
|
||||
|
||||
#. 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 ""
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} compartió '{ShareFolder}' contigo"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr ""
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} te ha invitado a unirte a \"{SpaceName}\"."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -160,11 +185,11 @@ msgstr ""
|
||||
"Aún puedes tener acceso a través de tus otros grupos o membresía directa."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} te invitó a unirte a {SpaceName}"
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} te eliminó de {SpaceName}"
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-01 00:04+0000\n"
|
||||
"POT-Creation-Date: 2025-01-23 16:29+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: Flávio Veras <flaviove@gmail.com>, 2024\n"
|
||||
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/owncloud-org/teams/6149/pt_BR/)\n"
|
||||
@@ -22,62 +22,73 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=3; plural=(n == 0 || n == 1) ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2;\n"
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr "Clique aqui para conferir: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "Clique aqui para visualizá-lo: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "Olá {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "Olá {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "Olá {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "Olá,"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "A assinatura de '{SpaceName}' expirou em {ExpiredAt}"
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr "ScienceMesh: {InitiatorName} quer colaborar com você"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "Compartilhar em '{ShareFolder}' expirou em {ExpiredAt}"
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -88,7 +99,7 @@ msgstr ""
|
||||
"Mesmo que esta assinatura tenha expirado, você ainda pode ter acesso por meio de outros compartilhamentos e/ou assinaturas de espaço"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -100,7 +111,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -113,7 +124,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -132,22 +143,35 @@ msgstr ""
|
||||
"ProviderDomain: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} compartilhou \"{ShareFolder}\" com você."
|
||||
|
||||
#. 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 ""
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} compartilhou '{ShareFolder}' com você"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr ""
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} convidou você para participar de \"{SpaceName}\"."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -158,11 +182,11 @@ msgstr ""
|
||||
"Você ainda pode ter acesso por meio de outros grupos ou associação direta."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} convidou você para participar de {SpaceName}"
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} removeu você de {SpaceName}"
|
||||
@@ -4,19 +4,19 @@
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
# Translators:
|
||||
# Roman Perekhod, 2023
|
||||
# I Robot, 2024
|
||||
# dutty5, 2024
|
||||
# Viktor Scharf, 2024
|
||||
# Roman Perekhod, 2025
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-08 04:19+0000\n"
|
||||
"POT-Creation-Date: 2025-01-25 00:53+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: Viktor Scharf, 2024\n"
|
||||
"Last-Translator: Roman Perekhod, 2025\n"
|
||||
"Language-Team: Russian (https://app.transifex.com/owncloud-org/teams/6149/ru/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -25,62 +25,73 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr "Нажмите здесь, чтобы проверить: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "Нажмите здесь, чтобы посмотреть: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "Здравствуйте, {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "Здравствуйте, {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "Здравствуйте, {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr "Привет {DisplayName},"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "Привет,"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "Членство в '{SpaceName}' истекло {ExpiredAt}"
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr "Отчет"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr "ScienceMesh: {InitiatorName} хочет сотрудничать с вами"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "Доступ к '{ShareFolder}' истёк {ExpiredAt}"
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -91,7 +102,7 @@ msgstr ""
|
||||
"Несмотря на то, что срок действия этого членства истёк, у вас всё еще может быть доступ через другие общие ресурсы и/или членства в пространстве."
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -103,7 +114,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -117,7 +128,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -136,22 +147,38 @@ msgstr ""
|
||||
" ProviderDomain: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} поделился с вами \"{ShareFolder}\"."
|
||||
|
||||
#. 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} удалил ваш общий доступ к '{ShareFolder}'.\n"
|
||||
"\n"
|
||||
"Несмотря на то, что этот общий доступ удалён, у вас всё еще может быть доступ через другие общие ресурсы и/или членства в пространстве."
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} поделился с вами '{ShareFolder}'"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} удалил ваш общий доступ к '{ShareFolder}'"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} пригласил вас присоединиться к \"{SpaceName}\"."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -162,11 +189,11 @@ msgstr ""
|
||||
"У вас всё еще может быть доступ через другие группы или прямое членство."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} пригласил вас присоединиться к {SpaceName}"
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} удалил вас из {SpaceName}"
|
||||
@@ -12,7 +12,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-09 00:26+0000\n"
|
||||
"POT-Creation-Date: 2025-01-23 16:29+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: dutty5, 2025\n"
|
||||
"Language-Team: Russian (Russia) (https://app.transifex.com/owncloud-org/teams/6149/ru_RU/)\n"
|
||||
@@ -23,64 +23,75 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n%100>=11 && n%100<=14)? 2 : 3);\n"
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr "Нажмите здесь, чтобы посмотреть: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "Нажмите здесь, чтобы посмотреть: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "Здравствуйте, {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "Здравствуйте, {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "Здравствуйте, {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "Привет,"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "Членство в '{SpaceName}' истекло {ExpiredAt}"
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr ""
|
||||
"ScienceMesh: {InitiatorName} хочет начать использование ресурсов совместной "
|
||||
"работы с вами"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "Доступ к '{ShareFolder}' истёк {ExpiredAt}"
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -91,7 +102,7 @@ msgstr ""
|
||||
"Несмотря на то, что срок действия этого членства истёк, у вас всё ещё может быть доступ через другие общие ресурсы и/или членство в пространстве."
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -103,7 +114,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -117,7 +128,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -136,22 +147,35 @@ msgstr ""
|
||||
" Домен провайдера: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} поделился с вами \"{ShareFolder}\"."
|
||||
|
||||
#. 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 ""
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} поделился с вами '{ShareFolder}'"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr ""
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} пригласил вас присоединиться к участникам \"{SpaceName}\"."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -162,11 +186,11 @@ msgstr ""
|
||||
"У вас все еще может быть доступ через другие группы или прямое членство."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} пригласил вас присоединиться к участникам {SpaceName}"
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} удалил вас из участников {SpaceName}"
|
||||
@@ -4,16 +4,16 @@
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
# Translators:
|
||||
# Besnik Bleta <besnik@programeshqip.org>, 2024
|
||||
# Besnik Bleta <besnik@programeshqip.org>, 2025
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-08 04:19+0000\n"
|
||||
"POT-Creation-Date: 2025-01-24 00:55+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: Besnik Bleta <besnik@programeshqip.org>, 2024\n"
|
||||
"Last-Translator: Besnik Bleta <besnik@programeshqip.org>, 2025\n"
|
||||
"Language-Team: Albanian (https://app.transifex.com/owncloud-org/teams/6149/sq/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -22,62 +22,73 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr ""
|
||||
msgstr "Klikoni këtu që ta shihni: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "Klikoni këtu që ta shihni: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "Tungjatjeta {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "Tungjatjeta {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "Tungjatjeta {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr "Njatjeta {DisplayName},"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "Njatjeta,"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "Anëtarësia në “{SpaceName}” skadoi më {ExpiredAt}"
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr "Raport "
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr "ScienceMesh: {InitiatorName} dëshiron të bashkëpunojë me ju"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "Pjesa te “{ShareFolder}” skadoi më {ExpiredAt}"
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -88,7 +99,7 @@ msgstr ""
|
||||
"Edhe pse kjo anëtarësi ka skaduar, mundet që ende të keni hyrje në të përmes ndarjesh dhe/ose anëtarësish hapësirash të tjera"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -100,7 +111,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -114,7 +125,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -133,22 +144,38 @@ msgstr ""
|
||||
" ProviderDomain: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} ka ndarë “{ShareFolder}” me ju."
|
||||
|
||||
#. 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} ka hequr ndarjen e '{ShareFolder}' me ju.\n"
|
||||
"\n"
|
||||
"Edhe pse kjo ndarje është shfuqizuar, prapë mund ta përdorni përmes ndarjesh dhe/ose anëtarësish në hapësira."
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} ndau “{ShareFolder}” me ju"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} hoqi ndarjen e '{ShareFolder}' me ju"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} ju ka ftuar të merrni pjesë në “{SpaceName}”."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -159,11 +186,11 @@ msgstr ""
|
||||
"Mundet që ende të keni hyrje në të përmes grupeve tuaja të tjera, ose anëtarësimi të drejtpërdrejtë."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} ju ftoi të merrni pjesë në {SpaceName}"
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} ju hoqi nga {SpaceName}"
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-05 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-23 16:29+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: Keram, 2024\n"
|
||||
"Language-Team: Uyghur (https://app.transifex.com/owncloud-org/teams/6149/ug/)\n"
|
||||
@@ -22,62 +22,73 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr "بۇ يەرنى چېكىپ تەكشۈرۈپ بېقىڭ: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "بۇ يەرنى چېكىپ كۆرۈڭ: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "ياخشىمۇسىز {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "ياخشىمۇسىز {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "ياخشىمۇسىز {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "ياخشىمۇسىز ،"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "'{SpaceName}' نىڭ ئەزالىق مۇددىتى Exp ExpiredAt at دە ئاخىرلاشتى"
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr "ScienceMesh: {InitiatorName you سىز بىلەن ھەمكارلىشىشنى خالايدۇ"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "«{ShareFolder}» نىڭ ۋاقتى توشىدۇ {ExpiredAt}"
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -88,7 +99,7 @@ msgstr ""
|
||||
"گەرچە بۇ ئەزالىق مۇددىتى توشقان بولسىمۇ ، سىز يەنىلا باشقا پايلار ۋە ياكى بوشلۇق ئەزالىرى ئارقىلىق زىيارەت قىلالايسىز"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -100,7 +111,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -114,7 +125,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -133,22 +144,35 @@ msgstr ""
|
||||
" ProviderDomain: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} سىز بىلەن «{ShareFolder}» نى ئورتاقلاشتى."
|
||||
|
||||
#. 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 ""
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} ئورتاقلاشتى '{ShareFolder}'"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr ""
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} سىزنى «{SpaceName}» غا قاتنىشىشقا تەكلىپ قىلدى."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -159,11 +183,11 @@ msgstr ""
|
||||
"باشقا گۇرۇپپىلار ياكى بىۋاسىتە ئەزالىق سالاھىيىتىڭىز بىلەن يەنىلا زىيارەت قىلالايسىز."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} سىزنى {SpaceName to غا قاتنىشىشقا تەكلىپ قىلدى"
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} سىزنى {SpaceName from دىن ئۆچۈردى"
|
||||
@@ -4,16 +4,16 @@
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
# Translators:
|
||||
# Roman Perekhod, 2024
|
||||
# Roman Perekhod, 2025
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-27 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-25 00:53+0000\n"
|
||||
"PO-Revision-Date: 2023-04-19 11:11+0000\n"
|
||||
"Last-Translator: Roman Perekhod, 2024\n"
|
||||
"Last-Translator: Roman Perekhod, 2025\n"
|
||||
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -22,62 +22,73 @@ msgstr ""
|
||||
"Plural-Forms: nplurals=4; plural=(n % 1 == 0 && n % 10 == 1 && n % 100 != 11 ? 0 : n % 1 == 0 && n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14) ? 1 : n % 1 == 0 && (n % 10 ==0 || (n % 10 >=5 && n % 10 <=9) || (n % 100 >=11 && n % 100 <=14 )) ? 2: 3);\n"
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:60
|
||||
#: pkg/email/templates.go:78
|
||||
msgid "Click here to check it: {ShareLink}"
|
||||
msgstr "Натисніть тут, щоб перевірити: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .CallToAction }}
|
||||
#. SharedSpace email template, resolves via {{ .CallToAction }}
|
||||
#: pkg/email/templates.go:18 pkg/email/templates.go:45
|
||||
#: pkg/email/templates.go:23 pkg/email/templates.go:63
|
||||
msgid "Click here to view it: {ShareLink}"
|
||||
msgstr "Натисніть тут, щоб переглянути: {ShareLink}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:14
|
||||
#: pkg/email/templates.go:19
|
||||
msgid "Hello {ShareGrantee}"
|
||||
msgstr "Привіт {ShareGrantee}"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:27
|
||||
#. ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:32 pkg/email/templates.go:45
|
||||
msgid "Hello {ShareGrantee},"
|
||||
msgstr "Привіт {ShareGrantee},"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. UnsharedSpace email template, resolves via {{ .Greeting }}
|
||||
#. MembershipExpired email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:41 pkg/email/templates.go:54
|
||||
#: pkg/email/templates.go:69
|
||||
#: pkg/email/templates.go:59 pkg/email/templates.go:72
|
||||
#: pkg/email/templates.go:87
|
||||
msgid "Hello {SpaceGrantee},"
|
||||
msgstr "Привіт {SpaceGrantee},"
|
||||
|
||||
#. Grouped email template, resolves via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:131
|
||||
msgid "Hi {DisplayName},"
|
||||
msgstr "Привіт {DisplayName},"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{ .Greeting
|
||||
#. }}
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .Greeting }}
|
||||
#: pkg/email/templates.go:82 pkg/email/templates.go:99
|
||||
#: pkg/email/templates.go:100 pkg/email/templates.go:117
|
||||
msgid "Hi,"
|
||||
msgstr "Привіт,"
|
||||
|
||||
#. MembershipExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:67
|
||||
#: pkg/email/templates.go:85
|
||||
msgid "Membership of '{SpaceName}' expired at {ExpiredAt}"
|
||||
msgstr "Членство в '{SpaceName}' закінчилося {ExpiredAt}"
|
||||
|
||||
#. Grouped email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:129
|
||||
msgid "Report"
|
||||
msgstr "Звіт"
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, Subject field (resolves
|
||||
#. directly)
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, Subject
|
||||
#. field (resolves directly)
|
||||
#: pkg/email/templates.go:80 pkg/email/templates.go:97
|
||||
#: pkg/email/templates.go:98 pkg/email/templates.go:115
|
||||
msgid "ScienceMesh: {InitiatorName} wants to collaborate with you"
|
||||
msgstr "ScienceMesh: {InitiatorName} хоче співпрацювати з вами"
|
||||
|
||||
#. ShareExpired email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:25
|
||||
#: pkg/email/templates.go:30
|
||||
msgid "Share to '{ShareFolder}' expired at {ExpiredAt}"
|
||||
msgstr "Спільний доступу до '{ShareFolder}' закінчився {ExpiredAt}"
|
||||
|
||||
#. MembershipExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:71
|
||||
#: pkg/email/templates.go:89
|
||||
msgid ""
|
||||
"Your membership of space {SpaceName} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -88,7 +99,7 @@ msgstr ""
|
||||
"Навіть якщо термін дії цього членства закінчився, ви все ще можете мати доступ через інші спільні ресурси та/або членство в просторі"
|
||||
|
||||
#. ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:29
|
||||
#: pkg/email/templates.go:34
|
||||
msgid ""
|
||||
"Your share to {ShareFolder} has expired at {ExpiredAt}\n"
|
||||
"\n"
|
||||
@@ -96,11 +107,11 @@ msgid ""
|
||||
msgstr ""
|
||||
"Термін дії вашого спільного доступу до {ShareFolder} закінчився {ExpiredAt}\n"
|
||||
"\n"
|
||||
"Навіть якщо цей спільний доступ було скасовано, ви все ще можете мати доступ через інші спільні ресурси та/або членство в групі."
|
||||
"Навіть якщо цей спільний доступ було скасовано, ви все ще можете мати доступ через інші спільні ресурси та/або членство у просторі."
|
||||
|
||||
#. ScienceMeshInviteTokenGeneratedWithoutShareLink email template, resolves
|
||||
#. via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:101
|
||||
#: 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"
|
||||
@@ -114,7 +125,7 @@ msgstr ""
|
||||
|
||||
#. ScienceMeshInviteTokenGenerated email template, resolves via {{
|
||||
#. .MessageBody }}
|
||||
#: pkg/email/templates.go:84
|
||||
#: 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"
|
||||
@@ -133,22 +144,38 @@ msgstr ""
|
||||
" ProviderDomain: {ProviderDomain}"
|
||||
|
||||
#. ShareCreated email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:16
|
||||
#: pkg/email/templates.go:21
|
||||
msgid "{ShareSharer} has shared \"{ShareFolder}\" with you."
|
||||
msgstr "{ShareSharer} поділився \"{ShareFolder}\" з вами."
|
||||
|
||||
#. 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} скасував спільний доступ до '{ShareFolder}' для вас.\n"
|
||||
"\n"
|
||||
"Навіть якщо цей спільний доступ було скасовано, ви все ще можете мати доступ через інші спільні ресурси та/або членство у просторі."
|
||||
|
||||
#. ShareCreated email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:12
|
||||
#: pkg/email/templates.go:17
|
||||
msgid "{ShareSharer} shared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} поділився '{ShareFolder}' з вами"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#. ShareRemoved email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:43
|
||||
msgid "{ShareSharer} unshared '{ShareFolder}' with you"
|
||||
msgstr "{ShareSharer} скасував спільний доступ до '{ShareFolder}' для вас"
|
||||
|
||||
#. SharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:61
|
||||
msgid "{SpaceSharer} has invited you to join \"{SpaceName}\"."
|
||||
msgstr "{SpaceSharer} запросив вас приєднатися до \"{SpaceName}\"."
|
||||
|
||||
#. UnsharedSpace email template, resolves via {{ .MessageBody }}
|
||||
#: pkg/email/templates.go:56
|
||||
#: pkg/email/templates.go:74
|
||||
msgid ""
|
||||
"{SpaceSharer} has removed you from \"{SpaceName}\".\n"
|
||||
"\n"
|
||||
@@ -159,11 +186,11 @@ msgstr ""
|
||||
"Ви все ще можете мати доступ через інші групи або пряме членство."
|
||||
|
||||
#. SharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:39
|
||||
#: pkg/email/templates.go:57
|
||||
msgid "{SpaceSharer} invited you to join {SpaceName}"
|
||||
msgstr "{SpaceSharer} запросив вас приєднатися до {SpaceName}"
|
||||
|
||||
#. UnsharedSpace email template, Subject field (resolves directly)
|
||||
#: pkg/email/templates.go:52
|
||||
#: pkg/email/templates.go:70
|
||||
msgid "{SpaceSharer} removed you from {SpaceName}"
|
||||
msgstr "{SpaceSharer} видалив вас із {SpaceName}"
|
||||
@@ -33,6 +33,19 @@ var (
|
||||
// ShareExpired email template, resolves via {{ .MessageBody }}
|
||||
MessageBody: l10n.Template(`Your share to {ShareFolder} has expired at {ExpiredAt}
|
||||
|
||||
Even though this share has been revoked you still might have access through other shares and/or space memberships.`),
|
||||
}
|
||||
|
||||
ShareRemoved = MessageTemplate{
|
||||
textTemplate: _textTemplate,
|
||||
htmlTemplate: _htmlTemplate,
|
||||
// ShareRemoved email template, Subject field (resolves directly)
|
||||
Subject: l10n.Template(`{ShareSharer} unshared '{ShareFolder}' with you`),
|
||||
// ShareRemoved email template, resolves via {{ .Greeting }}
|
||||
Greeting: l10n.Template(`Hello {ShareGrantee},`),
|
||||
// ShareRemoved email template, resolves via {{ .MessageBody }}
|
||||
MessageBody: l10n.Template(`{ShareSharer} has unshared '{ShareFolder}' with you.
|
||||
|
||||
Even though this share has been revoked you still might have access through other shares and/or space memberships.`),
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,10 @@
|
||||
{{ .Greeting }}
|
||||
<br><br>
|
||||
{{ .MessageBody }}
|
||||
{{if ne .CallToAction "" }}<br><br>
|
||||
{{ .CallToAction }}{{end}}
|
||||
{{- if .CallToAction }}
|
||||
<br><br>
|
||||
{{ .CallToAction }}
|
||||
{{- end }}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{{ .Greeting }}
|
||||
|
||||
{{ .MessageBody }}
|
||||
{{if ne .CallToAction "" }}
|
||||
{{- if .CallToAction }}
|
||||
|
||||
{{ .CallToAction }}
|
||||
{{end}}
|
||||
{{- end }}
|
||||
|
||||
|
||||
---
|
||||
ownCloud - Store. Share. Work.
|
||||
|
||||
@@ -21,7 +21,8 @@ func (s eventsNotifier) sendGroupedEmailsJob(sendEmailsEvent events.SendEmailsEv
|
||||
return
|
||||
}
|
||||
|
||||
keys, err := s.userEventStore.listKeys(sendEmailsEvent.Interval)
|
||||
prefix := sendEmailsEvent.Interval + "_"
|
||||
keys, err := s.userEventStore.listKeys(prefix)
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Msg("could not get list of keys")
|
||||
return
|
||||
@@ -129,8 +130,30 @@ func (s eventsNotifier) createGroupedMail(ctx context.Context, logger zerolog.Lo
|
||||
"ShareFolder": shareFolder,
|
||||
"ExpiredAt": te.ExpiredAt.Format("2006-01-02 15:04:05"),
|
||||
})
|
||||
case events.ShareRemoved:
|
||||
logger := logger.With().
|
||||
Str("event", "ShareRemoved").
|
||||
Str("eventId", te.ItemID.OpaqueId).
|
||||
Logger()
|
||||
executant, shareFolder, _, err := s.prepareShareRemoved(logger, te)
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Msg("could not prepare vars for grouped email")
|
||||
continue
|
||||
}
|
||||
|
||||
mts = append(mts, email.ShareRemoved)
|
||||
mtsVars = append(mtsVars, map[string]string{
|
||||
"ShareSharer": executant.GetDisplayName(),
|
||||
"ShareFolder": shareFolder,
|
||||
})
|
||||
default:
|
||||
logger.Error().Str("eventType", e.Type).Msg("unsupported event type for grouped email")
|
||||
}
|
||||
}
|
||||
if len(mts) == 0 && len(mtsVars) == 0 {
|
||||
logger.Error().Msg("no body content for grouped email present")
|
||||
return
|
||||
}
|
||||
|
||||
rendered, err := email.RenderGroupedEmailTemplate(email.Grouped, map[string]string{
|
||||
"DisplayName": userEvents.User.GetDisplayName(),
|
||||
|
||||
@@ -39,7 +39,7 @@ func newUserEventStore(l log.Logger, s store.Store, hc ehsvc.EventHistoryService
|
||||
func (s *userEventStore) persist(interval string, eventId string, users []*user.User) []*user.User {
|
||||
var errorUsers []*user.User
|
||||
for _, u := range users {
|
||||
key := interval + u.Id.OpaqueId
|
||||
key := interval + "_" + u.Id.OpaqueId
|
||||
|
||||
// Note: This is not thread safe and can result in missing events
|
||||
records, err := s.store.Read(key)
|
||||
@@ -80,8 +80,8 @@ func (s *userEventStore) persist(interval string, eventId string, users []*user.
|
||||
return errorUsers
|
||||
}
|
||||
|
||||
func (s *userEventStore) listKeys(interval string) ([]string, error) {
|
||||
return s.store.List(store.ListPrefix(interval))
|
||||
func (s *userEventStore) listKeys(prefix string) ([]string, error) {
|
||||
return s.store.List(store.ListPrefix(prefix))
|
||||
}
|
||||
|
||||
func (s *userEventStore) pop(ctx context.Context, key string) (*userEvents, error) {
|
||||
|
||||
@@ -0,0 +1,416 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
user "github.com/cs3org/go-cs3apis/cs3/identity/user/v1beta1"
|
||||
collaboration "github.com/cs3org/go-cs3apis/cs3/sharing/collaboration/v1beta1"
|
||||
"github.com/cs3org/reva/v2/pkg/events"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
||||
event "github.com/owncloud/ocis/v2/protogen/gen/ocis/messages/eventhistory/v0"
|
||||
ehsvc "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/eventhistory/v0"
|
||||
"github.com/owncloud/ocis/v2/protogen/gen/ocis/services/eventhistory/v0/mocks"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"reflect"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"go-micro.dev/v4/store"
|
||||
storemocks "go-micro.dev/v4/store/mocks"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_userEventStore_persist(t *testing.T) {
|
||||
tEventId := "event id"
|
||||
tUser := &user.User{Id: &user.UserId{OpaqueId: "userid"}}
|
||||
tInterval := "interval"
|
||||
tKey := tInterval + "_" + tUser.Id.OpaqueId
|
||||
tErr := errors.New("some error")
|
||||
tValueSingleEventId, err := json.Marshal(userEventIds{
|
||||
User: tUser,
|
||||
EventIds: []string{tEventId},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
type fields struct {
|
||||
log log.Logger
|
||||
store store.Store
|
||||
historyClient ehsvc.EventHistoryService
|
||||
}
|
||||
type args struct {
|
||||
interval string
|
||||
eventId string
|
||||
users []*user.User
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
fields fields
|
||||
args args
|
||||
want []*user.User
|
||||
}{
|
||||
{
|
||||
name: "new record",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
|
||||
s.EXPECT().Read(tKey).Return([]*store.Record{}, nil).Once()
|
||||
|
||||
s.EXPECT().Write(&store.Record{Key: tKey, Value: tValueSingleEventId}).Return(nil).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: nil,
|
||||
},
|
||||
args: args{
|
||||
interval: tInterval,
|
||||
eventId: tEventId,
|
||||
users: []*user.User{tUser},
|
||||
},
|
||||
want: []*user.User(nil),
|
||||
},
|
||||
{
|
||||
name: "append to record",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
|
||||
s.EXPECT().Read(tKey).Return([]*store.Record{{Key: tKey, Value: tValueSingleEventId}}, nil).Once()
|
||||
|
||||
b, err := json.Marshal(userEventIds{
|
||||
User: tUser,
|
||||
EventIds: []string{tEventId, tEventId},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
s.EXPECT().Write(&store.Record{Key: tKey, Value: b}).Return(nil).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: nil,
|
||||
},
|
||||
args: args{
|
||||
interval: tInterval,
|
||||
eventId: tEventId,
|
||||
users: []*user.User{tUser},
|
||||
},
|
||||
want: []*user.User(nil),
|
||||
},
|
||||
{
|
||||
name: "error on read",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
|
||||
s.EXPECT().Read(tKey).Return(nil, tErr).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: nil,
|
||||
},
|
||||
args: args{
|
||||
interval: tInterval,
|
||||
eventId: tEventId,
|
||||
users: []*user.User{tUser},
|
||||
},
|
||||
want: []*user.User{tUser},
|
||||
},
|
||||
{
|
||||
name: "error on write",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
|
||||
s.EXPECT().Read(tKey).Return([]*store.Record{}, nil).Once()
|
||||
|
||||
b, err := json.Marshal(userEventIds{
|
||||
User: tUser,
|
||||
EventIds: []string{tEventId},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
s.EXPECT().Write(&store.Record{Key: tKey, Value: b}).Return(tErr).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: nil,
|
||||
},
|
||||
args: args{
|
||||
interval: tInterval,
|
||||
eventId: tEventId,
|
||||
users: []*user.User{tUser},
|
||||
},
|
||||
want: []*user.User{tUser},
|
||||
},
|
||||
{
|
||||
name: "multiple users",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
|
||||
s.EXPECT().Read(tKey).Return([]*store.Record{}, nil).Once()
|
||||
s.EXPECT().Write(&store.Record{Key: tKey, Value: tValueSingleEventId}).Return(nil).Once()
|
||||
|
||||
tUser2 := &user.User{Id: &user.UserId{OpaqueId: "userid2"}}
|
||||
tKey2 := tInterval + "_" + tUser2.Id.OpaqueId
|
||||
tValueSingleEventId2, err := json.Marshal(userEventIds{
|
||||
User: tUser2,
|
||||
EventIds: []string{tEventId},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
s.EXPECT().Read(tKey2).Return([]*store.Record{}, nil).Once()
|
||||
s.EXPECT().Write(&store.Record{Key: tKey2, Value: tValueSingleEventId2}).Return(nil).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: nil,
|
||||
},
|
||||
args: args{
|
||||
interval: tInterval,
|
||||
eventId: tEventId,
|
||||
users: []*user.User{tUser, {Id: &user.UserId{OpaqueId: "userid2"}}},
|
||||
},
|
||||
want: []*user.User(nil),
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
s := &userEventStore{
|
||||
log: tt.fields.log,
|
||||
store: tt.fields.store,
|
||||
historyClient: tt.fields.historyClient,
|
||||
}
|
||||
assert.Equalf(t, tt.want, s.persist(tt.args.interval, tt.args.eventId, tt.args.users), "persist(%v, %v, %v)", tt.args.interval, tt.args.eventId, tt.args.users)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func Test_userEventStore_pop(t *testing.T) {
|
||||
tCtx := context.TODO()
|
||||
tUser := &user.User{Id: &user.UserId{OpaqueId: "userid"}}
|
||||
tInterval := "interval"
|
||||
tKey := tInterval + "_" + tUser.Id.OpaqueId
|
||||
tErr := errors.New("some error")
|
||||
|
||||
// event 1
|
||||
tEventId := "event id"
|
||||
tValueSingleEventId, err := json.Marshal(userEventIds{
|
||||
User: tUser,
|
||||
EventIds: []string{tEventId},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
b, err := json.Marshal(events.ShareCreated{
|
||||
ShareID: &collaboration.ShareId{OpaqueId: "shareid"},
|
||||
})
|
||||
tEvent := &event.Event{
|
||||
Type: reflect.TypeOf(&events.ShareCreated{}).String(),
|
||||
Id: tEventId,
|
||||
Event: b,
|
||||
}
|
||||
tUserEvents := &userEvents{
|
||||
User: tUser,
|
||||
Events: []*event.Event{tEvent},
|
||||
}
|
||||
|
||||
// event 2
|
||||
tEventId2 := "event id2"
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
b, err = json.Marshal(events.ShareRemoved{
|
||||
ShareID: &collaboration.ShareId{OpaqueId: "shareid"},
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
tEvent2 := &event.Event{
|
||||
Type: reflect.TypeOf(&events.ShareRemoved{}).String(),
|
||||
Id: tEventId,
|
||||
Event: b,
|
||||
}
|
||||
|
||||
tValueMultipleEventIds, err := json.Marshal(userEventIds{
|
||||
User: tUser,
|
||||
EventIds: []string{tEventId, tEventId2},
|
||||
})
|
||||
tUserMultipleEvents := &userEvents{
|
||||
User: tUser,
|
||||
Events: []*event.Event{tEvent, tEvent2},
|
||||
}
|
||||
|
||||
type fields struct {
|
||||
log log.Logger
|
||||
store store.Store
|
||||
historyClient ehsvc.EventHistoryService
|
||||
}
|
||||
type args struct {
|
||||
ctx context.Context
|
||||
key string
|
||||
}
|
||||
tests := []struct {
|
||||
name string
|
||||
fields fields
|
||||
args args
|
||||
want *userEvents
|
||||
wantErr bool
|
||||
}{
|
||||
{
|
||||
name: "single event",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
|
||||
s.EXPECT().Read(tKey).Return([]*store.Record{{Key: tKey, Value: tValueSingleEventId}}, nil).Once()
|
||||
|
||||
s.EXPECT().Delete(tKey).Return(nil).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: func() ehsvc.EventHistoryService {
|
||||
hc := mocks.NewEventHistoryService(t)
|
||||
|
||||
hc.EXPECT().GetEvents(mock.Anything, &ehsvc.GetEventsRequest{Ids: []string{tEventId}}).
|
||||
Return(&ehsvc.GetEventsResponse{Events: []*event.Event{tEvent}}, nil).Once()
|
||||
|
||||
return hc
|
||||
}(),
|
||||
},
|
||||
args: args{
|
||||
ctx: tCtx,
|
||||
key: tKey,
|
||||
},
|
||||
want: tUserEvents,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "multiple events",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
s.EXPECT().Read(tKey).Return([]*store.Record{{Key: tKey, Value: tValueMultipleEventIds}}, nil).Once()
|
||||
|
||||
s.EXPECT().Delete(tKey).Return(nil).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: func() ehsvc.EventHistoryService {
|
||||
hc := mocks.NewEventHistoryService(t)
|
||||
|
||||
hc.EXPECT().GetEvents(tCtx, &ehsvc.GetEventsRequest{Ids: []string{tEventId, tEventId2}}).
|
||||
Return(&ehsvc.GetEventsResponse{Events: []*event.Event{tEvent, tEvent2}}, nil).Once()
|
||||
|
||||
return hc
|
||||
}(),
|
||||
},
|
||||
args: args{
|
||||
ctx: tCtx,
|
||||
key: tKey,
|
||||
},
|
||||
want: tUserMultipleEvents,
|
||||
wantErr: false,
|
||||
},
|
||||
{
|
||||
name: "error on read",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
s.EXPECT().Read(tKey).Return(nil, tErr).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: nil,
|
||||
},
|
||||
args: args{
|
||||
ctx: tCtx,
|
||||
key: tKey,
|
||||
},
|
||||
want: nil,
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "error on get events",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
s.EXPECT().Read(tKey).Return([]*store.Record{{Key: tKey, Value: tValueSingleEventId}}, nil).Once()
|
||||
return s
|
||||
}(),
|
||||
historyClient: func() ehsvc.EventHistoryService {
|
||||
hc := mocks.NewEventHistoryService(t)
|
||||
|
||||
hc.EXPECT().GetEvents(mock.Anything, &ehsvc.GetEventsRequest{Ids: []string{tEventId}}).
|
||||
Return(nil, tErr).Once()
|
||||
|
||||
return hc
|
||||
}(),
|
||||
},
|
||||
args: args{
|
||||
ctx: tCtx,
|
||||
key: tKey,
|
||||
},
|
||||
want: nil,
|
||||
wantErr: true,
|
||||
},
|
||||
{
|
||||
name: "error on delete",
|
||||
fields: fields{
|
||||
log: testLogger,
|
||||
store: func() store.Store {
|
||||
s := storemocks.NewStore(t)
|
||||
|
||||
s.EXPECT().Read(tKey).Return([]*store.Record{{Key: tKey, Value: tValueSingleEventId}}, nil).Once()
|
||||
|
||||
s.EXPECT().Delete(tKey).Return(tErr).Once()
|
||||
|
||||
return s
|
||||
}(),
|
||||
historyClient: func() ehsvc.EventHistoryService {
|
||||
hc := mocks.NewEventHistoryService(t)
|
||||
|
||||
hc.EXPECT().GetEvents(mock.Anything, &ehsvc.GetEventsRequest{Ids: []string{tEventId}}).
|
||||
Return(&ehsvc.GetEventsResponse{Events: []*event.Event{tEvent}}, nil).Once()
|
||||
|
||||
return hc
|
||||
}(),
|
||||
},
|
||||
args: args{
|
||||
ctx: tCtx,
|
||||
key: tKey,
|
||||
},
|
||||
want: nil,
|
||||
wantErr: true,
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
s := &userEventStore{
|
||||
log: tt.fields.log,
|
||||
store: tt.fields.store,
|
||||
historyClient: tt.fields.historyClient,
|
||||
}
|
||||
got, err := s.pop(tt.args.ctx, tt.args.key)
|
||||
if tt.wantErr {
|
||||
assert.NotNil(t, err)
|
||||
}
|
||||
assert.Equalf(t, tt.want, got, "pop(%v, %v)", tt.args.ctx, tt.args.key)
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -117,6 +117,8 @@ func (s eventsNotifier) Run() error {
|
||||
s.handleShareCreated(e, evt.ID)
|
||||
case events.ShareExpired:
|
||||
s.handleShareExpired(e, evt.ID)
|
||||
case events.ShareRemoved:
|
||||
s.handleShareRemoved(e, evt.ID)
|
||||
case events.ScienceMeshInviteTokenGenerated:
|
||||
s.handleScienceMeshInviteTokenGenerated(e)
|
||||
case events.SendEmailsEvent:
|
||||
|
||||
@@ -1,9 +1,22 @@
|
||||
package service_test
|
||||
package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
group "github.com/cs3org/go-cs3apis/cs3/identity/group/v1beta1"
|
||||
"github.com/cs3org/reva/v2/pkg/store"
|
||||
ehmsg "github.com/owncloud/ocis/v2/protogen/gen/ocis/messages/eventhistory/v0"
|
||||
settingsmsg "github.com/owncloud/ocis/v2/protogen/gen/ocis/messages/settings/v0"
|
||||
v0 "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/eventhistory/v0"
|
||||
ehmocks "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/eventhistory/v0/mocks"
|
||||
settingsmocks "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/settings/v0/mocks"
|
||||
"reflect"
|
||||
"strings"
|
||||
|
||||
microstore "go-micro.dev/v4/store"
|
||||
|
||||
storemocks "go-micro.dev/v4/store/mocks"
|
||||
"time"
|
||||
|
||||
gateway "github.com/cs3org/go-cs3apis/cs3/gateway/v1beta1"
|
||||
@@ -17,11 +30,8 @@ import (
|
||||
. "github.com/onsi/ginkgo/v2"
|
||||
. "github.com/onsi/gomega"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/log"
|
||||
"github.com/owncloud/ocis/v2/ocis-pkg/shared"
|
||||
settingssvc "github.com/owncloud/ocis/v2/protogen/gen/ocis/services/settings/v0"
|
||||
"github.com/owncloud/ocis/v2/services/graph/pkg/config/defaults"
|
||||
"github.com/owncloud/ocis/v2/services/notifications/pkg/channels"
|
||||
"github.com/owncloud/ocis/v2/services/notifications/pkg/service"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"go-micro.dev/v4/client"
|
||||
"google.golang.org/grpc"
|
||||
@@ -89,12 +99,10 @@ var _ = Describe("Notifications", func() {
|
||||
}
|
||||
})
|
||||
|
||||
DescribeTable("Sending userEventIds",
|
||||
DescribeTable("Sending notifications",
|
||||
func(tc testChannel, ev events.Event) {
|
||||
cfg := defaults.FullDefaultConfig()
|
||||
cfg.GRPCClientTLS = &shared.GRPCClientTLS{}
|
||||
ch := make(chan events.Event)
|
||||
evts := service.NewEventsNotifier(ch, tc, log.NewLogger(), gatewaySelector, vs, "",
|
||||
evts := NewEventsNotifier(ch, tc, log.NewLogger(), gatewaySelector, vs, "",
|
||||
"", "", "", "", "", "",
|
||||
store.Create(), nil, nil)
|
||||
go evts.Run()
|
||||
@@ -158,6 +166,30 @@ https://owncloud.com
|
||||
},
|
||||
}),
|
||||
|
||||
Entry("Share Removed", testChannel{
|
||||
expectedReceipients: []string{sharee.GetMail()},
|
||||
expectedSubject: "Dr. S. Harer unshared 'secrets of the board' with you",
|
||||
expectedTextBody: `Hello Eric Expireling,
|
||||
|
||||
Dr. S. Harer has unshared 'secrets of the board' with you.
|
||||
|
||||
Even though this share has been revoked you still might have access through other shares and/or space memberships.
|
||||
|
||||
|
||||
---
|
||||
ownCloud - Store. Share. Work.
|
||||
https://owncloud.com
|
||||
`,
|
||||
expectedSender: sharer.GetDisplayName(),
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.ShareRemoved{
|
||||
Executant: sharer.GetId(),
|
||||
GranteeUserID: sharee.GetId(),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
}),
|
||||
|
||||
Entry("Added to Space", testChannel{
|
||||
expectedReceipients: []string{sharee.GetMail()},
|
||||
expectedSubject: "Dr. S. Harer invited you to join secret space",
|
||||
@@ -304,12 +336,10 @@ var _ = Describe("Notifications X-Site Scripting", func() {
|
||||
}
|
||||
})
|
||||
|
||||
DescribeTable("Sending userEventIds",
|
||||
DescribeTable("Sending notifications",
|
||||
func(tc testChannel, ev events.Event) {
|
||||
cfg := defaults.FullDefaultConfig()
|
||||
cfg.GRPCClientTLS = &shared.GRPCClientTLS{}
|
||||
ch := make(chan events.Event)
|
||||
evts := service.NewEventsNotifier(ch, tc, log.NewLogger(), gatewaySelector, vs, "",
|
||||
evts := NewEventsNotifier(ch, tc, log.NewLogger(), gatewaySelector, vs, "",
|
||||
"", "", "", "", "", "",
|
||||
store.Create(), nil, nil)
|
||||
go evts.Run()
|
||||
@@ -460,7 +490,782 @@ https://owncloud.com
|
||||
)
|
||||
})
|
||||
|
||||
// NOTE: This is explictitly not testing the message itself. Should we?
|
||||
var _ = Describe("Notifications grouped store", func() {
|
||||
var (
|
||||
gatewayClient *cs3mocks.GatewayAPIClient
|
||||
gatewaySelector pool.Selectable[gateway.GatewayAPIClient]
|
||||
valueService *settingsmocks.ValueService
|
||||
store *storemocks.Store
|
||||
executant = &user.User{
|
||||
Id: &user.UserId{
|
||||
OpaqueId: "executantId",
|
||||
},
|
||||
Mail: "executant@owncloud.com",
|
||||
DisplayName: "executant",
|
||||
}
|
||||
receiverGrouped = &user.User{
|
||||
Id: &user.UserId{
|
||||
OpaqueId: "receiverGroupedId",
|
||||
},
|
||||
Mail: "receiverGrouped@owncloud.com",
|
||||
DisplayName: "receiverGrouped",
|
||||
}
|
||||
// receiverInstant is used to trigger tc.done
|
||||
receiverInstant = &user.User{
|
||||
Id: &user.UserId{
|
||||
OpaqueId: "receiverInstantId",
|
||||
},
|
||||
Mail: "receiverInstant@owncloud.com",
|
||||
DisplayName: "receiverInstant",
|
||||
}
|
||||
resourceid = &provider.ResourceId{
|
||||
StorageId: "storageid",
|
||||
SpaceId: "spaceid",
|
||||
OpaqueId: "itemid",
|
||||
}
|
||||
)
|
||||
|
||||
DescribeTable("Sending notifications",
|
||||
func(tc testChannelGroupedStore, ev events.Event, interval string) {
|
||||
// setup mocks
|
||||
// Note: This is done here and not inside a BeforeEach, because some mocks need variables from entries.
|
||||
|
||||
pool.RemoveSelector("GatewaySelector" + "com.owncloud.api.gateway")
|
||||
gatewayClient = &cs3mocks.GatewayAPIClient{}
|
||||
gatewaySelector = pool.GetSelector[gateway.GatewayAPIClient](
|
||||
"GatewaySelector",
|
||||
"com.owncloud.api.gateway",
|
||||
func(cc grpc.ClientConnInterface) gateway.GatewayAPIClient {
|
||||
return gatewayClient
|
||||
},
|
||||
)
|
||||
|
||||
gatewayClient.EXPECT().Authenticate(mock.Anything, mock.Anything).Return(&gateway.AuthenticateResponse{Status: &rpc.Status{Code: rpc.Code_CODE_OK}, User: executant}, nil)
|
||||
gatewayClient.EXPECT().Stat(mock.Anything, mock.Anything).Return(&provider.StatResponse{Status: &rpc.Status{Code: rpc.Code_CODE_OK}, Info: &provider.ResourceInfo{Name: "secrets of the board", Space: &provider.StorageSpace{Name: "secret space"}}}, nil)
|
||||
|
||||
gatewayClient.EXPECT().GetGroup(mock.Anything, mock.Anything).
|
||||
Return(&group.GetGroupResponse{
|
||||
Status: &rpc.Status{Code: rpc.Code_CODE_OK},
|
||||
Group: &group.Group{
|
||||
Members: []*user.UserId{receiverGrouped.GetId(), receiverInstant.GetId()},
|
||||
},
|
||||
}, nil)
|
||||
gatewayClient.EXPECT().GetUser(mock.Anything, mock.Anything).
|
||||
Return(&user.GetUserResponse{Status: &rpc.Status{Code: rpc.Code_CODE_OK}, User: executant}, nil).Once()
|
||||
gatewayClient.EXPECT().GetUser(mock.Anything, mock.Anything).
|
||||
Return(&user.GetUserResponse{Status: &rpc.Status{Code: rpc.Code_CODE_OK}, User: receiverGrouped}, nil).Once()
|
||||
gatewayClient.EXPECT().GetUser(mock.Anything, mock.Anything).
|
||||
Return(&user.GetUserResponse{Status: &rpc.Status{Code: rpc.Code_CODE_OK}, User: receiverInstant}, nil).Once()
|
||||
|
||||
valueService = settingsmocks.NewValueService(GinkgoT())
|
||||
|
||||
// disabled email
|
||||
valueService.EXPECT().GetValueByUniqueIdentifiers(mock.Anything, mock.Anything).
|
||||
Return(&settingssvc.GetValueResponse{Value: &settingsmsg.ValueWithIdentifier{
|
||||
Value: &settingsmsg.Value{
|
||||
Value: &settingsmsg.Value_BoolValue{
|
||||
BoolValue: false,
|
||||
},
|
||||
},
|
||||
}}, nil).Twice()
|
||||
|
||||
// filtering
|
||||
valueService.EXPECT().GetValueByUniqueIdentifiers(mock.Anything, mock.Anything).Return(&settingssvc.GetValueResponse{
|
||||
Value: &settingsmsg.ValueWithIdentifier{
|
||||
Value: &settingsmsg.Value{
|
||||
Value: &settingsmsg.Value_CollectionValue{
|
||||
CollectionValue: &settingsmsg.CollectionValue{
|
||||
Values: []*settingsmsg.CollectionOption{
|
||||
{
|
||||
Key: "mail",
|
||||
Option: &settingsmsg.CollectionOption_BoolValue{BoolValue: true},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}, nil).Twice()
|
||||
|
||||
// interval
|
||||
valueService.EXPECT().GetValueByUniqueIdentifiers(mock.Anything, mock.Anything).
|
||||
Return(&settingssvc.GetValueResponse{Value: &settingsmsg.ValueWithIdentifier{
|
||||
Value: &settingsmsg.Value{
|
||||
Value: &settingsmsg.Value_StringValue{
|
||||
StringValue: interval,
|
||||
},
|
||||
},
|
||||
}}, nil).Once()
|
||||
valueService.EXPECT().GetValueByUniqueIdentifiers(mock.Anything, mock.Anything).
|
||||
Return(&settingssvc.GetValueResponse{Value: &settingsmsg.ValueWithIdentifier{
|
||||
Value: &settingsmsg.Value{
|
||||
Value: &settingsmsg.Value_StringValue{
|
||||
StringValue: "instant",
|
||||
},
|
||||
},
|
||||
}}, nil).Once()
|
||||
|
||||
// locale
|
||||
valueService.EXPECT().GetValueByUniqueIdentifiers(mock.Anything, mock.Anything).Return(&settingssvc.GetValueResponse{
|
||||
Value: &settingsmsg.ValueWithIdentifier{
|
||||
Value: &settingsmsg.Value{
|
||||
Value: &settingsmsg.Value_ListValue{
|
||||
ListValue: &settingsmsg.ListValue{
|
||||
Values: []*settingsmsg.ListOptionValue{
|
||||
{
|
||||
Option: &settingsmsg.ListOptionValue_StringValue{StringValue: "en"},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}, nil).Once()
|
||||
|
||||
// fail if mocked functions are not called
|
||||
store = storemocks.NewStore(GinkgoT())
|
||||
store.EXPECT().Read(mock.Anything).Return([]*microstore.Record{}, nil).Once()
|
||||
store.EXPECT().Write(mock.Anything).Return(nil).Once()
|
||||
|
||||
// setup EventsNotifier
|
||||
ch := make(chan events.Event)
|
||||
evts := NewEventsNotifier(ch, tc, log.NewLogger(), gatewaySelector, valueService, "",
|
||||
"", "", "", "", "", "",
|
||||
store, nil, nil)
|
||||
go evts.Run()
|
||||
|
||||
// test
|
||||
ch <- ev
|
||||
select {
|
||||
case <-tc.done:
|
||||
case <-time.Tick(3 * time.Second):
|
||||
Fail("timeout waiting for notification")
|
||||
}
|
||||
},
|
||||
|
||||
Entry("Share Created daily", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.ShareCreated{
|
||||
Sharer: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
CTime: utils.TimeToTS(time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC)),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
},
|
||||
"daily"),
|
||||
|
||||
Entry("Share Expired daily", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.ShareExpired{
|
||||
ShareOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
},
|
||||
"daily"),
|
||||
|
||||
Entry("Share Removed daily", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.ShareRemoved{
|
||||
Executant: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ItemID: resourceid,
|
||||
},
|
||||
},
|
||||
"daily"),
|
||||
|
||||
Entry("Added to Space daily", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.SpaceShared{
|
||||
Executant: executant.GetId(),
|
||||
Creator: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
},
|
||||
},
|
||||
"daily"),
|
||||
|
||||
Entry("Removed from Space daily", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.SpaceUnshared{
|
||||
Executant: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
},
|
||||
},
|
||||
"daily"),
|
||||
|
||||
Entry("Space Expired daily", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.SpaceMembershipExpired{
|
||||
SpaceOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
SpaceID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
SpaceName: "secret space",
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
},
|
||||
},
|
||||
"daily"),
|
||||
|
||||
Entry("Share Created weekly", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.ShareCreated{
|
||||
Sharer: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
CTime: utils.TimeToTS(time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC)),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
},
|
||||
"weekly"),
|
||||
|
||||
Entry("Share Expired weekly", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.ShareExpired{
|
||||
ShareOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
},
|
||||
"weekly"),
|
||||
|
||||
Entry("Share Removed weekly", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.ShareRemoved{
|
||||
Executant: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ItemID: resourceid,
|
||||
},
|
||||
},
|
||||
"weekly"),
|
||||
|
||||
Entry("Added to Space weekly", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.SpaceShared{
|
||||
Executant: executant.GetId(),
|
||||
Creator: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
},
|
||||
},
|
||||
"weekly"),
|
||||
|
||||
Entry("Removed from Space weekly", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.SpaceUnshared{
|
||||
Executant: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
},
|
||||
},
|
||||
"weekly"),
|
||||
|
||||
Entry("Space Expired weekly", testChannelGroupedStore{
|
||||
done: make(chan struct{}),
|
||||
}, events.Event{
|
||||
Event: events.SpaceMembershipExpired{
|
||||
SpaceOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
SpaceID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
SpaceName: "secret space",
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
},
|
||||
},
|
||||
"weekly"),
|
||||
)
|
||||
})
|
||||
|
||||
var _ = Describe("Notifications grouped send", func() {
|
||||
const sender = "foo@bar.com"
|
||||
const subject = "Report"
|
||||
var (
|
||||
gatewayClient *cs3mocks.GatewayAPIClient
|
||||
gatewaySelector pool.Selectable[gateway.GatewayAPIClient]
|
||||
valueService *settingsmocks.ValueService
|
||||
store *storemocks.Store
|
||||
historyClient *ehmocks.EventHistoryService
|
||||
|
||||
executant = &user.User{
|
||||
Id: &user.UserId{
|
||||
OpaqueId: "executantId",
|
||||
},
|
||||
Mail: "executant@owncloud.com",
|
||||
DisplayName: "executant",
|
||||
}
|
||||
receiver = &user.User{
|
||||
Id: &user.UserId{
|
||||
OpaqueId: "receiver",
|
||||
},
|
||||
Mail: "receiver@owncloud.com",
|
||||
DisplayName: "receiver",
|
||||
}
|
||||
|
||||
resourceid = &provider.ResourceId{
|
||||
StorageId: "storageid",
|
||||
SpaceId: "spaceid",
|
||||
OpaqueId: "itemid",
|
||||
}
|
||||
)
|
||||
|
||||
DescribeTable("Sending notifications",
|
||||
func(tc testChannel, storedEvents []events.Event, interval string) {
|
||||
// setup mocks
|
||||
// Note: This is done here and not inside a BeforeEach, because some mocks need variables from entries.
|
||||
|
||||
b, err := json.Marshal(userEventIds{
|
||||
User: receiver,
|
||||
EventIds: []string{"event id"},
|
||||
})
|
||||
if err != nil {
|
||||
Fail(err.Error())
|
||||
}
|
||||
|
||||
store = &storemocks.Store{}
|
||||
store.EXPECT().List(mock.Anything).Return([]string{"key"}, nil)
|
||||
store.EXPECT().Read(mock.Anything).Return([]*microstore.Record{{Value: b}}, nil).Once()
|
||||
store.EXPECT().Delete(mock.Anything).Return(nil).Once()
|
||||
|
||||
var hcEvs []*ehmsg.Event
|
||||
for _, e := range storedEvents {
|
||||
b, err = json.Marshal(e.Event)
|
||||
if err != nil {
|
||||
Fail(err.Error())
|
||||
}
|
||||
hcEvs = append(hcEvs, &ehmsg.Event{Type: e.Type, Event: b})
|
||||
}
|
||||
|
||||
historyClient = &ehmocks.EventHistoryService{}
|
||||
historyClient.EXPECT().GetEvents(mock.Anything, mock.Anything).Return(&v0.GetEventsResponse{Events: hcEvs}, nil)
|
||||
|
||||
// locale
|
||||
valueService = &settingsmocks.ValueService{}
|
||||
valueService.EXPECT().GetValueByUniqueIdentifiers(mock.Anything, mock.Anything).Return(&settingssvc.GetValueResponse{
|
||||
Value: &settingsmsg.ValueWithIdentifier{
|
||||
Value: &settingsmsg.Value{
|
||||
Value: &settingsmsg.Value_ListValue{
|
||||
ListValue: &settingsmsg.ListValue{
|
||||
Values: []*settingsmsg.ListOptionValue{
|
||||
{
|
||||
Option: &settingsmsg.ListOptionValue_StringValue{StringValue: "en"},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}, nil).Once()
|
||||
|
||||
pool.RemoveSelector("GatewaySelector" + "com.owncloud.api.gateway")
|
||||
gatewayClient = &cs3mocks.GatewayAPIClient{}
|
||||
gatewaySelector = pool.GetSelector[gateway.GatewayAPIClient](
|
||||
"GatewaySelector",
|
||||
"com.owncloud.api.gateway",
|
||||
func(cc grpc.ClientConnInterface) gateway.GatewayAPIClient {
|
||||
return gatewayClient
|
||||
},
|
||||
)
|
||||
|
||||
gatewayClient.EXPECT().Authenticate(mock.Anything, mock.Anything).Return(&gateway.AuthenticateResponse{Status: &rpc.Status{Code: rpc.Code_CODE_OK}, User: executant}, nil)
|
||||
gatewayClient.EXPECT().Stat(mock.Anything, mock.Anything).Return(&provider.StatResponse{Status: &rpc.Status{Code: rpc.Code_CODE_OK}, Info: &provider.ResourceInfo{Name: "secrets of the board", Space: &provider.StorageSpace{Name: "secret space"}}}, nil)
|
||||
gatewayClient.EXPECT().GetUser(mock.Anything, mock.Anything).
|
||||
Return(&user.GetUserResponse{Status: &rpc.Status{Code: rpc.Code_CODE_OK}, User: executant}, nil).Once()
|
||||
|
||||
// setup EventsNotifier
|
||||
evs := []events.Unmarshaller{
|
||||
events.ShareCreated{},
|
||||
events.ShareExpired{},
|
||||
events.ShareRemoved{},
|
||||
events.SpaceShared{},
|
||||
events.SpaceUnshared{},
|
||||
events.SpaceMembershipExpired{},
|
||||
events.SendEmailsEvent{},
|
||||
}
|
||||
registeredEvents := make(map[string]events.Unmarshaller)
|
||||
for _, e := range evs {
|
||||
typ := reflect.TypeOf(e)
|
||||
registeredEvents[typ.String()] = e
|
||||
}
|
||||
ch := make(chan events.Event)
|
||||
evts := NewEventsNotifier(ch, tc, log.NewLogger(), gatewaySelector, valueService, "",
|
||||
"", "", "", "", "",
|
||||
sender, store, historyClient, registeredEvents)
|
||||
go evts.Run()
|
||||
|
||||
// trigger sending
|
||||
ch <- events.Event{
|
||||
Event: events.SendEmailsEvent{
|
||||
Interval: interval,
|
||||
},
|
||||
}
|
||||
select {
|
||||
case <-tc.done:
|
||||
case <-time.Tick(3 * time.Second):
|
||||
Fail("timeout waiting for notification")
|
||||
}
|
||||
},
|
||||
|
||||
// daily
|
||||
Entry("Share Created daily", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has shared "secrets of the board" with you.`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has shared "secrets of the board" with you.`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.ShareCreated{}).String(),
|
||||
Event: events.ShareCreated{
|
||||
Sharer: executant.GetId(),
|
||||
GranteeUserID: receiver.GetId(),
|
||||
CTime: utils.TimeToTS(time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC)),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
}}, "daily"),
|
||||
|
||||
Entry("Share Expired daily", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`Your share to secrets of the board has expired at 2023-04-17 16:42:00
|
||||
|
||||
Even though this share has been revoked you still might have access through other shares and/or space memberships.`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`Your share to secrets of the board has expired at 2023-04-17 16:42:00<br><br>Even though this share has been revoked you still might have access through other shares and/or space memberships.`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.ShareExpired{}).String(),
|
||||
Event: events.ShareExpired{
|
||||
ShareOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
}}, "daily"),
|
||||
|
||||
Entry("Share Removed daily", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has unshared 'secrets of the board' with you.
|
||||
|
||||
Even though this share has been revoked you still might have access through other shares and/or space memberships.`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has unshared 'secrets of the board' with you.<br><br>Even though this share has been revoked you still might have access through other shares and/or space memberships.`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.ShareRemoved{}).String(),
|
||||
Event: events.ShareRemoved{
|
||||
Executant: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ItemID: resourceid,
|
||||
},
|
||||
}}, "daily"),
|
||||
|
||||
Entry("Added to Space daily", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has invited you to join "secret space".`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has invited you to join "secret space".`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.SpaceShared{}).String(),
|
||||
Event: events.SpaceShared{
|
||||
Executant: executant.GetId(),
|
||||
Creator: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
},
|
||||
}}, "daily"),
|
||||
|
||||
Entry("Removed from Space daily", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has removed you from "secret space".
|
||||
|
||||
You might still have access through your other groups or direct membership.`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has removed you from "secret space".<br><br>You might still have access through your other groups or direct membership.`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.SpaceUnshared{}).String(),
|
||||
Event: events.SpaceUnshared{
|
||||
Executant: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
},
|
||||
}}, "daily"),
|
||||
|
||||
Entry("Space Expired daily", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`Your membership of space secret space has expired at 2023-04-17 16:42:00
|
||||
|
||||
Even though this membership has expired you still might have access through other shares and/or space memberships`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`Your membership of space secret space has expired at 2023-04-17 16:42:00<br><br>Even though this membership has expired you still might have access through other shares and/or space memberships`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.SpaceMembershipExpired{}).String(),
|
||||
Event: events.SpaceMembershipExpired{
|
||||
SpaceOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
SpaceID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
SpaceName: "secret space",
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
},
|
||||
}}, "daily"),
|
||||
|
||||
Entry("Share Created and Space Expired grouped daily", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has shared "secrets of the board" with you.
|
||||
|
||||
|
||||
Your membership of space secret space has expired at 2023-04-17 16:42:00
|
||||
|
||||
Even though this membership has expired you still might have access through other shares and/or space memberships`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has shared "secrets of the board" with you.<br><br><br>Your membership of space secret space has expired at 2023-04-17 16:42:00<br><br>Even though this membership has expired you still might have access through other shares and/or space memberships`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{
|
||||
{
|
||||
Type: reflect.TypeOf(events.ShareCreated{}).String(),
|
||||
Event: events.ShareCreated{
|
||||
Sharer: executant.GetId(),
|
||||
GranteeUserID: receiver.GetId(),
|
||||
CTime: utils.TimeToTS(time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC)),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
},
|
||||
{
|
||||
Type: reflect.TypeOf(events.SpaceMembershipExpired{}).String(),
|
||||
Event: events.SpaceMembershipExpired{
|
||||
SpaceOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
SpaceID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
SpaceName: "secret space",
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
},
|
||||
},
|
||||
}, "daily"),
|
||||
|
||||
// weekly
|
||||
Entry("Share Created weekly", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has shared "secrets of the board" with you.`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has shared "secrets of the board" with you.`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.ShareCreated{}).String(),
|
||||
Event: events.ShareCreated{
|
||||
Sharer: executant.GetId(),
|
||||
GranteeUserID: receiver.GetId(),
|
||||
CTime: utils.TimeToTS(time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC)),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
}}, "weekly"),
|
||||
|
||||
Entry("Share Expired weekly", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`Your share to secrets of the board has expired at 2023-04-17 16:42:00
|
||||
|
||||
Even though this share has been revoked you still might have access through other shares and/or space memberships.`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`Your share to secrets of the board has expired at 2023-04-17 16:42:00<br><br>Even though this share has been revoked you still might have access through other shares and/or space memberships.`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.ShareExpired{}).String(),
|
||||
Event: events.ShareExpired{
|
||||
ShareOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
}}, "weekly"),
|
||||
|
||||
Entry("Share Removed weekly", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has unshared 'secrets of the board' with you.
|
||||
|
||||
Even though this share has been revoked you still might have access through other shares and/or space memberships.`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has unshared 'secrets of the board' with you.<br><br>Even though this share has been revoked you still might have access through other shares and/or space memberships.`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.ShareRemoved{}).String(),
|
||||
Event: events.ShareRemoved{
|
||||
Executant: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ItemID: resourceid,
|
||||
},
|
||||
}}, "weekly"),
|
||||
|
||||
Entry("Added to Space weekly", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has invited you to join "secret space".`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has invited you to join "secret space".`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.SpaceShared{}).String(),
|
||||
Event: events.SpaceShared{
|
||||
Executant: executant.GetId(),
|
||||
Creator: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
},
|
||||
}}, "weekly"),
|
||||
|
||||
Entry("Removed from Space weekly", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has removed you from "secret space".
|
||||
|
||||
You might still have access through your other groups or direct membership.`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has removed you from "secret space".<br><br>You might still have access through your other groups or direct membership.`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.SpaceUnshared{}).String(),
|
||||
Event: events.SpaceUnshared{
|
||||
Executant: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
ID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
},
|
||||
}}, "weekly"),
|
||||
|
||||
Entry("Space Expired weekly", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`Your membership of space secret space has expired at 2023-04-17 16:42:00
|
||||
|
||||
Even though this membership has expired you still might have access through other shares and/or space memberships`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`Your membership of space secret space has expired at 2023-04-17 16:42:00<br><br>Even though this membership has expired you still might have access through other shares and/or space memberships`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{{
|
||||
Type: reflect.TypeOf(events.SpaceMembershipExpired{}).String(),
|
||||
Event: events.SpaceMembershipExpired{
|
||||
SpaceOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
SpaceID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
SpaceName: "secret space",
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
},
|
||||
}}, "weekly"),
|
||||
|
||||
Entry("Share Created and Space Expired grouped weekly", testChannel{
|
||||
expectedReceipients: []string{receiver.GetMail()},
|
||||
expectedSender: sender,
|
||||
expectedSubject: subject,
|
||||
expectedTextBody: buildExpectedTextBodyGrouped(receiver.DisplayName, []string{`executant has shared "secrets of the board" with you.
|
||||
|
||||
|
||||
Your membership of space secret space has expired at 2023-04-17 16:42:00
|
||||
|
||||
Even though this membership has expired you still might have access through other shares and/or space memberships`}),
|
||||
expectedHTMLBody: buildExpectedHTMLBodyGrouped(receiver.DisplayName, []string{`executant has shared "secrets of the board" with you.<br><br><br>Your membership of space secret space has expired at 2023-04-17 16:42:00<br><br>Even though this membership has expired you still might have access through other shares and/or space memberships`}),
|
||||
done: make(chan struct{}),
|
||||
}, []events.Event{
|
||||
{
|
||||
Type: reflect.TypeOf(events.ShareCreated{}).String(),
|
||||
Event: events.ShareCreated{
|
||||
Sharer: executant.GetId(),
|
||||
GranteeUserID: receiver.GetId(),
|
||||
CTime: utils.TimeToTS(time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC)),
|
||||
ItemID: resourceid,
|
||||
},
|
||||
},
|
||||
{
|
||||
Type: reflect.TypeOf(events.SpaceMembershipExpired{}).String(),
|
||||
Event: events.SpaceMembershipExpired{
|
||||
SpaceOwner: executant.GetId(),
|
||||
GranteeGroupID: &group.GroupId{},
|
||||
SpaceID: &provider.StorageSpaceId{OpaqueId: "spaceid"},
|
||||
SpaceName: "secret space",
|
||||
ExpiredAt: time.Date(2023, 4, 17, 16, 42, 0, 0, time.UTC),
|
||||
},
|
||||
},
|
||||
}, "weekly"),
|
||||
)
|
||||
})
|
||||
|
||||
func buildExpectedTextBodyGrouped(receiver string, events []string) string {
|
||||
body := strings.Join(events, "\n\n\n")
|
||||
return fmt.Sprintf(
|
||||
`Hi %s,
|
||||
|
||||
%s
|
||||
|
||||
|
||||
---
|
||||
ownCloud - Store. Share. Work.
|
||||
https://owncloud.com
|
||||
`, receiver, body)
|
||||
}
|
||||
|
||||
func buildExpectedHTMLBodyGrouped(receiver string, events []string) string {
|
||||
body := strings.Join(events, "<br><br><br>")
|
||||
return fmt.Sprintf(
|
||||
`<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%%">
|
||||
<tr>
|
||||
<td>
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="600px">
|
||||
<tr>
|
||||
<td width="20px"> </td>
|
||||
<td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">
|
||||
Hi %s,
|
||||
<br><br>
|
||||
%s
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="20px"> </td>
|
||||
<td style="font-weight:normal; font-size:0.8em; line-height:1.2em; font-family:verdana,'arial',sans;">
|
||||
<footer>
|
||||
<br>
|
||||
<br>
|
||||
--- <br>
|
||||
ownCloud - Store. Share. Work.<br>
|
||||
<a href="https://owncloud.com">https://owncloud.com</a>
|
||||
</footer>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"> </td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
`, receiver, body)
|
||||
}
|
||||
|
||||
// NOTE: This is explicitly not testing the message itself. Should we?
|
||||
type testChannel struct {
|
||||
expectedReceipients []string
|
||||
expectedSubject string
|
||||
@@ -470,7 +1275,7 @@ type testChannel struct {
|
||||
done chan struct{}
|
||||
}
|
||||
|
||||
func (tc testChannel) SendMessage(ctx context.Context, m *channels.Message) error {
|
||||
func (tc testChannel) SendMessage(_ context.Context, m *channels.Message) error {
|
||||
defer GinkgoRecover()
|
||||
|
||||
Expect(tc.expectedReceipients).To(Equal(m.Recipient))
|
||||
@@ -483,3 +1288,14 @@ func (tc testChannel) SendMessage(ctx context.Context, m *channels.Message) erro
|
||||
tc.done <- struct{}{}
|
||||
return nil
|
||||
}
|
||||
|
||||
type testChannelGroupedStore struct {
|
||||
done chan struct{}
|
||||
}
|
||||
|
||||
func (tc testChannelGroupedStore) SendMessage(_ context.Context, _ *channels.Message) error {
|
||||
defer GinkgoRecover()
|
||||
|
||||
tc.done <- struct{}{}
|
||||
return nil
|
||||
}
|
||||
@@ -160,3 +160,73 @@ func (s eventsNotifier) prepareShareExpired(logger zerolog.Logger, e events.Shar
|
||||
|
||||
return shareFolder, ctx, err
|
||||
}
|
||||
|
||||
func (s eventsNotifier) handleShareRemoved(e events.ShareRemoved, eventId string) {
|
||||
logger := s.logger.With().
|
||||
Str("event", "ShareRemoved").
|
||||
Str("itemid", e.ItemID.OpaqueId).
|
||||
Logger()
|
||||
|
||||
executant, shareFolder, ctx, err := s.prepareShareRemoved(logger, e)
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Msg("could not prepare vars for email")
|
||||
return
|
||||
}
|
||||
|
||||
granteeList := s.ensureGranteeList(ctx, executant.GetId(), e.GranteeUserID, e.GranteeGroupID)
|
||||
filteredGrantees := s.filter.execute(ctx, granteeList, defaults.SettingUUIDProfileEventShareRemoved)
|
||||
|
||||
recipientsInstant, recipientsDaily, recipientsInstantWeekly := s.splitter.execute(ctx, filteredGrantees)
|
||||
recipientsInstant = append(recipientsInstant, s.userEventStore.persist(_intervalDaily, eventId, recipientsDaily)...)
|
||||
recipientsInstant = append(recipientsInstant, s.userEventStore.persist(_intervalWeekly, eventId, recipientsInstantWeekly)...)
|
||||
if recipientsInstant == nil {
|
||||
return
|
||||
}
|
||||
|
||||
sharerDisplayName := executant.GetDisplayName()
|
||||
|
||||
emails, err := s.render(ctx, email.ShareRemoved,
|
||||
"ShareGrantee",
|
||||
map[string]string{
|
||||
"ShareSharer": sharerDisplayName,
|
||||
"ShareFolder": shareFolder,
|
||||
}, recipientsInstant, sharerDisplayName)
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Msg("could not get render the email")
|
||||
return
|
||||
}
|
||||
s.send(ctx, emails)
|
||||
}
|
||||
|
||||
func (s eventsNotifier) prepareShareRemoved(logger zerolog.Logger, e events.ShareRemoved) (executant *user.User, shareFolder string, ctx context.Context, err error) {
|
||||
gatewayClient, err := s.gatewaySelector.Next()
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Msg("could not select next gateway client")
|
||||
return executant, shareFolder, ctx, err
|
||||
}
|
||||
|
||||
ctx, err = utils.GetServiceUserContextWithContext(context.Background(), gatewayClient, s.serviceAccountID, s.serviceAccountSecret)
|
||||
if err != nil {
|
||||
logger.Error().Err(err).Msg("could not get service user context")
|
||||
return executant, shareFolder, ctx, err
|
||||
}
|
||||
|
||||
resourceInfo, err := s.getResourceInfo(ctx, e.ItemID, &fieldmaskpb.FieldMask{Paths: []string{"name"}})
|
||||
if err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Msg("could not stat resource")
|
||||
return executant, shareFolder, ctx, err
|
||||
}
|
||||
shareFolder = resourceInfo.Name
|
||||
|
||||
executant, err = utils.GetUserWithContext(ctx, e.Executant, gatewayClient)
|
||||
if err != nil {
|
||||
logger.Error().
|
||||
Err(err).
|
||||
Msg("could not get user")
|
||||
return executant, shareFolder, ctx, err
|
||||
}
|
||||
|
||||
return executant, shareFolder, ctx, err
|
||||
}
|
||||
@@ -46,7 +46,7 @@ func (d defaultRoleAssigner) UpdateUserRoleAssignment(ctx context.Context, user
|
||||
if user.Id.Type == cs3.UserType_USER_TYPE_PRIMARY || user.Id.Type == cs3.UserType_USER_TYPE_GUEST {
|
||||
roleId := settingsService.BundleUUIDRoleUser
|
||||
if user.Id.Type == cs3.UserType_USER_TYPE_GUEST {
|
||||
roleId = settingsService.BundleUUIDRoleGuest
|
||||
roleId = settingsService.BundleUUIDRoleUserLight
|
||||
}
|
||||
d.logger.Info().Str("userid", user.Id.OpaqueId).Msg("user has no role assigned, assigning default user role")
|
||||
ctx = metadata.Set(ctx, middleware.AccountID, user.Id.OpaqueId)
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
# 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:
|
||||
# de2286e7b84b28568a252c2543472b1e, 2025
|
||||
# Andi Chandler <andi@gowling.com>, 2025
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-25 00:53+0000\n"
|
||||
"PO-Revision-Date: 2025-01-08 11:08+0000\n"
|
||||
"Last-Translator: Andi Chandler <andi@gowling.com>, 2025\n"
|
||||
"Language-Team: English (United Kingdom) (https://app.transifex.com/owncloud-org/teams/6149/en_GB/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"Language: en_GB\n"
|
||||
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||
|
||||
#. name of the notification option 'Space Shared'
|
||||
#: pkg/store/defaults/templates.go:20
|
||||
msgid "Added as space member"
|
||||
msgstr "Added as space member"
|
||||
|
||||
#. translation for the 'daily' email interval option
|
||||
#: pkg/store/defaults/templates.go:50
|
||||
msgid "Daily"
|
||||
msgstr "Daily"
|
||||
|
||||
#. name of the notification option 'Email Interval'
|
||||
#: pkg/store/defaults/templates.go:44
|
||||
msgid "Email sending interval"
|
||||
msgstr "Email sending interval"
|
||||
|
||||
#. name of the notification option 'File Rejected'
|
||||
#: pkg/store/defaults/templates.go:40
|
||||
msgid "File rejected"
|
||||
msgstr "File rejected"
|
||||
|
||||
#. translation for the 'instant' email interval option
|
||||
#: pkg/store/defaults/templates.go:48
|
||||
msgid "Instant"
|
||||
msgstr "Instant"
|
||||
|
||||
#. translation for the 'never' email interval option
|
||||
#: pkg/store/defaults/templates.go:54
|
||||
msgid "Never"
|
||||
msgstr "Never"
|
||||
|
||||
#. description of the notification option 'Space Shared'
|
||||
#: pkg/store/defaults/templates.go:22
|
||||
msgid "Notify when I have been added as a member to a space"
|
||||
msgstr "Notify when I have been added as a member to a space"
|
||||
|
||||
#. description of the notification option 'Space Unshared'
|
||||
#: pkg/store/defaults/templates.go:26
|
||||
msgid "Notify when I have been removed as member from a space"
|
||||
msgstr "Notify when I have been removed as member from a space"
|
||||
|
||||
#. description of the notification option 'Share Received'
|
||||
#: pkg/store/defaults/templates.go:10
|
||||
msgid "Notify when I have received a share"
|
||||
msgstr "Notify when I have received a share"
|
||||
|
||||
#. description of the notification option 'File Rejected'
|
||||
#: pkg/store/defaults/templates.go:42
|
||||
msgid ""
|
||||
"Notify when a file I uploaded was rejected because of a virus infection or "
|
||||
"policy violation"
|
||||
msgstr ""
|
||||
"Notify when a file I uploaded was rejected because of a virus infection or "
|
||||
"policy violation"
|
||||
|
||||
#. description of the notification option 'Share Removed'
|
||||
#: pkg/store/defaults/templates.go:14
|
||||
msgid "Notify when a received share has been removed"
|
||||
msgstr "Notify when a received share has been removed"
|
||||
|
||||
#. description of the notification option 'Share Expired'
|
||||
#: pkg/store/defaults/templates.go:18
|
||||
msgid "Notify when a received share has expired"
|
||||
msgstr "Notify when a received share has expired"
|
||||
|
||||
#. description of the notification option 'Space Deleted'
|
||||
#: pkg/store/defaults/templates.go:38
|
||||
msgid "Notify when a space I am member of has been deleted"
|
||||
msgstr "Notify when a space I am member of has been deleted"
|
||||
|
||||
#. description of the notification option 'Space Disabled'
|
||||
#: pkg/store/defaults/templates.go:34
|
||||
msgid "Notify when a space I am member of has been disabled"
|
||||
msgstr "Notify when a space I am member of has been disabled"
|
||||
|
||||
#. description of the notification option 'Space Membership Expired'
|
||||
#: pkg/store/defaults/templates.go:30
|
||||
msgid "Notify when a space membership has expired"
|
||||
msgstr "Notify when a space membership has expired"
|
||||
|
||||
#. name of the notification option 'Space Unshared'
|
||||
#: pkg/store/defaults/templates.go:24
|
||||
msgid "Removed as space member"
|
||||
msgstr "Removed as space member"
|
||||
|
||||
#. description of the notification option 'Email Interval'
|
||||
#: pkg/store/defaults/templates.go:46
|
||||
msgid "Selected value:"
|
||||
msgstr "Selected value:"
|
||||
|
||||
#. name of the notification option 'Share Expired'
|
||||
#: pkg/store/defaults/templates.go:16
|
||||
msgid "Share Expired"
|
||||
msgstr "Share Expired"
|
||||
|
||||
#. name of the notification option 'Share Received'
|
||||
#: pkg/store/defaults/templates.go:8
|
||||
msgid "Share Received"
|
||||
msgstr "Share Received"
|
||||
|
||||
#. name of the notification option 'Share Removed'
|
||||
#: pkg/store/defaults/templates.go:12
|
||||
msgid "Share Removed"
|
||||
msgstr "Share Removed"
|
||||
|
||||
#. name of the notification option 'Space Deleted'
|
||||
#: pkg/store/defaults/templates.go:36
|
||||
msgid "Space deleted"
|
||||
msgstr "Space deleted"
|
||||
|
||||
#. name of the notification option 'Space Disabled'
|
||||
#: pkg/store/defaults/templates.go:32
|
||||
msgid "Space disabled"
|
||||
msgstr "Space disabled"
|
||||
|
||||
#. name of the notification option 'Space Membership Expired'
|
||||
#: pkg/store/defaults/templates.go:28
|
||||
msgid "Space membership expired"
|
||||
msgstr "Space membership expired"
|
||||
|
||||
#. translation for the 'weekly' email interval option
|
||||
#: pkg/store/defaults/templates.go:52
|
||||
msgid "Weekly"
|
||||
msgstr "Weekly"
|
||||
@@ -14,7 +14,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-09 00:26+0000\n"
|
||||
"POT-Creation-Date: 2025-01-10 00:47+0000\n"
|
||||
"PO-Revision-Date: 2025-01-08 11:08+0000\n"
|
||||
"Last-Translator: Roman Perekhod, 2025\n"
|
||||
"Language-Team: Russian (https://app.transifex.com/owncloud-org/teams/6149/ru/)\n"
|
||||
@@ -54,65 +54,65 @@ msgstr "Сразу"
|
||||
msgid "Never"
|
||||
msgstr "Никогда"
|
||||
|
||||
#. description of the notification option 'Email Interval'
|
||||
#: pkg/store/defaults/templates.go:46
|
||||
msgid "Notifiy me via email:"
|
||||
msgstr "Уведомлять меня по Email:"
|
||||
|
||||
#. description of the notification option 'Space Shared'
|
||||
#: pkg/store/defaults/templates.go:22
|
||||
msgid "Notify me when I am added as a member to a space"
|
||||
msgstr "Уведомить меня, когда я добавлен в пространство в качестве участника"
|
||||
msgid "Notify when I have been added as a member to a space"
|
||||
msgstr "Уведомить, когда я добавлен в качестве участника в пространство"
|
||||
|
||||
#. description of the notification option 'Space Unshared'
|
||||
#: pkg/store/defaults/templates.go:26
|
||||
msgid "Notify me when I am removed as a member from a space"
|
||||
msgstr "Уведомить меня, когда я удалён из участников пространства"
|
||||
msgid "Notify when I have been removed as member from a space"
|
||||
msgstr "Уведомить, когда я удалён из пространства как участник"
|
||||
|
||||
#. description of the notification option 'Share Received'
|
||||
#: pkg/store/defaults/templates.go:10
|
||||
msgid "Notify me when I receive a share"
|
||||
msgstr "Уведомить меня, когда я получаю общий ресурс"
|
||||
msgid "Notify when I have received a share"
|
||||
msgstr "Уведомить, когда я получил общий ресурс"
|
||||
|
||||
#. description of the notification option 'File Rejected'
|
||||
#: pkg/store/defaults/templates.go:42
|
||||
msgid ""
|
||||
"Notify me when a file I uploaded is rejected because of virus infection or "
|
||||
"Notify when a file I uploaded was rejected because of a virus infection or "
|
||||
"policy violation"
|
||||
msgstr ""
|
||||
"Уведомить меня, когда загруженный мною файл отвергнут из-за заражения "
|
||||
"вирусом или нарушения правил"
|
||||
|
||||
#. description of the notification option 'Space Deleted'
|
||||
#: pkg/store/defaults/templates.go:38
|
||||
msgid "Notify me when a space I am a member of is deleted"
|
||||
msgstr "Уведомить меня, когда пространство с моим участием удалено"
|
||||
|
||||
#. description of the notification option 'Space Disabled'
|
||||
#: pkg/store/defaults/templates.go:34
|
||||
msgid "Notify me when a space I am a member of is disabled"
|
||||
msgstr "Уведомить меня, когда пространство с моим участием отключено"
|
||||
|
||||
#. description of the notification option 'Space Membership Expired'
|
||||
#: pkg/store/defaults/templates.go:30
|
||||
msgid "Notify me when my membership of a space expires"
|
||||
msgstr "Уведомить меня, когда моё участие в пространстве истекает"
|
||||
"Уведомить, когда загруженный мною файл отвергнут из-за заражения вирусом или"
|
||||
" нарушения правил"
|
||||
|
||||
#. description of the notification option 'Share Removed'
|
||||
#: pkg/store/defaults/templates.go:14
|
||||
msgid "Notify me when my shares are removed"
|
||||
msgstr "Уведомить меня, когда мои общие ресурсы удалены"
|
||||
msgid "Notify when a received share has been removed"
|
||||
msgstr "Уведомить, когда полученный общий ресурс был удален"
|
||||
|
||||
#. description of the notification option 'Share Expired'
|
||||
#: pkg/store/defaults/templates.go:18
|
||||
msgid "Notify me when my shares expire"
|
||||
msgstr "Уведомить меня, когда мои общие ресурсы истекают"
|
||||
msgid "Notify when a received share has expired"
|
||||
msgstr "Уведомить, когда истек срок действия полученного ресурса"
|
||||
|
||||
#. description of the notification option 'Space Deleted'
|
||||
#: pkg/store/defaults/templates.go:38
|
||||
msgid "Notify when a space I am member of has been deleted"
|
||||
msgstr "Уведомить, когда удалено пространство, в котором я участвую"
|
||||
|
||||
#. description of the notification option 'Space Disabled'
|
||||
#: pkg/store/defaults/templates.go:34
|
||||
msgid "Notify when a space I am member of has been disabled"
|
||||
msgstr "Уведомить, когда удалено пространство, в котором я отключено"
|
||||
|
||||
#. description of the notification option 'Space Membership Expired'
|
||||
#: pkg/store/defaults/templates.go:30
|
||||
msgid "Notify when a space membership has expired"
|
||||
msgstr "Уведомить, когда членство в пространстве истекло"
|
||||
|
||||
#. name of the notification option 'Space Unshared'
|
||||
#: pkg/store/defaults/templates.go:24
|
||||
msgid "Removed as space member"
|
||||
msgstr "Удален из участников пространства"
|
||||
|
||||
#. description of the notification option 'Email Interval'
|
||||
#: pkg/store/defaults/templates.go:46
|
||||
msgid "Selected value:"
|
||||
msgstr "Выбранное значение:"
|
||||
|
||||
#. name of the notification option 'Share Expired'
|
||||
#: pkg/store/defaults/templates.go:16
|
||||
msgid "Share Expired"
|
||||
@@ -141,7 +141,7 @@ msgstr "Пространство отключено"
|
||||
#. name of the notification option 'Space Membership Expired'
|
||||
#: pkg/store/defaults/templates.go:28
|
||||
msgid "Space membership expired"
|
||||
msgstr "Участие в пространстве истекло"
|
||||
msgstr "Срок действия членства в пространстве истек"
|
||||
|
||||
#. translation for the 'weekly' email interval option
|
||||
#: pkg/store/defaults/templates.go:52
|
||||
|
||||
@@ -13,7 +13,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-09 00:26+0000\n"
|
||||
"POT-Creation-Date: 2025-01-10 00:47+0000\n"
|
||||
"PO-Revision-Date: 2025-01-08 11:08+0000\n"
|
||||
"Last-Translator: Roman Perekhod, 2025\n"
|
||||
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
|
||||
@@ -53,65 +53,65 @@ msgstr "Миттєво"
|
||||
msgid "Never"
|
||||
msgstr "Ніколи"
|
||||
|
||||
#. description of the notification option 'Email Interval'
|
||||
#: pkg/store/defaults/templates.go:46
|
||||
msgid "Notifiy me via email:"
|
||||
msgstr "Повідомити мене по ел. пошті:"
|
||||
|
||||
#. description of the notification option 'Space Shared'
|
||||
#: pkg/store/defaults/templates.go:22
|
||||
msgid "Notify me when I am added as a member to a space"
|
||||
msgstr "Повідомте мене, коли мене буде додано як учасника до простору"
|
||||
msgid "Notify when I have been added as a member to a space"
|
||||
msgstr "Повідомити, коли мене додано як учасника до простору"
|
||||
|
||||
#. description of the notification option 'Space Unshared'
|
||||
#: pkg/store/defaults/templates.go:26
|
||||
msgid "Notify me when I am removed as a member from a space"
|
||||
msgstr "Повідомте мене, коли мене буде видалено як учасника з простору"
|
||||
msgid "Notify when I have been removed as member from a space"
|
||||
msgstr "Повідомити, коли мене видалено як учасника з простору"
|
||||
|
||||
#. description of the notification option 'Share Received'
|
||||
#: pkg/store/defaults/templates.go:10
|
||||
msgid "Notify me when I receive a share"
|
||||
msgstr "Повідомте мене, коли я отримаю доступ"
|
||||
msgid "Notify when I have received a share"
|
||||
msgstr "Повідомити, коли я отримв доступ"
|
||||
|
||||
#. description of the notification option 'File Rejected'
|
||||
#: pkg/store/defaults/templates.go:42
|
||||
msgid ""
|
||||
"Notify me when a file I uploaded is rejected because of virus infection or "
|
||||
"Notify when a file I uploaded was rejected because of a virus infection or "
|
||||
"policy violation"
|
||||
msgstr ""
|
||||
"Повідомте мене, коли завантажений мною файл відхилено через вірусну інфекцію"
|
||||
" або порушення правил"
|
||||
|
||||
#. description of the notification option 'Space Deleted'
|
||||
#: pkg/store/defaults/templates.go:38
|
||||
msgid "Notify me when a space I am a member of is deleted"
|
||||
msgstr "Повідомити мене, коли простір, в якому я є учасником, буде видалено"
|
||||
|
||||
#. description of the notification option 'Space Disabled'
|
||||
#: pkg/store/defaults/templates.go:34
|
||||
msgid "Notify me when a space I am a member of is disabled"
|
||||
msgstr "Повідомте мене, коли простір, в якому я є учасником, вимкнено"
|
||||
|
||||
#. description of the notification option 'Space Membership Expired'
|
||||
#: pkg/store/defaults/templates.go:30
|
||||
msgid "Notify me when my membership of a space expires"
|
||||
msgstr "Повідомте мене, коли закінчиться термін мого членства в просторі"
|
||||
"Повідомити, коли завантажений мною файл відхилено через вірусну інфекцію або"
|
||||
" порушення правил"
|
||||
|
||||
#. description of the notification option 'Share Removed'
|
||||
#: pkg/store/defaults/templates.go:14
|
||||
msgid "Notify me when my shares are removed"
|
||||
msgstr "Повідомте мене, коли мої доступи будуть видалені"
|
||||
msgid "Notify when a received share has been removed"
|
||||
msgstr "Повідомити, коли отриманий спільний доступ видалено"
|
||||
|
||||
#. description of the notification option 'Share Expired'
|
||||
#: pkg/store/defaults/templates.go:18
|
||||
msgid "Notify me when my shares expire"
|
||||
msgstr "Повідомте мене, коли закінчиться термін дії моїх доступів"
|
||||
msgid "Notify when a received share has expired"
|
||||
msgstr "Повідомити, коли закінчиться термін дії отриманого спільного доступу"
|
||||
|
||||
#. description of the notification option 'Space Deleted'
|
||||
#: pkg/store/defaults/templates.go:38
|
||||
msgid "Notify when a space I am member of has been deleted"
|
||||
msgstr "Повідомити, коли простір, в якому я є учасником, видалено"
|
||||
|
||||
#. description of the notification option 'Space Disabled'
|
||||
#: pkg/store/defaults/templates.go:34
|
||||
msgid "Notify when a space I am member of has been disabled"
|
||||
msgstr "Повідомити, коли простір, в якому я є учасником, вимкнено"
|
||||
|
||||
#. description of the notification option 'Space Membership Expired'
|
||||
#: pkg/store/defaults/templates.go:30
|
||||
msgid "Notify when a space membership has expired"
|
||||
msgstr "Повідомити мене, коли термін членства в просторі закінчився"
|
||||
|
||||
#. name of the notification option 'Space Unshared'
|
||||
#: pkg/store/defaults/templates.go:24
|
||||
msgid "Removed as space member"
|
||||
msgstr "Видалено як учасника простору"
|
||||
|
||||
#. description of the notification option 'Email Interval'
|
||||
#: pkg/store/defaults/templates.go:46
|
||||
msgid "Selected value:"
|
||||
msgstr "Вибране значення:"
|
||||
|
||||
#. name of the notification option 'Share Expired'
|
||||
#: pkg/store/defaults/templates.go:16
|
||||
msgid "Share Expired"
|
||||
@@ -140,7 +140,7 @@ msgstr "Простір вимкнено"
|
||||
#. name of the notification option 'Space Membership Expired'
|
||||
#: pkg/store/defaults/templates.go:28
|
||||
msgid "Space membership expired"
|
||||
msgstr "Термін дії членства в Просторі закінчився"
|
||||
msgstr "Термін дії членства в просторі закінчився"
|
||||
|
||||
#. translation for the 'weekly' email interval option
|
||||
#: pkg/store/defaults/templates.go:52
|
||||
|
||||
@@ -10,8 +10,9 @@ const (
|
||||
// BundleUUIDRoleUser represents the user role.
|
||||
BundleUUIDRoleUser = "d7beeea8-8ff4-406b-8fb6-ab2dd81e6b11"
|
||||
|
||||
// BundleUUIDRoleGuest represents the guest role.
|
||||
BundleUUIDRoleGuest = "38071a68-456a-4553-846a-fa67bf5596cc"
|
||||
// BundleUUIDRoleUserLight represents the light role.
|
||||
// BundleUUIDRoleGuest has been renamed to BundleUUIDRoleUserLight for consistency reasons
|
||||
BundleUUIDRoleUserLight = "38071a68-456a-4553-846a-fa67bf5596cc"
|
||||
|
||||
// RoleManagementPermissionID is the hardcoded setting UUID for the role management permission
|
||||
RoleManagementPermissionID string = "a53e601e-571f-4f86-8fec-d4576ef49c62"
|
||||
|
||||
@@ -13,6 +13,7 @@ const (
|
||||
// BundleUUIDRoleUser represents the user role.
|
||||
BundleUUIDRoleUser = "d7beeea8-8ff4-406b-8fb6-ab2dd81e6b11"
|
||||
// BundleUUIDRoleUserLight represents the user light role.
|
||||
// BundleUUIDRoleGuest has been renamed to BundleUUIDRoleUserLight for consistency reasons
|
||||
BundleUUIDRoleUserLight = "38071a68-456a-4553-846a-fa67bf5596cc"
|
||||
// BundleUUIDProfile represents the user profile.
|
||||
BundleUUIDProfile = "2a506de7-99bd-4f0d-994e-c38e72c28fd9"
|
||||
@@ -233,6 +234,15 @@ func generateBundleUserLightRole() *settingsmsg.Bundle {
|
||||
AutoAcceptSharesPermission(Own),
|
||||
DisableEmailNotificationsPermission(Own),
|
||||
ProfileEmailSendingIntervalPermission(Own),
|
||||
ProfileEventShareCreatedPermission(Own),
|
||||
ProfileEventShareRemovedPermission(Own),
|
||||
ProfileEventShareExpiredPermission(Own),
|
||||
ProfileEventSpaceSharedPermission(Own),
|
||||
ProfileEventSpaceUnsharedPermission(Own),
|
||||
ProfileEventSpaceMembershipExpiredPermission(Own),
|
||||
ProfileEventSpaceDisabledPermission(Own),
|
||||
ProfileEventSpaceDeletedPermission(Own),
|
||||
ProfileEventPostprocessingStepFinishedPermission(Own),
|
||||
LanguageManagementPermission(Own),
|
||||
},
|
||||
}
|
||||
@@ -318,7 +328,7 @@ func generateBundleProfileRequest() *settingsmsg.Bundle {
|
||||
MultiChoiceCollectionValue: &settingsmsg.MultiChoiceCollection{
|
||||
Options: []*settingsmsg.MultiChoiceCollectionOption{
|
||||
&optionInAppTrue,
|
||||
&optionMailFalseDisabled,
|
||||
&optionMailTrue,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -60,6 +60,8 @@ func (ulf userlogFilter) filterUsersBySettings(ctx context.Context, users []stri
|
||||
settingId = defaults.SettingUUIDProfileEventSpaceDisabled
|
||||
case events.SpaceDeleted:
|
||||
settingId = defaults.SettingUUIDProfileEventSpaceDeleted
|
||||
case events.PostprocessingStepFinished:
|
||||
settingId = defaults.SettingUUIDProfileEventPostprocessingStepFinished
|
||||
default:
|
||||
// event that cannot be disabled
|
||||
return users
|
||||
|
||||
@@ -53,6 +53,7 @@ func TestUserlogFilter_execute(t *testing.T) {
|
||||
{"SpaceMembershipExpired enabled", setupMockValueService(true), args{users: []string{"foo"}, event: events.Event{Event: events.SpaceMembershipExpired{}}, ctx: context.TODO()}, []string{"foo"}},
|
||||
{"SpaceDisabled enabled", setupMockValueService(true), args{users: []string{"foo"}, event: events.Event{Event: events.SpaceDisabled{}}, ctx: context.TODO()}, []string{"foo"}},
|
||||
{"SpaceDeleted enabled", setupMockValueService(true), args{users: []string{"foo"}, event: events.Event{Event: events.SpaceDeleted{}}, ctx: context.TODO()}, []string{"foo"}},
|
||||
{"PostprocessingStepFinished enabled", setupMockValueService(true), args{users: []string{"foo"}, event: events.Event{Event: events.PostprocessingStepFinished{}}, ctx: context.TODO()}, []string{"foo"}},
|
||||
{"ShareCreated disabled", setupMockValueService(false), args{users: []string{"foo"}, event: events.Event{Event: events.ShareCreated{}}, ctx: context.TODO()}, []string(nil)},
|
||||
{"ShareRemoved disabled", setupMockValueService(false), args{users: []string{"foo"}, event: events.Event{Event: events.ShareRemoved{}}, ctx: context.TODO()}, []string(nil)},
|
||||
{"ShareExpired disabled", setupMockValueService(false), args{users: []string{"foo"}, event: events.Event{Event: events.ShareExpired{}}, ctx: context.TODO()}, []string(nil)},
|
||||
@@ -61,6 +62,7 @@ func TestUserlogFilter_execute(t *testing.T) {
|
||||
{"SpaceMembershipExpired disabled", setupMockValueService(false), args{users: []string{"foo"}, event: events.Event{Event: events.SpaceMembershipExpired{}}, ctx: context.TODO()}, []string(nil)},
|
||||
{"SpaceDisabled disabled", setupMockValueService(false), args{users: []string{"foo"}, event: events.Event{Event: events.SpaceDisabled{}}, ctx: context.TODO()}, []string(nil)},
|
||||
{"SpaceDeleted disabled", setupMockValueService(false), args{users: []string{"foo"}, event: events.Event{Event: events.SpaceDeleted{}}, ctx: context.TODO()}, []string(nil)},
|
||||
{"PostprocessingStepFinished disabled", setupMockValueService(false), args{users: []string{"foo"}, event: events.Event{Event: events.PostprocessingStepFinished{}}, ctx: context.TODO()}, []string(nil)},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Martin Zhekov <martin03staff@gmail.com>, 2023\n"
|
||||
"Language-Team: Bulgarian (Bulgaria) (https://app.transifex.com/owncloud-org/teams/6149/bg_BG/)\n"
|
||||
|
||||
@@ -14,7 +14,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Michael Barz <mbarz@owncloud.com>, 2023\n"
|
||||
"Language-Team: German (https://app.transifex.com/owncloud-org/teams/6149/de/)\n"
|
||||
|
||||
@@ -13,7 +13,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Edith Parzefall, 2024\n"
|
||||
"Language-Team: German (Germany) (https://app.transifex.com/owncloud-org/teams/6149/de_DE/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Andi Chandler <andi@gowling.com>, 2023\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: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Juan Carlos Garrote, 2023\n"
|
||||
"Language-Team: Spanish (https://app.transifex.com/owncloud-org/teams/6149/es/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Hugo Blackwood, 2023\n"
|
||||
"Language-Team: Korean (https://app.transifex.com/owncloud-org/teams/6149/ko/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Flávio Veras <flaviove@gmail.com>, 2023\n"
|
||||
"Language-Team: Portuguese (Brazil) (https://app.transifex.com/owncloud-org/teams/6149/pt_BR/)\n"
|
||||
|
||||
@@ -14,7 +14,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-04 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-24 00:55+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: dutty5, 2024\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: 2025-01-04 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-24 00:55+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: dutty5, 2024\n"
|
||||
"Language-Team: Russian (Russia) (https://app.transifex.com/owncloud-org/teams/6149/ru_RU/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Besnik Bleta <besnik@programeshqip.org>, 2023\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: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Begüm Topyıldız <bgmtpyldz@gmail.com>, 2023\n"
|
||||
"Language-Team: Turkish (https://app.transifex.com/owncloud-org/teams/6149/tr/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-05 00:05+0000\n"
|
||||
"POT-Creation-Date: 2025-01-25 00:53+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Keram, 2024\n"
|
||||
"Language-Team: Uyghur (https://app.transifex.com/owncloud-org/teams/6149/ug/)\n"
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
# Translators:
|
||||
# Roman Perekhod, 2024
|
||||
# Roman Perekhod, 2025
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2025-01-06 00:03+0000\n"
|
||||
"POT-Creation-Date: 2025-01-25 00:53+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Roman Perekhod, 2024\n"
|
||||
"Last-Translator: Roman Perekhod, 2025\n"
|
||||
"Language-Team: Ukrainian (https://app.transifex.com/owncloud-org/teams/6149/uk/)\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
@@ -64,7 +64,7 @@ msgstr "Спільний доступ до ресурсу надано"
|
||||
|
||||
#: pkg/service/templates.go:48
|
||||
msgid "Resource unshared"
|
||||
msgstr "Спільний доступ до ресурсу вилучено"
|
||||
msgstr "Спільний доступ до ресурсу скасовано"
|
||||
|
||||
#: pkg/service/templates.go:53
|
||||
msgid "Share expired"
|
||||
@@ -112,4 +112,4 @@ msgstr "{user} поділився {resource} з вами"
|
||||
|
||||
#: pkg/service/templates.go:49
|
||||
msgid "{user} unshared {resource} with you"
|
||||
msgstr "{user} вилучив спільний доступ до {resource} для вас"
|
||||
msgstr "{user} скасував спільний доступ до {resource} для вас"
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: fnoopv <fnoopv@outlook.com>, 2024\n"
|
||||
"Language-Team: Chinese Simplified (https://app.transifex.com/owncloud-org/teams/6149/zh-Hans/)\n"
|
||||
|
||||
@@ -11,7 +11,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: \n"
|
||||
"Report-Msgid-Bugs-To: EMAIL\n"
|
||||
"POT-Creation-Date: 2024-12-22 00:18+0000\n"
|
||||
"POT-Creation-Date: 2025-01-11 00:27+0000\n"
|
||||
"PO-Revision-Date: 2023-03-15 08:28+0000\n"
|
||||
"Last-Translator: Shouyuan, 2023\n"
|
||||
"Language-Team: Chinese (China) (https://app.transifex.com/owncloud-org/teams/6149/zh_CN/)\n"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
SHELL := bash
|
||||
NAME := web
|
||||
WEB_ASSETS_VERSION = v11.1.0
|
||||
WEB_ASSETS_VERSION = v11.1.2
|
||||
|
||||
include ../../.make/recursion.mk
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sonar.projectKey=owncloud_ocis
|
||||
sonar.organization=owncloud-1
|
||||
sonar.projectName=ocis
|
||||
sonar.projectVersion=7.1.0-rc.1
|
||||
sonar.projectVersion=7.1.0-rc.3
|
||||
sonar.host.url=https://sonarcloud.io
|
||||
|
||||
# =====================================================
|
||||
|
||||
@@ -30,6 +30,8 @@ use Psr\Http\Message\ResponseInterface;
|
||||
* A helper class for managing emails
|
||||
*/
|
||||
class EmailHelper {
|
||||
public const MAILBOX_ENDPOINT = "/api/v1/mailbox";
|
||||
|
||||
/**
|
||||
* @param string $emailAddress
|
||||
*
|
||||
@@ -93,14 +95,33 @@ class EmailHelper {
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public static function getMailBoxInformation(string $mailBox, ?string $xRequestId = null): array {
|
||||
$url = self::getLocalEmailUrl() . self::MAILBOX_ENDPOINT . "/$mailBox";
|
||||
$headers = ['Content-Type' => 'application/json'];
|
||||
$response = HttpRequestHelper::get(
|
||||
self::getLocalEmailUrl() . "/api/v1/mailbox/" . $mailBox,
|
||||
$url,
|
||||
$xRequestId,
|
||||
null,
|
||||
null,
|
||||
['Content-Type' => 'application/json']
|
||||
$headers
|
||||
);
|
||||
return \json_decode($response->getBody()->getContents());
|
||||
|
||||
$emails = \json_decode($response->getBody()->getContents());
|
||||
if (empty($emails)) {
|
||||
echo "[INFO] Mailbox is empty...\n";
|
||||
// Wait for 1 second and try again
|
||||
// the mailbox might not be created yet
|
||||
sleep(1);
|
||||
$response = HttpRequestHelper::get(
|
||||
$url,
|
||||
$xRequestId,
|
||||
null,
|
||||
null,
|
||||
$headers
|
||||
);
|
||||
$emails = \json_decode($response->getBody()->getContents());
|
||||
}
|
||||
|
||||
return $emails;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -119,7 +140,7 @@ class EmailHelper {
|
||||
?string $xRequestId = null
|
||||
): object {
|
||||
$response = HttpRequestHelper::get(
|
||||
self::getLocalEmailUrl() . "/api/v1/mailbox/" . $mailBox . "/" . $mailboxId,
|
||||
self::getLocalEmailUrl() . self::MAILBOX_ENDPOINT . "/$mailBox/$mailboxId",
|
||||
$xRequestId,
|
||||
null,
|
||||
null,
|
||||
@@ -184,7 +205,7 @@ class EmailHelper {
|
||||
string $mailBox
|
||||
): ResponseInterface {
|
||||
return HttpRequestHelper::delete(
|
||||
$localInbucketUrl . "/api/v1/mailbox/" . $mailBox,
|
||||
$localInbucketUrl . self::MAILBOX_ENDPOINT . "/$mailBox",
|
||||
$xRequestId
|
||||
);
|
||||
}
|
||||
|
||||
@@ -46,6 +46,15 @@ class GraphHelper {
|
||||
'Denied' => '63e64e19-8d43-42ec-a738-2b6af2610efa',
|
||||
];
|
||||
|
||||
public const SHARING_LINK_TYPE_MAPPINGS = [
|
||||
'View' => 'view',
|
||||
'Internal' => 'internal',
|
||||
'Edit' => 'edit',
|
||||
'Upload' => 'upload',
|
||||
'File Drop' => 'createOnly',
|
||||
'Secure View' => 'blocksDownload',
|
||||
];
|
||||
|
||||
public const SHARES_SPACE_ID = 'a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668';
|
||||
|
||||
/**
|
||||
|
||||
@@ -380,6 +380,40 @@ class NotificationContext implements Context {
|
||||
return $filteredNotifications;
|
||||
}
|
||||
|
||||
/**
|
||||
* filter notification according to subject and space
|
||||
*
|
||||
* @param string $subject
|
||||
* @param string $space
|
||||
* @param ResponseInterface|null $response
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function filterNotificationsBySubjectAndSpace(
|
||||
string $subject,
|
||||
string $space,
|
||||
?ResponseInterface $response = null
|
||||
): array {
|
||||
$filteredNotifications = [];
|
||||
$response = $response ?? $this->featureContext->getResponse();
|
||||
$responseObject = $this->featureContext->getJsonDecodedResponseBodyContent($response);
|
||||
if (!isset($responseObject->ocs->data)) {
|
||||
Assert::fail("Response doesn't contain notification: " . print_r($responseObject, true));
|
||||
}
|
||||
|
||||
$notifications = $responseObject->ocs->data;
|
||||
foreach ($notifications as $notification) {
|
||||
if (isset($notification->subject) && $notification->subject === $subject
|
||||
&& isset($notification->messageRichParameters->space->name)
|
||||
&& $notification->messageRichParameters->space->name === $space
|
||||
) {
|
||||
$this->notificationIds[] = $notification->notification_id;
|
||||
$filteredNotifications[] = $notification;
|
||||
}
|
||||
}
|
||||
return $filteredNotifications;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^user "([^"]*)" should (?:get|have) a notification with subject "([^"]*)" and message:$/
|
||||
*
|
||||
@@ -466,21 +500,27 @@ class NotificationContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then user :user should not have a notification related to resource :resource with subject :subject
|
||||
* @Then /^user "([^"]*)" should not have a notification related to (resource|space) "([^"]*)" with subject "([^"]*)"$/
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $resourceOrSpace
|
||||
* @param string $resource
|
||||
* @param string $subject
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userShouldNotHaveANotificationRelatedToResourceWithSubject(
|
||||
public function userShouldNotHaveANotificationRelatedToResourceOrSpaceWithSubject(
|
||||
string $user,
|
||||
string $resourceOrSpace,
|
||||
string $resource,
|
||||
string $subject
|
||||
): void {
|
||||
$response = $this->listAllNotifications($user);
|
||||
$filteredResponse = $this->filterNotificationsBySubjectAndResource($subject, $resource, $response);
|
||||
if ($resourceOrSpace === "space") {
|
||||
$filteredResponse = $this->filterNotificationsBySubjectAndSpace($subject, $resource, $response);
|
||||
} else {
|
||||
$filteredResponse = $this->filterNotificationsBySubjectAndResource($subject, $resource, $response);
|
||||
}
|
||||
Assert::assertCount(
|
||||
0,
|
||||
$filteredResponse,
|
||||
@@ -555,6 +595,22 @@ class NotificationContext implements Context {
|
||||
$this->assertEmailContains($user, $expectedEmailBodyContent);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then user :user should have :count emails
|
||||
*
|
||||
* @param string $user
|
||||
* @param int $count
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userShouldHaveEmail(string $user, int $count): void {
|
||||
$address = $this->featureContext->getEmailAddressForUser($user);
|
||||
$this->featureContext->pushEmailRecipientAsMailBox($address);
|
||||
$mailBox = EmailHelper::getMailBoxFromEmail($address);
|
||||
$mailboxResponse = EmailHelper::getMailboxInformation($mailBox, $this->featureContext->getStepLineRef());
|
||||
Assert::assertCount($count, $mailboxResponse);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then user :user should have received the following email from user :sender ignoring whitespaces
|
||||
*
|
||||
|
||||
@@ -105,7 +105,7 @@ class OcisConfigContext implements Context {
|
||||
$roleId = GraphHelper::getPermissionsRoleIdByName($role);
|
||||
$defaultRoles = array_values(GraphHelper::DEFAULT_PERMISSIONS_ROLES);
|
||||
|
||||
if (!\in_array($role, $defaultRoles)) {
|
||||
if (!\in_array($roleId, $defaultRoles)) {
|
||||
$defaultRoles[] = $roleId;
|
||||
}
|
||||
$envs = [
|
||||
|
||||
@@ -553,4 +553,93 @@ class SettingsContext implements Context {
|
||||
$this->featureContext->setResponse($response);
|
||||
$this->featureContext->rememberUserAutoSyncSetting($user, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When user :user disables email notification using the settings API
|
||||
*
|
||||
* @param string $user
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userDisablesEmailNotificationUsingTheSettingsAPI(string $user): void {
|
||||
$body = $this->getBodyForNotificationSetting($user, "Disable Email Notifications");
|
||||
$body["value"]["boolValue"] = true;
|
||||
$response = SettingsHelper::updateSettings(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getActualUsername($user),
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
json_encode($body),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
);
|
||||
$this->featureContext->setResponse($response);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $user
|
||||
* @param string $event
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getBodyForNotificationSetting(string $user, string $event): array {
|
||||
$settingsValues = (json_decode(
|
||||
SettingsHelper::getBundlesList(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getActualUsername($user),
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
)->getBody()->getContents()
|
||||
));
|
||||
foreach ($settingsValues->bundles[0]->settings as $settingsValue) {
|
||||
if ($settingsValue->displayName === $event) {
|
||||
return [
|
||||
"value" => [
|
||||
"account_uuid" => "me",
|
||||
"bundleId" => $settingsValues->bundles[0]->id,
|
||||
"settingId" => $settingsValue->id,
|
||||
"resource" => [
|
||||
"type" => $settingsValue->resource->type
|
||||
],
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
||||
throw new Exception("'$event' not found in the setting list");
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^user "([^"]*)" (disables|enables) notification for the following events using the settings API:$/
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $enableOrDisable
|
||||
* @param TableNode $table
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userDisablesNotificationForFollowingEventUsingSettingsApi(
|
||||
string $user,
|
||||
string $enableOrDisable,
|
||||
TableNode $table
|
||||
): void {
|
||||
$settings = $table->getRowsHash();
|
||||
Assert::assertCount(1, $settings, "only 1 event should be provided");
|
||||
foreach ($settings as $event => $value) {
|
||||
$body = $this->getBodyForNotificationSetting($user, $event);
|
||||
if (str_contains($value, "mail")) {
|
||||
$body["value"]["collectionValue"]["values"][]
|
||||
= ["key" => "mail","boolValue" => $enableOrDisable === "enables"];
|
||||
}
|
||||
if (str_contains($value, "in-app")) {
|
||||
$body["value"]["collectionValue"]["values"][]
|
||||
= ["key" => "in-app","boolValue" => $enableOrDisable === "enables"];
|
||||
}
|
||||
$response = SettingsHelper::updateSettings(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getActualUsername($user),
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
json_encode($body),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
);
|
||||
$this->featureContext->setResponse($response);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -90,8 +90,11 @@ class SharingNgContext implements Context {
|
||||
$bodyRows['expirationDateTime'] = \array_key_exists('expirationDateTime', $bodyRows)
|
||||
? \date('Y-m-d', \strtotime($bodyRows['expirationDateTime'])) . 'T14:00:00.000Z' : null;
|
||||
$bodyRows['password'] = $bodyRows['password'] ?? null;
|
||||
$permissionsRole = $bodyRows['permissionsRole'];
|
||||
|
||||
$type = GraphHelper::SHARING_LINK_TYPE_MAPPINGS[$permissionsRole] ?? $permissionsRole;
|
||||
$body = [
|
||||
'type' => $bodyRows['permissionsRole'],
|
||||
'type' => $type,
|
||||
"@libre.graph.quickLink" => filter_var($bodyRows['quickLink'], FILTER_VALIDATE_BOOLEAN),
|
||||
'displayName' => $bodyRows['displayName'],
|
||||
'expirationDateTime' => $bodyRows['expirationDateTime'],
|
||||
@@ -124,12 +127,14 @@ class SharingNgContext implements Context {
|
||||
$space = $bodyRows['space'];
|
||||
|
||||
$spaceId = ($this->spacesContext->getSpaceByName($user, $space))["id"];
|
||||
$permissionsRole = $bodyRows['permissionsRole'];
|
||||
$bodyRows['quickLink'] = $bodyRows['quickLink'] ?? false;
|
||||
$bodyRows['displayName'] = $bodyRows['displayName'] ?? null;
|
||||
$bodyRows['expirationDateTime'] = $bodyRows['expirationDateTime'] ?? null;
|
||||
$bodyRows['password'] = $bodyRows['password'] ?? null;
|
||||
$type = GraphHelper::SHARING_LINK_TYPE_MAPPINGS[$permissionsRole] ?? $permissionsRole;
|
||||
$body = [
|
||||
'type' => $bodyRows['permissionsRole'],
|
||||
'type' => $type,
|
||||
"@libre.graph.quickLink" => filter_var($bodyRows['quickLink'], FILTER_VALIDATE_BOOLEAN),
|
||||
'displayName' => $bodyRows['displayName'],
|
||||
'expirationDateTime' => $bodyRows['expirationDateTime'],
|
||||
@@ -842,7 +847,7 @@ class SharingNgContext implements Context {
|
||||
$body = [];
|
||||
|
||||
if (\array_key_exists('permissionsRole', $bodyRows)) {
|
||||
$body['link']['type'] = $bodyRows['permissionsRole'];
|
||||
$body['link']['type'] = GraphHelper::SHARING_LINK_TYPE_MAPPINGS[$bodyRows['permissionsRole']];
|
||||
}
|
||||
|
||||
if (\array_key_exists('expirationDateTime', $bodyRows)) {
|
||||
@@ -2067,13 +2072,17 @@ class SharingNgContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then the json response should contain the following shares:
|
||||
* @Then /^the json response (should|should not) contain the following shares:$/
|
||||
*
|
||||
* @param string $shouldOrNot
|
||||
* @param TableNode $table
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function theJsonResponseShouldContainTheFollowingShares(TableNode $table): void {
|
||||
public function theJsonResponseShouldOrShouldNotContainTheFollowingShares(
|
||||
string $shouldOrNot,
|
||||
TableNode $table
|
||||
): void {
|
||||
$responseBody = $this->featureContext->getJsonDecodedResponseBodyContent();
|
||||
|
||||
$resourceNames = [];
|
||||
@@ -2088,10 +2097,17 @@ class SharingNgContext implements Context {
|
||||
$expectedShares = $table->getColumn(0);
|
||||
|
||||
foreach ($expectedShares as $expectedShare) {
|
||||
Assert::assertTrue(
|
||||
\in_array($expectedShare, $resourceNames),
|
||||
"The share '$expectedShare' was not found in the response."
|
||||
);
|
||||
if ($shouldOrNot === "should not") {
|
||||
Assert::assertFalse(
|
||||
\in_array($expectedShare, $resourceNames),
|
||||
"The share '$expectedShare' was found in the response."
|
||||
);
|
||||
} else {
|
||||
Assert::assertTrue(
|
||||
\in_array($expectedShare, $resourceNames),
|
||||
"The share '$expectedShare' was not found in the response."
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2119,4 +2135,29 @@ class SharingNgContext implements Context {
|
||||
$this->getPermissionsList($user, $fileOrFolder, $space, $resource, $query)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @When /^user "([^"]*)" lists permissions with following filters for (folder|file) "([^"]*)" of the space "([^"]*)" using the Graph API:$/
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $fileOrFolder (file|folder)
|
||||
* @param string $resource
|
||||
* @param string $space
|
||||
* @param TableNode $table
|
||||
*
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function userListsPermissionsWithFollowingFiltersForFileOrFolderOfTheSpaceUsingTheGraphApi(
|
||||
string $user,
|
||||
string $fileOrFolder,
|
||||
string $resource,
|
||||
string $space,
|
||||
TableNode $table
|
||||
): void {
|
||||
$query = implode('&', $table->getColumn(0));
|
||||
$this->featureContext->setResponse(
|
||||
$this->getPermissionsList($user, $fileOrFolder, $space, $resource, $query)
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -359,6 +359,9 @@ default:
|
||||
- FeatureContext: *common_feature_context_params
|
||||
- GraphContext:
|
||||
- SettingsContext:
|
||||
- SharingNgContext:
|
||||
- NotificationContext:
|
||||
- OcisConfigContext:
|
||||
|
||||
apiSharingNgShareInvitation:
|
||||
paths:
|
||||
@@ -368,6 +371,7 @@ default:
|
||||
- FeatureContext: *common_feature_context_params
|
||||
- SpacesContext:
|
||||
- SharingNgContext:
|
||||
- OcisConfigContext:
|
||||
|
||||
apiSharingNgLinkSharePermission:
|
||||
paths:
|
||||
|
||||
@@ -21,11 +21,9 @@ The expected failures in this file are from features in the owncloud/ocis repo.
|
||||
|
||||
#### [Settings service user can list other peoples assignments](https://github.com/owncloud/ocis/issues/5032)
|
||||
|
||||
- [apiAccountsHashDifficulty/assignRole.feature:27](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAccountsHashDifficulty/assignRole.feature#L27)
|
||||
- [apiAccountsHashDifficulty/assignRole.feature:28](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiAccountsHashDifficulty/assignRole.feature#L28)
|
||||
- [apiGraph/getAssignedRole.feature:31](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiGraph/getAssignedRole.feature#L31)
|
||||
- [apiGraph/getAssignedRole.feature:32](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiGraph/getAssignedRole.feature#L32)
|
||||
- [apiGraph/getAssignedRole.feature:33](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiGraph/getAssignedRole.feature#L33)
|
||||
- [apiSettings/settings.feature:116](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSettings/settings.feature#L116)
|
||||
- [apiSettings/settings.feature:117](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSettings/settings.feature#L117)
|
||||
- [apiSettings/settings.feature:118](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiSettings/settings.feature#L118)
|
||||
|
||||
#### [A User can get information of another user with Graph API](https://github.com/owncloud/ocis/issues/5125)
|
||||
|
||||
|
||||
@@ -4,35 +4,35 @@ Feature: assign role
|
||||
So that I can provide them different authority
|
||||
|
||||
|
||||
Scenario Outline: only admin user can see all existing roles
|
||||
Scenario Outline: user can see all existing roles
|
||||
Given user "Alice" has been created with default attributes
|
||||
And the administrator has given "Alice" the role "<user-role>" using the settings api
|
||||
When user "Alice" tries to get all existing roles using the settings API
|
||||
When user "Alice" gets all applications using the Graph API
|
||||
Then the HTTP status code should be "<http-status-code>"
|
||||
Examples:
|
||||
| user-role | http-status-code |
|
||||
| Admin | 201 |
|
||||
| Space Admin | 201 |
|
||||
| User | 201 |
|
||||
| Admin | 200 |
|
||||
| Space Admin | 200 |
|
||||
| User | 200 |
|
||||
|
||||
|
||||
@issue-5032
|
||||
Scenario Outline: only admin user can see assignments list
|
||||
Given user "Alice" has been created with default attributes
|
||||
And the administrator has given "Alice" the role "<user-role>" using the settings api
|
||||
When user "Alice" tries to get list of assignment using the settings API
|
||||
When user "Alice" tries to get the assigned role of user "Alice" using the Graph API
|
||||
Then the HTTP status code should be "<http-status-code>"
|
||||
Examples:
|
||||
| user-role | http-status-code |
|
||||
| Admin | 201 |
|
||||
| Space Admin | 401 |
|
||||
| User | 401 |
|
||||
| Admin | 200 |
|
||||
| Space Admin | 403 |
|
||||
| User | 403 |
|
||||
|
||||
|
||||
Scenario Outline: a user cannot change own role
|
||||
Given user "Alice" has been created with default attributes
|
||||
And the administrator has given "Alice" the role "<user-role>" using the settings api
|
||||
When user "Alice" changes his own role to "<desired-role>"
|
||||
Then the HTTP status code should be "400"
|
||||
When user "Alice" tries to change the role of user "Alice" to role "<desired-role>" using the Graph API
|
||||
Then the HTTP status code should be "403"
|
||||
And user "Alice" should have the role "<user-role>"
|
||||
Examples:
|
||||
| user-role | desired-role |
|
||||
@@ -50,7 +50,7 @@ Feature: assign role
|
||||
| Alice |
|
||||
| Brian |
|
||||
And the administrator has given "Alice" the role "<user-role>" using the settings api
|
||||
When user "Alice" changes the role "<desired-role>" for user "Brian"
|
||||
When user "Alice" changes the role of user "Brian" to role "<desired-role>" using the Graph API
|
||||
Then the HTTP status code should be "<http-status-code>"
|
||||
And user "Brian" should have the role "<expected-role>"
|
||||
Examples:
|
||||
@@ -58,7 +58,7 @@ Feature: assign role
|
||||
| Admin | User | 201 | User |
|
||||
| Admin | Space Admin | 201 | Space Admin |
|
||||
| Admin | Admin | 201 | Admin |
|
||||
| Space Admin | Admin | 400 | User |
|
||||
| Space Admin | Space Admin | 400 | User |
|
||||
| User | Admin | 400 | User |
|
||||
| User | Space Admin | 400 | User |
|
||||
| Space Admin | Admin | 403 | User |
|
||||
| Space Admin | Space Admin | 403 | User |
|
||||
| User | Admin | 403 | User |
|
||||
| User | Space Admin | 403 | User |
|
||||
@@ -273,7 +273,7 @@ Feature: check share activity
|
||||
Given user "Alice" has created the following resource link share:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
When user "Alice" lists the activities of file "textfile.txt" from space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -378,7 +378,7 @@ Feature: check share activity
|
||||
Given user "Alice" has created the following resource link share:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
And user "Alice" has removed the last link share of file "textfile.txt" from space "Personal"
|
||||
When user "Alice" lists the activities of file "textfile.txt" from space "Personal" using the Graph API
|
||||
@@ -1067,11 +1067,11 @@ Feature: check share activity
|
||||
And user "Alice" has created a space "new-space" with the default quota using the Graph API
|
||||
And user "Alice" has created the following space link share:
|
||||
| space | new-space |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
And user "Alice" has updated the last resource link share with
|
||||
| space | new-space |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| expirationDateTime | 2200-07-15T14:00:00.000Z |
|
||||
And user "Alice" has set the following password for the last link share:
|
||||
| resource | |
|
||||
@@ -1543,12 +1543,12 @@ Feature: check share activity
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | textfile.txt |
|
||||
| space | new-space |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
And user "Alice" has updated the last resource link share with
|
||||
| resource | textfile.txt |
|
||||
| space | new-space |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| expirationDateTime | 2200-07-15T14:00:00.000Z |
|
||||
And user "Alice" has set the following password for the last link share:
|
||||
| resource | textfile.txt |
|
||||
@@ -1849,11 +1849,11 @@ Feature: check share activity
|
||||
And user "Alice" has created a space "new-space" with the default quota using the Graph API
|
||||
And user "Alice" has created the following space link share:
|
||||
| space | new-space |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
And user "Alice" has updated the last resource link share with
|
||||
| space | new-space |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| expirationDateTime | 2200-07-15T14:00:00.000Z |
|
||||
And user "Alice" has set the following password for the last link share:
|
||||
| resource | |
|
||||
@@ -1871,12 +1871,12 @@ Feature: check share activity
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | textfile.txt |
|
||||
| space | new-space |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
And user "Alice" has updated the last resource link share with
|
||||
| resource | textfile.txt |
|
||||
| space | new-space |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| expirationDateTime | 2200-07-15T14:00:00.000Z |
|
||||
And user "Alice" has set the following password for the last link share:
|
||||
| resource | textfile.txt |
|
||||
@@ -1894,12 +1894,12 @@ Feature: check share activity
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | project-folder |
|
||||
| space | new-space |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
And user "Alice" has updated the last resource link share with
|
||||
| resource | project-folder |
|
||||
| space | new-space |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| expirationDateTime | 2200-07-15T14:00:00.000Z |
|
||||
And user "Alice" has set the following password for the last link share:
|
||||
| resource | project-folder |
|
||||
@@ -1958,7 +1958,7 @@ Feature: check share activity
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| password | %public% |
|
||||
And the public has uploaded file "textfile.txt" with content "public test" and password "%public%" to the last link share using the public WebDAV API
|
||||
When user "Alice" lists the activities of file "textfile.txt" from space "Personal" using the Graph API
|
||||
@@ -2098,7 +2098,7 @@ Feature: check share activity
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | /FOLDER |
|
||||
| space | Personal |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| password | %public% |
|
||||
And the public has uploaded file "text.txt" with content "added by public user" and password "%public%" to the last link share using the public WebDAV API
|
||||
And the public has uploaded file "text.txt" with content "updated by public user" and password "%public%" to the last link share using the public WebDAV API
|
||||
|
||||
@@ -101,7 +101,7 @@ Feature: antivirus
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | uploadFolder |
|
||||
| space | Personal |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| expirationDateTime | 2040-01-01T23:59:59.000Z |
|
||||
When the public uploads file "filesForUpload/filesWithVirus/<file-name>" to "<new-file-name>" inside last link shared folder using the public WebDAV API
|
||||
Then the HTTP status code should be "201"
|
||||
@@ -126,7 +126,7 @@ Feature: antivirus
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | uploadFolder |
|
||||
| space | Personal |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| password | %public% |
|
||||
| expirationDateTime | 2040-01-01T23:59:59.000Z |
|
||||
When the public uploads file "filesForUpload/filesWithVirus/<file-name>" to "<new-file-name>" inside last link shared folder with password "%public%" using the public WebDAV API
|
||||
@@ -344,7 +344,7 @@ Feature: antivirus
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | test.txt |
|
||||
| space | Personal |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
When the public overwrites file "test.txt" with content "X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*" using the public WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And user "Alice" should get a notification with subject "Virus found" and message:
|
||||
|
||||
@@ -181,7 +181,7 @@ Feature: collaboration (wopi)
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | simple.odt |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
When the public sends HTTP method "POST" to URL "<app-endpoint>" with password "%public%"
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -411,7 +411,7 @@ Feature: collaboration (wopi)
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | simple.odt |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
When the public sends HTTP method "POST" to URL "<app-endpoint>" with password "%public%"
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -953,9 +953,9 @@ Feature: collaboration (wopi)
|
||||
And as "Alice" file "publicFolder/simple.odt" should exist
|
||||
Examples:
|
||||
| permissions-role |
|
||||
| edit |
|
||||
| upload |
|
||||
| createOnly |
|
||||
| Edit |
|
||||
| Upload |
|
||||
| File Drop |
|
||||
|
||||
@issue-10126 @issue-10331
|
||||
Scenario: public user with permission view tries to creates odt file inside public folder using wopi endpoint
|
||||
@@ -963,7 +963,7 @@ Feature: collaboration (wopi)
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | publicFolder |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
When the public tries to create a file "simple.odt" inside the last shared public link folder with password "%public%" using wopi endpoint
|
||||
Then the HTTP status code should be "403"
|
||||
@@ -1044,9 +1044,9 @@ Feature: collaboration (wopi)
|
||||
| simple.odt |
|
||||
Examples:
|
||||
| permissions-role |
|
||||
| edit |
|
||||
| upload |
|
||||
| createOnly |
|
||||
| Edit |
|
||||
| Upload |
|
||||
| File Drop |
|
||||
|
||||
@issue-8691 @issue-10126 @issue-10331
|
||||
Scenario: public user with permission view tries to create odt file inside folder of public space using wopi endpoint
|
||||
@@ -1056,7 +1056,7 @@ Feature: collaboration (wopi)
|
||||
And user "Alice" has created a folder "testFolder" in space "new-space"
|
||||
And user "Alice" has created the following space link share:
|
||||
| space | new-space |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
When the public tries to create a file "simple.odt" inside folder "testFolder" in the last shared public link space with password "%public%" using wopi endpoint
|
||||
Then the HTTP status code should be "403"
|
||||
|
||||
@@ -98,16 +98,6 @@ Feature: CORS headers
|
||||
| new |
|
||||
| spaces |
|
||||
|
||||
|
||||
Scenario: CORS headers should be returned when setting CORS domain sending origin header in the settings api
|
||||
When user "Alice" lists values-list with headers using the Settings API
|
||||
| header | value |
|
||||
| Origin | https://aphno.badal |
|
||||
Then the HTTP status code should be "201"
|
||||
And the following headers should be set
|
||||
| header | value |
|
||||
| Access-Control-Allow-Origin | https://aphno.badal |
|
||||
|
||||
@issue-8380
|
||||
Scenario: CORS headers should be returned when uploading file using Tus and when CORS domain sending origin header in the Webdav api
|
||||
Given user "Alice" has created a new TUS resource in the space "Personal" with the following headers:
|
||||
|
||||
@@ -80,7 +80,7 @@ Feature: PROPFIND with depth:infinity
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | simple-folder |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
When the public lists the resources in the last created public link with depth "infinity" using the WebDAV API
|
||||
Then the HTTP status code should be "207"
|
||||
And the last public link DAV response should contain these nodes
|
||||
@@ -130,7 +130,7 @@ Feature: PROPFIND with depth:infinity
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | simple-folder |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
When the public lists the resources in the last created public link with depth "infinity" using the WebDAV API
|
||||
Then the HTTP status code should be "400"
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ Feature: enforce password on public link
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | testfile.txt |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
When user "Alice" updates the last public link share using the sharing API with
|
||||
| permissions | 3 |
|
||||
| password | %public% |
|
||||
@@ -156,7 +156,7 @@ Feature: enforce password on public link
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | testfile.txt |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
When user "Alice" updates the last public link share using the sharing API with
|
||||
| permissions | 3 |
|
||||
| password | 6a0Q;A3 +i^m[ |
|
||||
@@ -189,7 +189,7 @@ Feature: enforce password on public link
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | testfile.txt |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
When user "Alice" updates the last public link share using the sharing API with
|
||||
| permissions | 3 |
|
||||
| password | Pws^ |
|
||||
@@ -264,7 +264,7 @@ Feature: enforce password on public link
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | testfile.txt |
|
||||
| space | Personal |
|
||||
| permissionsRole | internal |
|
||||
| permissionsRole | Internal |
|
||||
When user "Alice" updates the last public link share using the sharing API with
|
||||
| permissions | 3 |
|
||||
| password | <password> |
|
||||
|
||||
@@ -19,19 +19,6 @@ Feature: assign role
|
||||
| User |
|
||||
| User Light |
|
||||
|
||||
@issue-5032
|
||||
Scenario Outline: get assigned role of a user via setting api
|
||||
Given the administrator has assigned the role "<user-role>" to user "Alice" using the Graph API
|
||||
When user "Alice" tries to get list of assignment using the settings API
|
||||
Then the HTTP status code should be "<http-status-code>"
|
||||
And the setting API response should have the role "<user-role>"
|
||||
Examples:
|
||||
| user-role | http-status-code |
|
||||
| Admin | 201 |
|
||||
| Space Admin | 401 |
|
||||
| User | 401 |
|
||||
| User Light | 401 |
|
||||
|
||||
|
||||
Scenario Outline: get role of a user assigned via setting api
|
||||
Given the administrator has given "Alice" the role "<user-role>" using the settings api
|
||||
|
||||
@@ -719,7 +719,7 @@ Feature: user GDPR (General Data Protection Regulation) report
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | folderMain |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
| displayName | sharedlink |
|
||||
When user "Alice" exports her GDPR report to "/.personal_data_export.json" using the Graph API
|
||||
|
||||
@@ -475,7 +475,7 @@ Feature: lock files
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | PARENT |
|
||||
| space | Personal |
|
||||
| permissionsRole | edit |
|
||||
| permissionsRole | Edit |
|
||||
| password | %public% |
|
||||
When the public locks "textfile0.txt" in the last public link shared folder using the public WebDAV API setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
@@ -498,7 +498,7 @@ Feature: lock files
|
||||
And user "Alice" has created the following resource link share:
|
||||
| resource | PARENT |
|
||||
| space | Personal |
|
||||
| permissionsRole | view |
|
||||
| permissionsRole | View |
|
||||
| password | %public% |
|
||||
When the public tries to lock "textfile0.txt" in the last public link shared folder using the public WebDAV API setting the following properties
|
||||
| lockscope | <lock-scope> |
|
||||
|
||||
Loaded 100 of 178 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user