Compare commits
66
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eab1964d25 | ||
|
|
60087e6905 | ||
|
|
a0763ab979 | ||
|
|
fa95d658c0 | ||
|
|
23069f50c8 | ||
|
|
d2a05c9258 | ||
|
|
5bb6dc8d99 | ||
|
|
219919b440 | ||
|
|
e4fc7c9dfb | ||
|
|
49716045dd | ||
|
|
1fefdf2219 | ||
|
|
0ade14c0e3 | ||
|
|
1880e771a8 | ||
|
|
44ec542bd8 | ||
|
|
05a293af63 | ||
|
|
b1a4e8c656 | ||
|
|
d0e8ce642d | ||
|
|
45d9ed8333 | ||
|
|
625c2050f7 | ||
|
|
3d2366b5df | ||
|
|
22c2249ecb | ||
|
|
220cd78423 | ||
|
|
406b06923c | ||
|
|
449dbc8ca6 | ||
|
|
49ca9f4369 | ||
|
|
86b7fb688a | ||
|
|
8d179b6349 | ||
|
|
482e4fba78 | ||
|
|
da04d34aa9 | ||
|
|
58851e0013 | ||
|
|
c39582459f | ||
|
|
f37088906c | ||
|
|
3338c95767 | ||
|
|
6a85835c2e | ||
|
|
a0eaee4988 | ||
|
|
07ffaa110c | ||
|
|
2063d7716e | ||
|
|
bbee9caad8 | ||
|
|
3435369f1f | ||
|
|
6b07eaf874 | ||
|
|
b8f6e1fc63 | ||
|
|
201aecf766 | ||
|
|
e3c0c91e6f | ||
|
|
525d63b679 | ||
|
|
56056e2cfd | ||
|
|
920462283e | ||
|
|
0a59d112ca | ||
|
|
5abc047a3e | ||
|
|
1f2f50f382 | ||
|
|
860e1ad9ea | ||
|
|
248eaff8d6 | ||
|
|
0832c9bdb7 | ||
|
|
2841217deb | ||
|
|
fe4e66c2ad | ||
|
|
4dd8d2e7be | ||
|
|
5984fd0339 | ||
|
|
4c5ff7a09a | ||
|
|
4404df6c91 | ||
|
|
b690313a53 | ||
|
|
0df60c7a1c | ||
|
|
5d86cd2cc2 | ||
|
|
8c47aa176f | ||
|
|
3505e66ccc | ||
|
|
69f98a4683 | ||
|
|
9724b216bd | ||
|
|
706ad82968 |
No files matched your search
+2
-2
@@ -1,3 +1,3 @@
|
||||
# The test runner source for UI tests
|
||||
WEB_COMMITID=264014d2f2a216de72114e5453cfa684ab275978
|
||||
WEB_BRANCH=stable-11.0
|
||||
WEB_COMMITID=caf280aa070a0c35e4b184b230d218bfd2be95b3
|
||||
WEB_BRANCH=stable-11.0-correct
|
||||
+37
-39
@@ -35,7 +35,6 @@ PLUGINS_GIT_ACTION = "plugins/git-action:1"
|
||||
PLUGINS_MANIFEST = "plugins/manifest:1"
|
||||
PLUGINS_S3 = "plugins/s3:1"
|
||||
PLUGINS_S3_CACHE = "plugins/s3-cache:1"
|
||||
PLUGINS_SLACK = "plugins/slack:1"
|
||||
REDIS = "redis:6-alpine"
|
||||
SONARSOURCE_SONAR_SCANNER_CLI = "sonarsource/sonar-scanner-cli:11.0"
|
||||
|
||||
@@ -299,11 +298,6 @@ config = {
|
||||
"tikaNeeded": True,
|
||||
},
|
||||
},
|
||||
"rocketchat": {
|
||||
"channel": "builds",
|
||||
"channel_cron": "builds",
|
||||
"from_secret": "rocketchat_talk_webhook",
|
||||
},
|
||||
"binaryReleases": {
|
||||
"os": ["linux", "darwin"],
|
||||
},
|
||||
@@ -459,7 +453,7 @@ def cachePipeline(name, steps):
|
||||
"steps": steps,
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/tags/**",
|
||||
"refs/pull/**",
|
||||
],
|
||||
@@ -666,7 +660,7 @@ def testOcis(ctx):
|
||||
"steps": steps,
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -698,7 +692,7 @@ def scanOcis(ctx):
|
||||
"steps": steps,
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -722,7 +716,7 @@ def buildOcisBinaryForTesting(ctx):
|
||||
rebuildBuildArtifactCache(ctx, "ocis-binary-amd64", "ocis/bin"),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -809,7 +803,7 @@ def uploadScanResults(ctx):
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
"status": [
|
||||
@@ -952,7 +946,7 @@ def codestyle(ctx):
|
||||
"depends_on": [],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -1019,7 +1013,7 @@ def localApiTestPipeline(ctx):
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -1085,7 +1079,7 @@ def cs3ApiTests(ctx, storage, accounts_hash_difficulty = 4):
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -1204,7 +1198,7 @@ def wopiValidatorTests(ctx, storage, wopiServerType, accounts_hash_difficulty =
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -1256,7 +1250,7 @@ def coreApiTests(ctx, part_number = 1, number_of_parts = 1, with_remote_php = Fa
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -1297,7 +1291,7 @@ def e2eTestPipeline(ctx):
|
||||
|
||||
e2e_trigger = {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/tags/**",
|
||||
"refs/pull/**",
|
||||
],
|
||||
@@ -1410,7 +1404,7 @@ def multiServiceE2ePipeline(ctx):
|
||||
|
||||
e2e_trigger = {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
}
|
||||
@@ -1700,7 +1694,7 @@ def dockerRelease(ctx, arch, repo, build_type):
|
||||
"depends_on": depends_on,
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/tags/v*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
@@ -1861,7 +1855,7 @@ def binaryRelease(ctx, arch, build_type, target, depends_on = []):
|
||||
"depends_on": depends_on,
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/tags/v*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
@@ -1995,7 +1989,7 @@ def licenseCheck(ctx):
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/tags/v*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
@@ -2062,7 +2056,7 @@ def releaseDockerManifest(ctx, repo, build_type):
|
||||
"steps": steps,
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/tags/v*",
|
||||
],
|
||||
},
|
||||
@@ -2109,7 +2103,7 @@ def changelog():
|
||||
"push",
|
||||
],
|
||||
"message": "Automated changelog update [skip ci]",
|
||||
"branch": "master",
|
||||
"branch": "stable-7.0-new",
|
||||
"author_email": "devops@owncloud.com",
|
||||
"author_name": "ownClouders",
|
||||
"netrc_machine": "github.com",
|
||||
@@ -2131,7 +2125,7 @@ def changelog():
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -2165,7 +2159,7 @@ def releaseDockerReadme(ctx, repo, build_type):
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/tags/v*",
|
||||
],
|
||||
},
|
||||
@@ -2215,7 +2209,7 @@ def docs():
|
||||
},
|
||||
"pages_directory": "docs/hugo/content/",
|
||||
"copy_contents": "true",
|
||||
"target_branch": "docs",
|
||||
"target_branch": "docs-stable-7.0",
|
||||
"delete": "true",
|
||||
},
|
||||
"when": {
|
||||
@@ -2237,7 +2231,7 @@ def docs():
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -2282,10 +2276,8 @@ def makeGoGenerate(module):
|
||||
|
||||
def notify(ctx):
|
||||
status = ["failure"]
|
||||
channel = config["rocketchat"]["channel"]
|
||||
if ctx.build.event == "cron":
|
||||
if ctx.build.event in ["cron", "tag"]:
|
||||
status.append("success")
|
||||
channel = config["rocketchat"]["channel_cron"]
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
@@ -2296,20 +2288,23 @@ def notify(ctx):
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"name": "notify-rocketchat",
|
||||
"image": PLUGINS_SLACK,
|
||||
"settings": {
|
||||
"webhook": {
|
||||
"from_secret": config["rocketchat"]["from_secret"],
|
||||
"name": "notify-matrix",
|
||||
"image": OC_CI_ALPINE,
|
||||
"environment": {
|
||||
"MATRIX_TOKEN": {
|
||||
"from_secret": "matrix_token",
|
||||
},
|
||||
"channel": channel,
|
||||
},
|
||||
"commands": [
|
||||
"wget https://raw.githubusercontent.com/%s/%s/tests/config/drone/notification.sh" % (ctx.repo.slug, ctx.build.commit),
|
||||
"bash notification.sh",
|
||||
],
|
||||
},
|
||||
],
|
||||
"depends_on": [],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/heads/release*",
|
||||
"refs/tags/**",
|
||||
],
|
||||
@@ -2741,7 +2736,7 @@ def genericCachePurge(flush_path):
|
||||
],
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
"status": [
|
||||
@@ -2934,7 +2929,7 @@ def litmus(ctx, storage):
|
||||
"depends_on": getPipelineNames(buildOcisBinaryForTesting(ctx)),
|
||||
"trigger": {
|
||||
"ref": [
|
||||
"refs/heads/master",
|
||||
"refs/heads/stable-*",
|
||||
"refs/pull/**",
|
||||
],
|
||||
},
|
||||
@@ -3250,9 +3245,11 @@ def k6LoadTests(ctx):
|
||||
script_link = "%s/%s/tests/config/drone/run_k6_tests.sh" % (ocis_git_base_url, ctx.build.commit)
|
||||
|
||||
event_array = ["cron"]
|
||||
trigger_ref = ["refs/heads/master"]
|
||||
|
||||
if "k6-test" in ctx.build.title.lower():
|
||||
event_array.append("pull_request")
|
||||
trigger_ref.append("refs/pull/**")
|
||||
|
||||
return [{
|
||||
"kind": "pipeline",
|
||||
@@ -3305,6 +3302,7 @@ def k6LoadTests(ctx):
|
||||
"depends_on": [],
|
||||
"trigger": {
|
||||
"event": event_array,
|
||||
"ref": trigger_ref,
|
||||
},
|
||||
}]
|
||||
|
||||
|
||||
+411
-465
@@ -1,11 +1,8 @@
|
||||
# Table of Contents
|
||||
|
||||
* [Changelog for unreleased](#changelog-for-unreleased-unreleased)
|
||||
* [Changelog for 7.0.0-rc.4](#changelog-for-700-rc4-2024-12-09)
|
||||
* [Changelog for 7.0.0-rc.3](#changelog-for-700-rc3-2024-11-21)
|
||||
* [Changelog for 7.0.1](#changelog-for-701-2025-02-07)
|
||||
* [Changelog for 7.0.0](#changelog-for-700-2024-12-17)
|
||||
* [Changelog for 5.0.9](#changelog-for-509-2024-11-14)
|
||||
* [Changelog for 7.0.0-rc.2](#changelog-for-700-rc2-2024-11-12)
|
||||
* [Changelog for 7.0.0-rc.1](#changelog-for-700-rc1-2024-11-07)
|
||||
* [Changelog for 6.6.1](#changelog-for-661-2024-10-24)
|
||||
* [Changelog for 6.6.0](#changelog-for-660-2024-10-21)
|
||||
* [Changelog for 6.5.0](#changelog-for-650-2024-10-01)
|
||||
@@ -56,179 +53,52 @@
|
||||
* [Changelog for 1.1.0](#changelog-for-110-2021-01-22)
|
||||
* [Changelog for 1.0.0](#changelog-for-100-2020-12-17)
|
||||
|
||||
# Changelog for [unreleased] (UNRELEASED)
|
||||
# Changelog for [7.0.1] (2025-02-07)
|
||||
|
||||
The following sections list the changes for unreleased.
|
||||
The following sections list the changes for 7.0.1.
|
||||
|
||||
[unreleased]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.4...master
|
||||
[7.0.1]: https://github.com/owncloud/ocis/compare/v7.0.0...v7.0.1
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Fix link activity message: [#10663](https://github.com/owncloud/ocis/pull/10663)
|
||||
* Bugfix - Fix graph drives response for federated shares: [#10730](https://github.com/owncloud/ocis/pull/10730)
|
||||
* Bugfix - GetLastModified property in the REPORT response will use RFC1123 format: [#10738](https://github.com/owncloud/ocis/pull/10738)
|
||||
* Bugfix - Unifi logging: [#10743](https://github.com/owncloud/ocis/pull/10743/)
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL upd: [#10757](https://github.com/owncloud/ocis/pull/10757)
|
||||
* Bugfix - Bump Reva: [#10766](https://github.com/owncloud/ocis/pull/10766)
|
||||
* Enhancement - Update web to v11.0.6: [#10755](https://github.com/owncloud/ocis/pull/10755)
|
||||
* Enhancement - Update Web to v11.0.7: [#10978](https://github.com/owncloud/ocis/pull/10978)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix link activity message: [#10663](https://github.com/owncloud/ocis/pull/10663)
|
||||
* Enhancement - Update Web to v11.0.7: [#10978](https://github.com/owncloud/ocis/pull/10978)
|
||||
|
||||
We changed the link token to display name in the activity message.
|
||||
- Bugfix [owncloud/web#12167](https://github.com/owncloud/web/pull/12167):
|
||||
Replace text editor: #12167
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10295
|
||||
https://github.com/owncloud/ocis/pull/10663
|
||||
https://github.com/owncloud/ocis/pull/10978
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.7
|
||||
|
||||
* Bugfix - Fix graph drives response for federated shares: [#10730](https://github.com/owncloud/ocis/pull/10730)
|
||||
# Changelog for [7.0.0] (2024-12-17)
|
||||
|
||||
Federated shares where erroneously showing up in the /me/drives response on the
|
||||
graph API.
|
||||
The following sections list the changes for 7.0.0.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10689
|
||||
https://github.com/owncloud/ocis/pull/10730
|
||||
|
||||
* Bugfix - GetLastModified property in the REPORT response will use RFC1123 format: [#10738](https://github.com/owncloud/ocis/pull/10738)
|
||||
|
||||
This will follow the standard and will also match the format of the same
|
||||
property in the PROPFIND response
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10738
|
||||
|
||||
* Bugfix - Unifi logging: [#10743](https://github.com/owncloud/ocis/pull/10743/)
|
||||
|
||||
We fixed some cases where we did not use the correct logger.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10743/
|
||||
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL upd: [#10757](https://github.com/owncloud/ocis/pull/10757)
|
||||
|
||||
Made GetScopeByKeyPrefix function as a private method of the FileConnector
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10757
|
||||
|
||||
* Bugfix - Bump Reva: [#10766](https://github.com/owncloud/ocis/pull/10766)
|
||||
|
||||
Bumps reva version to 2.27.0
|
||||
|
||||
* Bugfix [cs3org/reva#4985](https://github.com/cs3org/reva/pull/4985): Drop unneeded session locks
|
||||
* Bugfix [cs3org/reva#5000](https://github.com/cs3org/reva/pull/5000): Fix ceph build
|
||||
* Bugfix [cs3org/reva#4989](https://github.com/cs3org/reva/pull/4989): Deleting OCM share also updates storageprovider
|
||||
* Enhancement [cs3org/reva#4998](https://github.com/cs3org/reva/pull/4998): Emit event when an ocm share is received
|
||||
* Enhancement [cs3org/reva#4996](https://github.com/cs3org/reva/pull/4996): Get rid of some cases of unstructured logging
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10766
|
||||
|
||||
* Enhancement - Update web to v11.0.6: [#10755](https://github.com/owncloud/ocis/pull/10755)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.6. Please refer to the changelog (linked) for
|
||||
details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11992](https://github.com/owncloud/web/pull/11992): OCM
|
||||
invite flow - Bugfix
|
||||
[owncloud/web#11997](https://github.com/owncloud/web/pull/11997): Change search
|
||||
scope without search term - Bugfix
|
||||
[owncloud/web#11998](https://github.com/owncloud/web/pull/11998): Do not load
|
||||
version when sidebar is closed - Bugfix
|
||||
[owncloud/web#12000](https://github.com/owncloud/web/pull/12000): Use only space
|
||||
resource with driveType "project" as space in sidebar - Bugfix
|
||||
[owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share
|
||||
editing - Bugfix
|
||||
[owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share
|
||||
recipient issuer - Bugfix
|
||||
[owncloud/web#12008](https://github.com/owncloud/web/pull/12008): Missing
|
||||
activities on Shared with me page - Bugfix
|
||||
[owncloud/web#12010](https://github.com/owncloud/web/pull/12010): Sidebar file
|
||||
info for shares - Bugfix
|
||||
[owncloud/web#12012](https://github.com/owncloud/web/pull/12012): Show missing
|
||||
role name in link share panel - Bugfix
|
||||
[owncloud/web#12013](https://github.com/owncloud/web/pull/12013): Missing
|
||||
translations for share type filters - Bugfix
|
||||
[owncloud/web#12022](https://github.com/owncloud/web/pull/12022): Permanent link
|
||||
for shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10755
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.6
|
||||
|
||||
# Changelog for [7.0.0-rc.4] (2024-12-09)
|
||||
|
||||
The following sections list the changes for 7.0.0-rc.4.
|
||||
|
||||
[7.0.0-rc.4]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.3...v7.0.0-rc.4
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Fix deny access for graph roles: [#10627](https://github.com/owncloud/ocis/pull/10627)
|
||||
* Bugfix - Fix possible race condition when a thumbnails is stored in the FS: [#10693](https://github.com/owncloud/ocis/pull/10693)
|
||||
* Bugfix - Skip fetching members: [#10701](https://github.com/owncloud/ocis/pull/10701)
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL: [#10718](https://github.com/owncloud/ocis/pull/10718)
|
||||
* Bugfix - Bump Reva: [#10735](https://github.com/owncloud/ocis/pull/10735)
|
||||
* Enhancement - Fetch shared resource metadata concurrently in graph: [#10683](https://github.com/owncloud/ocis/pull/10683)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix deny access for graph roles: [#10627](https://github.com/owncloud/ocis/pull/10627)
|
||||
|
||||
We added a unified role "Cannot access" to prevent a regression when switching
|
||||
the share implementation to the graph API. This role is now used to deny access
|
||||
to a resource.The new role is not enabled by default. The whole deny feature is
|
||||
still experimental.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10627
|
||||
|
||||
* Bugfix - Fix possible race condition when a thumbnails is stored in the FS: [#10693](https://github.com/owncloud/ocis/pull/10693)
|
||||
|
||||
A race condition could cause the thumbnail service to return a thumbnail with 0
|
||||
bytes or with partial content. In order to fix this, the service will create a
|
||||
temporary file with the contents and then rename that file to its final
|
||||
location.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10693
|
||||
|
||||
* Bugfix - Skip fetching members: [#10701](https://github.com/owncloud/ocis/pull/10701)
|
||||
|
||||
We now skip fetching group members when they are not needed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10701
|
||||
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL: [#10718](https://github.com/owncloud/ocis/pull/10718)
|
||||
|
||||
We fixed the FileInfo.BreadcrumbFolderURL in a collaboration api"
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10718
|
||||
|
||||
* Bugfix - Bump Reva: [#10735](https://github.com/owncloud/ocis/pull/10735)
|
||||
|
||||
Bumps reva version to 2.26.8
|
||||
|
||||
* Fix [cs3org/reva#4983](https://github.com/cs3org/reva/pull/4983): Delete stale shares in the jsoncs3 share manager
|
||||
* Fix [cs3org/reva#4963](https://github.com/cs3org/reva/pull/4963): Fix name and displayName in an ocm
|
||||
* Fix [cs3org/reva#4968](https://github.com/cs3org/reva/pull/4968): Jsoncs3 cache fixes
|
||||
* Fix [cs3org/reva#4928](https://github.com/cs3org/reva/pull/4928): Propagate lock in PROPPATCH
|
||||
* Fix [cs3org/reva#4971](https://github.com/cs3org/reva/pull/4971): Use manager to list shares
|
||||
* Fix [cs3org/reva#4978](https://github.com/cs3org/reva/pull/4978): We added more trace spans in decomposedfs
|
||||
* Fix [cs3org/reva#4921](https://github.com/cs3org/reva/pull/4921): Polish propagation related code
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10735
|
||||
|
||||
* Enhancement - Fetch shared resource metadata concurrently in graph: [#10683](https://github.com/owncloud/ocis/pull/10683)
|
||||
|
||||
We now concurrently stat shared resources when listing shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10683
|
||||
|
||||
# Changelog for [7.0.0-rc.3] (2024-11-21)
|
||||
|
||||
The following sections list the changes for 7.0.0-rc.3.
|
||||
|
||||
[7.0.0-rc.3]: https://github.com/owncloud/ocis/compare/v5.0.9...v7.0.0-rc.3
|
||||
[7.0.0]: https://github.com/owncloud/ocis/compare/v5.0.9...v7.0.0
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Generate short tokens to be used as access tokens for WOPI: [#10391](https://github.com/owncloud/ocis/pull/10391)
|
||||
* Bugfix - Fix put relative wopi operation for microsoft: [#10403](https://github.com/owncloud/ocis/pull/10403)
|
||||
* Bugfix - Make SSE keepalive interval configurable: [#10411](https://github.com/owncloud/ocis/pull/10411)
|
||||
* Bugfix - Removed 'OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME' setting: [#10425](https://github.com/owncloud/ocis/pull/10425)
|
||||
* Bugfix - Micro registry cache fixes: [#10429](https://github.com/owncloud/ocis/pull/10429)
|
||||
* Bugfix - Fix the memlimit loglevel: [#10433](https://github.com/owncloud/ocis/pull/10433)
|
||||
* Bugfix - Log GRPC requests in debug mode: [#10438](https://github.com/owncloud/ocis/pull/10438)
|
||||
* Bugfix - Restart Postprocessing properly: [#10439](https://github.com/owncloud/ocis/pull/10439)
|
||||
* Bugfix - Allow to configure data server URL for ocm: [#10440](https://github.com/owncloud/ocis/pull/10440)
|
||||
* Bugfix - Respect proxy url when validating proofkeys: [#10462](https://github.com/owncloud/ocis/pull/10462)
|
||||
* Bugfix - Return wopi lock header in get lock response: [#10470](https://github.com/owncloud/ocis/pull/10470)
|
||||
* Bugfix - 'ocis backup consistency' fixed for file revisions: [#10493](https://github.com/owncloud/ocis/pull/10493)
|
||||
* Bugfix - Wait for services to be ready before registering them: [#10498](https://github.com/owncloud/ocis/pull/10498)
|
||||
* Bugfix - Fix 0-byte file uploads: [#10500](https://github.com/owncloud/ocis/pull/10500)
|
||||
* Bugfix - Fixed `sharedWithMe` response for OCM shares: [#10501](https://github.com/owncloud/ocis/pull/10501)
|
||||
* Bugfix - Fix gateway nats checks: [#10502](https://github.com/owncloud/ocis/pull/10502)
|
||||
* Bugfix - Fix idp guest role default assignment: [#10511](https://github.com/owncloud/ocis/pull/10511)
|
||||
* Bugfix - Remove mbreaker: [#10524](https://github.com/owncloud/ocis/pull/10524)
|
||||
* Bugfix - Fix impersonated request user mismatch: [#10548](https://github.com/owncloud/ocis/pull/10548)
|
||||
* Bugfix - Fix federated sharing when using an external IDP: [#10567](https://github.com/owncloud/ocis/pull/10567)
|
||||
* Bugfix - Fix node cache ttl updates: [#10575](https://github.com/owncloud/ocis/pull/10575)
|
||||
@@ -239,17 +109,162 @@ The following sections list the changes for 7.0.0-rc.3.
|
||||
* Bugfix - Return an error if we can't get the keys and ensure they're cached: [#10590](https://github.com/owncloud/ocis/pull/10590)
|
||||
* Bugfix - Fix status code for thumbnail requests: [#10592](https://github.com/owncloud/ocis/pull/10592)
|
||||
* Bugfix - Fix the activity field mapping: [#10593](https://github.com/owncloud/ocis/pull/10593)
|
||||
* Bugfix - Bump Reva to v2.26.7: [#10612](https://github.com/owncloud/ocis/pull/10612)
|
||||
* Enhancement - Update web to v11.0.4: [#10569](https://github.com/owncloud/ocis/pull/10569)
|
||||
* Bugfix - Fix deny access for graph roles: [#10627](https://github.com/owncloud/ocis/pull/10627)
|
||||
* Bugfix - Fix link activity message: [#10663](https://github.com/owncloud/ocis/pull/10663)
|
||||
* Bugfix - Fix possible race condition when a thumbnails is stored in the FS: [#10693](https://github.com/owncloud/ocis/pull/10693)
|
||||
* Bugfix - Skip fetching members: [#10701](https://github.com/owncloud/ocis/pull/10701)
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL: [#10718](https://github.com/owncloud/ocis/pull/10718)
|
||||
* Bugfix - Fix graph drives response for federated shares: [#10730](https://github.com/owncloud/ocis/pull/10730)
|
||||
* Bugfix - GetLastModified property in the REPORT response will use RFC1123 format: [#10738](https://github.com/owncloud/ocis/pull/10738)
|
||||
* Bugfix - Unifi logging: [#10743](https://github.com/owncloud/ocis/pull/10743/)
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL upd: [#10757](https://github.com/owncloud/ocis/pull/10757)
|
||||
* Bugfix - Bump Reva: [#10766](https://github.com/owncloud/ocis/pull/10766)
|
||||
* Enhancement - Create thumbnails for GGP MIME types: [#10304](https://github.com/owncloud/ocis/pull/10304)
|
||||
* Enhancement - Include a product name in the collaboration service: [#10335](https://github.com/owncloud/ocis/pull/10335)
|
||||
* Enhancement - Add web extensions to the ocis_full example: [#10399](https://github.com/owncloud/ocis/pull/10399)
|
||||
* Enhancement - Remove deprecated CLI commands: [#10432](https://github.com/owncloud/ocis/pull/10432)
|
||||
* Enhancement - Bump cs3api: [#10449](https://github.com/owncloud/ocis/pull/10449)
|
||||
* Enhancement - Bump reva to latest: [#10472](https://github.com/owncloud/ocis/pull/10472)
|
||||
* Enhancement - Concurrent userlog processing: [#10504](https://github.com/owncloud/ocis/pull/10504)
|
||||
* Enhancement - Concurrent autoaccept for shares: [#10507](https://github.com/owncloud/ocis/pull/10507)
|
||||
* Enhancement - Fetch shared resource metadata concurrently in graph: [#10683](https://github.com/owncloud/ocis/pull/10683)
|
||||
* Enhancement - Update web to v11.0.6: [#10755](https://github.com/owncloud/ocis/pull/10755)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Generate short tokens to be used as access tokens for WOPI: [#10391](https://github.com/owncloud/ocis/pull/10391)
|
||||
|
||||
Currently, the access tokens being used might be too long. In particular,
|
||||
Microsoft Office Online complains about the URL (which contains the access
|
||||
token) is too long and refuses to work.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10391
|
||||
|
||||
* Bugfix - Fix put relative wopi operation for microsoft: [#10403](https://github.com/owncloud/ocis/pull/10403)
|
||||
|
||||
We fixed a bug in the put relative wopi operation for microsoft. The response
|
||||
now contains the correct properties.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10403
|
||||
|
||||
* Bugfix - Make SSE keepalive interval configurable: [#10411](https://github.com/owncloud/ocis/pull/10411)
|
||||
|
||||
To prevent intermediate proxies from closing the SSE connection admins can now
|
||||
configure a `SSE_KEEPALIVE_INTERVAL`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10411
|
||||
|
||||
* Bugfix - Removed 'OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME' setting: [#10425](https://github.com/owncloud/ocis/pull/10425)
|
||||
|
||||
The config option 'OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME' was
|
||||
removed from the OCM service. The additional security provided by this setting
|
||||
is somewhat questionable and only provided in very specific setups.
|
||||
|
||||
We are not going through the normal deprecation process for this setting, as it
|
||||
was never really working anyway. If you have this setting in your configuration,
|
||||
it will be ignored. You can safely remove it.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10355
|
||||
https://github.com/owncloud/ocis/pull/10425
|
||||
|
||||
* Bugfix - Micro registry cache fixes: [#10429](https://github.com/owncloud/ocis/pull/10429)
|
||||
|
||||
We now invalidate cache entries when any of the nodes was not updated.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10429
|
||||
|
||||
* Bugfix - Fix the memlimit loglevel: [#10433](https://github.com/owncloud/ocis/pull/10433)
|
||||
|
||||
We set the memlimit default loglevel to error.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10427
|
||||
https://github.com/owncloud/ocis/pull/10433
|
||||
|
||||
* Bugfix - Log GRPC requests in debug mode: [#10438](https://github.com/owncloud/ocis/pull/10438)
|
||||
|
||||
When log level is set to debug we will now also log grpc requests.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10438
|
||||
|
||||
* Bugfix - Restart Postprocessing properly: [#10439](https://github.com/owncloud/ocis/pull/10439)
|
||||
|
||||
Properly differentiate between resume and restart postprocessing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10439
|
||||
|
||||
* Bugfix - Allow to configure data server URL for ocm: [#10440](https://github.com/owncloud/ocis/pull/10440)
|
||||
|
||||
We introduced the `OCM_OCM_STORAGE_DATA_SERVER_URL` setting to fix a bug when
|
||||
downloading files from an OCM share. Before the data server URL defaulted to the
|
||||
listen address of the OCM server, which did not work when using 0.0.0.0 as the
|
||||
listen address.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10358
|
||||
https://github.com/owncloud/ocis/pull/10440
|
||||
|
||||
* Bugfix - Respect proxy url when validating proofkeys: [#10462](https://github.com/owncloud/ocis/pull/10462)
|
||||
|
||||
We fixed a bug where the proxied wopi URL was not used when validating
|
||||
proofkeys. This caused the validation to fail when the proxy was used.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10462
|
||||
|
||||
* Bugfix - Return wopi lock header in get lock response: [#10470](https://github.com/owncloud/ocis/pull/10470)
|
||||
|
||||
We fixed a bug where the wopi lock header was not returned in the get lock
|
||||
response. This is now fixed and the wopi validator tests are passing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10470
|
||||
|
||||
* Bugfix - 'ocis backup consistency' fixed for file revisions: [#10493](https://github.com/owncloud/ocis/pull/10493)
|
||||
|
||||
A bug was fixed that caused the 'ocis backup consistency' command to incorrectly
|
||||
report inconistencies when file revisions with a zero value for the nano-second
|
||||
part of the timestamp were present.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/9498
|
||||
https://github.com/owncloud/ocis/pull/10493
|
||||
|
||||
* Bugfix - Wait for services to be ready before registering them: [#10498](https://github.com/owncloud/ocis/pull/10498)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10498
|
||||
|
||||
* Bugfix - Fix 0-byte file uploads: [#10500](https://github.com/owncloud/ocis/pull/10500)
|
||||
|
||||
We fixed an issue where 0-byte files upload did not return the Location header.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10469
|
||||
https://github.com/owncloud/ocis/pull/10500
|
||||
|
||||
* Bugfix - Fixed `sharedWithMe` response for OCM shares: [#10501](https://github.com/owncloud/ocis/pull/10501)
|
||||
|
||||
OCM shares returned in the `sharedWithMe` response did not have the `mimeType`
|
||||
property populated correctly.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10495
|
||||
https://github.com/owncloud/ocis/pull/10501
|
||||
|
||||
* Bugfix - Fix gateway nats checks: [#10502](https://github.com/owncloud/ocis/pull/10502)
|
||||
|
||||
We now only check if nats is available when the gateway actually uses it.
|
||||
Furthermore, we added a backoff for checking the readys endpoint.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10502
|
||||
|
||||
* Bugfix - Fix idp guest role default assignment: [#10511](https://github.com/owncloud/ocis/pull/10511)
|
||||
|
||||
We fixed an idp guest role default assignment.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10474
|
||||
https://github.com/owncloud/ocis/pull/10511
|
||||
|
||||
* Bugfix - Remove mbreaker: [#10524](https://github.com/owncloud/ocis/pull/10524)
|
||||
|
||||
The circuit breaker is not handle correctly and leads therefore to more issues
|
||||
than it solves. We removed it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10524
|
||||
|
||||
* Bugfix - Fix impersonated request user mismatch: [#10548](https://github.com/owncloud/ocis/pull/10548)
|
||||
|
||||
We fixed a user id and name mismatch in the impersonated auth-app API request
|
||||
@@ -331,7 +346,91 @@ The following sections list the changes for 7.0.0-rc.3.
|
||||
field
|
||||
mapping
|
||||
|
||||
* Bugfix - Bump Reva to v2.26.7: [#10612](https://github.com/owncloud/ocis/pull/10612)
|
||||
* Bugfix - Fix deny access for graph roles: [#10627](https://github.com/owncloud/ocis/pull/10627)
|
||||
|
||||
We added a unified role "Cannot access" to prevent a regression when switching
|
||||
the share implementation to the graph API. This role is now used to deny access
|
||||
to a resource.The new role is not enabled by default. The whole deny feature is
|
||||
still experimental.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10627
|
||||
|
||||
* Bugfix - Fix link activity message: [#10663](https://github.com/owncloud/ocis/pull/10663)
|
||||
|
||||
We changed the link token to display name in the activity message.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10295
|
||||
https://github.com/owncloud/ocis/pull/10663
|
||||
|
||||
* Bugfix - Fix possible race condition when a thumbnails is stored in the FS: [#10693](https://github.com/owncloud/ocis/pull/10693)
|
||||
|
||||
A race condition could cause the thumbnail service to return a thumbnail with 0
|
||||
bytes or with partial content. In order to fix this, the service will create a
|
||||
temporary file with the contents and then rename that file to its final
|
||||
location.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10693
|
||||
|
||||
* Bugfix - Skip fetching members: [#10701](https://github.com/owncloud/ocis/pull/10701)
|
||||
|
||||
We now skip fetching group members when they are not needed.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10701
|
||||
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL: [#10718](https://github.com/owncloud/ocis/pull/10718)
|
||||
|
||||
We fixed the FileInfo.BreadcrumbFolderURL in a collaboration api"
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10718
|
||||
|
||||
* Bugfix - Fix graph drives response for federated shares: [#10730](https://github.com/owncloud/ocis/pull/10730)
|
||||
|
||||
Federated shares where erroneously showing up in the /me/drives response on the
|
||||
graph API.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10689
|
||||
https://github.com/owncloud/ocis/pull/10730
|
||||
|
||||
* Bugfix - GetLastModified property in the REPORT response will use RFC1123 format: [#10738](https://github.com/owncloud/ocis/pull/10738)
|
||||
|
||||
This will follow the standard and will also match the format of the same
|
||||
property in the PROPFIND response
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10738
|
||||
|
||||
* Bugfix - Unifi logging: [#10743](https://github.com/owncloud/ocis/pull/10743/)
|
||||
|
||||
We fixed some cases where we did not use the correct logger.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10743/
|
||||
|
||||
* Bugfix - Fix FileInfo BreadcrumbFolderURL upd: [#10757](https://github.com/owncloud/ocis/pull/10757)
|
||||
|
||||
Made GetScopeByKeyPrefix function as a private method of the FileConnector
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10757
|
||||
|
||||
* Bugfix - Bump Reva: [#10766](https://github.com/owncloud/ocis/pull/10766)
|
||||
|
||||
Bumps reva version to 2.27.0
|
||||
|
||||
* Bugfix [cs3org/reva#4985](https://github.com/cs3org/reva/pull/4985): Drop unneeded session locks
|
||||
* Bugfix [cs3org/reva#5000](https://github.com/cs3org/reva/pull/5000): Fix ceph build
|
||||
* Bugfix [cs3org/reva#4989](https://github.com/cs3org/reva/pull/4989): Deleting OCM share also updates storageprovider
|
||||
* Enhancement [cs3org/reva#4998](https://github.com/cs3org/reva/pull/4998): Emit event when an ocm share is received
|
||||
* Enhancement [cs3org/reva#4996](https://github.com/cs3org/reva/pull/4996): Get rid of some cases of unstructured logging
|
||||
|
||||
Bumps reva version to 2.26.8
|
||||
|
||||
* Fix [cs3org/reva#4983](https://github.com/cs3org/reva/pull/4983): Delete stale shares in the jsoncs3 share manager
|
||||
* Fix [cs3org/reva#4963](https://github.com/cs3org/reva/pull/4963): Fix name and displayName in an ocm
|
||||
* Fix [cs3org/reva#4968](https://github.com/cs3org/reva/pull/4968): Jsoncs3 cache fixes
|
||||
* Fix [cs3org/reva#4928](https://github.com/cs3org/reva/pull/4928): Propagate lock in PROPPATCH
|
||||
* Fix [cs3org/reva#4971](https://github.com/cs3org/reva/pull/4971): Use manager to list shares
|
||||
* Fix [cs3org/reva#4978](https://github.com/cs3org/reva/pull/4978): We added more trace spans in decomposedfs
|
||||
* Fix [cs3org/reva#4921](https://github.com/cs3org/reva/pull/4921): Polish propagation related code
|
||||
|
||||
Bugfix: Bump Reva to v2.26.7
|
||||
|
||||
* Fix [cs3org/reva#4964](https://github.com/cs3org/reva/issues/4964): Fix a wrong error code when approvider creates a new file
|
||||
|
||||
@@ -348,11 +447,128 @@ The following sections list the changes for 7.0.0-rc.3.
|
||||
* Fix [cs3org/reva#4956](https://github.com/cs3org/reva/issues/4956): Improve posixfs error handling and logging
|
||||
* Fix [cs3org/reva#4951](https://github.com/cs3org/reva/issues/4951): Pass the initialized logger down the stack
|
||||
|
||||
Bugfix: Bump Reva to v2.26.5
|
||||
|
||||
* Fix [cs3org/reva#4926](https://github.com/cs3org/reva/issues/4926): Make etag always match content on downloads
|
||||
* Fix [cs3org/reva#4920](https://github.com/cs3org/reva/issues/4920): Return correct status codes for simple uploads
|
||||
* Fix [cs3org/reva#4924](https://github.com/cs3org/reva/issues/4924): Fix sync propagation
|
||||
* Fix [cs3org/reva#4916](https://github.com/cs3org/reva/issues/4916): Improve posixfs stability and performanc
|
||||
|
||||
Enhancement: Bump reva to 2.26.4
|
||||
|
||||
* Bugfix [cs3org/reva#4917](https://github.com/cs3org/reva/pull/4917): Fix 0-byte file uploads
|
||||
* Bugfix [cs3org/reva#4918](https://github.com/cs3org/reva/pull/4918): Fix app templates
|
||||
|
||||
Bump reva to 2.26.3
|
||||
|
||||
* Bugfix [cs3org/reva#4908](https://github.com/cs3org/reva/pull/4908): Add checksum to OCM storageprovider responses
|
||||
* Enhancement [cs3org/reva#4910](https://github.com/cs3org/reva/pull/4910): Bump cs3api
|
||||
* Enhancement [cs3org/reva#4909](https://github.com/cs3org/reva/pull/4909): Bump cs3api
|
||||
* Enhancement [cs3org/reva#4906](https://github.com/cs3org/reva/pull/4906): Bump cs3api
|
||||
|
||||
Bump reva to 2.26.2
|
||||
|
||||
* Enhancement [cs3org/reva#4897](https://github.com/cs3org/reva/pull/4897): Fix remaining quota calculation
|
||||
* Bugfix [cs3org/reva#4902](https://github.com/cs3org/reva/pull/4902): Fix quota calculation
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10766
|
||||
https://github.com/owncloud/ocis/pull/10735
|
||||
https://github.com/owncloud/ocis/pull/10612
|
||||
https://github.com/owncloud/ocis/pull/10552
|
||||
https://github.com/owncloud/ocis/pull/10539
|
||||
https://github.com/owncloud/ocis/pull/10419
|
||||
|
||||
* Enhancement - Update web to v11.0.4: [#10569](https://github.com/owncloud/ocis/pull/10569)
|
||||
* Enhancement - Create thumbnails for GGP MIME types: [#10304](https://github.com/owncloud/ocis/pull/10304)
|
||||
|
||||
Tags: web
|
||||
Creates thumbnails for newly added ggp files
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10304
|
||||
|
||||
* Enhancement - Include a product name in the collaboration service: [#10335](https://github.com/owncloud/ocis/pull/10335)
|
||||
|
||||
The product name will allow using a different app name. For example, a "CoolBox"
|
||||
app name might use a branded Collabora instance by using "Collabora" as product
|
||||
name.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10335
|
||||
https://github.com/owncloud/ocis/pull/10490
|
||||
|
||||
* Enhancement - Add web extensions to the ocis_full example: [#10399](https://github.com/owncloud/ocis/pull/10399)
|
||||
|
||||
We added some of the web extensions from ownCloud to the ocis_full docker
|
||||
compose example.
|
||||
|
||||
- importer - draw-io - external-sites - json-viewer - unzip - progressbars
|
||||
|
||||
These can be enabled in the .env file one by one.
|
||||
|
||||
Read more about ocis extensions in
|
||||
https://github.com/owncloud/web-extensions/blob/main/README.md
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10399
|
||||
|
||||
* Enhancement - Remove deprecated CLI commands: [#10432](https://github.com/owncloud/ocis/pull/10432)
|
||||
|
||||
We removed the following deprecated CLI commands: `ocis storage-users uploads
|
||||
list` `ocis storage-users uploads clean`
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10428
|
||||
https://github.com/owncloud/ocis/pull/10432
|
||||
|
||||
* Enhancement - Bump cs3api: [#10449](https://github.com/owncloud/ocis/pull/10449)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10449
|
||||
|
||||
* Enhancement - Bump reva to latest: [#10472](https://github.com/owncloud/ocis/pull/10472)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10472
|
||||
|
||||
* Enhancement - Concurrent userlog processing: [#10504](https://github.com/owncloud/ocis/pull/10504)
|
||||
|
||||
We now start multiple go routines that process events. The default of 5
|
||||
goroutines can be changed with the new `USERLOG_MAX_CONCURRENCY` environment
|
||||
variable.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10504
|
||||
|
||||
* Enhancement - Concurrent autoaccept for shares: [#10507](https://github.com/owncloud/ocis/pull/10507)
|
||||
|
||||
Shares for groups are now concurrently accepted. Tha default of 25 goroutinges
|
||||
can be changed with the new `FRONTEND_MAX_CONCURRENCY` environment variable.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10507
|
||||
https://github.com/owncloud/ocis/pull/10476
|
||||
|
||||
* Enhancement - Fetch shared resource metadata concurrently in graph: [#10683](https://github.com/owncloud/ocis/pull/10683)
|
||||
|
||||
We now concurrently stat shared resources when listing shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10683
|
||||
|
||||
* Enhancement - Update web to v11.0.6: [#10755](https://github.com/owncloud/ocis/pull/10755)
|
||||
|
||||
- Bugfix [owncloud/web#11992](https://github.com/owncloud/web/pull/11992): OCM
|
||||
invite flow - Bugfix
|
||||
[owncloud/web#11997](https://github.com/owncloud/web/pull/11997): Change search
|
||||
scope without search term - Bugfix
|
||||
[owncloud/web#11998](https://github.com/owncloud/web/pull/11998): Do not load
|
||||
version when sidebar is closed - Bugfix
|
||||
[owncloud/web#12000](https://github.com/owncloud/web/pull/12000): Use only space
|
||||
resource with driveType "project" as space in sidebar - Bugfix
|
||||
[owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share
|
||||
editing - Bugfix
|
||||
[owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share
|
||||
recipient issuer - Bugfix
|
||||
[owncloud/web#12008](https://github.com/owncloud/web/pull/12008): Missing
|
||||
activities on Shared with me page - Bugfix
|
||||
[owncloud/web#12010](https://github.com/owncloud/web/pull/12010): Sidebar file
|
||||
info for shares - Bugfix
|
||||
[owncloud/web#12012](https://github.com/owncloud/web/pull/12012): Show missing
|
||||
role name in link share panel - Bugfix
|
||||
[owncloud/web#12013](https://github.com/owncloud/web/pull/12013): Missing
|
||||
translations for share type filters - Bugfix
|
||||
[owncloud/web#12022](https://github.com/owncloud/web/pull/12022): Permanent link
|
||||
for shares
|
||||
|
||||
We updated ownCloud Web to v11.0.4. Please refer to the changelog (linked) for
|
||||
details on the web release.
|
||||
@@ -378,16 +594,44 @@ The following sections list the changes for 7.0.0-rc.3.
|
||||
[owncloud/web#11929](https://github.com/owncloud/web/issues/11929): Unique
|
||||
request ids
|
||||
|
||||
We updated ownCloud Web to v11.0.2. Please refer to the changelog (linked) for
|
||||
details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11803](https://github.com/owncloud/web/issues/11803):
|
||||
Files appearing in file list - Bugfix
|
||||
[owncloud/web#11804](https://github.com/owncloud/web/pull/11804): Add missing
|
||||
translations - Bugfix
|
||||
[owncloud/web#11806](https://github.com/owncloud/web/issues/11806): Folder size
|
||||
mismatch - Bugfix
|
||||
[owncloud/web#11813](https://github.com/owncloud/web/pull/11813): Preview image
|
||||
retries - Bugfix
|
||||
[owncloud/web#11817](https://github.com/owncloud/web/pull/11817): Respect post
|
||||
logout url - Bugfix
|
||||
[owncloud/web#11830](https://github.com/owncloud/web/issues/11830): Right side
|
||||
bar cut off - Bugfix
|
||||
[owncloud/web#11831](https://github.com/owncloud/web/pull/11831): Sidebar
|
||||
showing wrong shares - Bugfix
|
||||
[owncloud/web#11853](https://github.com/owncloud/web/issues/11853): Context menu
|
||||
"Open app in new tab" broken - Bugfix
|
||||
[owncloud/web#11008](https://github.com/owncloud/web/issues/11008): Show lock
|
||||
information in file details
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10755
|
||||
https://github.com/owncloud/ocis/pull/10569
|
||||
https://github.com/owncloud/ocis/pull/10604
|
||||
https://github.com/owncloud/ocis/pull/10467
|
||||
https://github.com/owncloud/ocis/pull/10503
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.6
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.3
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.4
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.1
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.2
|
||||
|
||||
# Changelog for [5.0.9] (2024-11-14)
|
||||
|
||||
The following sections list the changes for 5.0.9.
|
||||
|
||||
[5.0.9]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.2...v5.0.9
|
||||
[5.0.9]: https://github.com/owncloud/ocis/compare/v6.6.1...v5.0.9
|
||||
|
||||
## Summary
|
||||
|
||||
@@ -425,304 +669,6 @@ The following sections list the changes for 5.0.9.
|
||||
https://github.com/owncloud/ocis/pull/9035
|
||||
https://github.com/owncloud/ocis/pull/9069
|
||||
|
||||
# Changelog for [7.0.0-rc.2] (2024-11-12)
|
||||
|
||||
The following sections list the changes for 7.0.0-rc.2.
|
||||
|
||||
[7.0.0-rc.2]: https://github.com/owncloud/ocis/compare/v7.0.0-rc.1...v7.0.0-rc.2
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Fix idp guest role default assignment: [#10511](https://github.com/owncloud/ocis/pull/10511)
|
||||
* Bugfix - Remove mbreaker: [#10524](https://github.com/owncloud/ocis/pull/10524)
|
||||
* Bugfix - Bump Reva to v2.26.5: [#10552](https://github.com/owncloud/ocis/pull/10552)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Fix idp guest role default assignment: [#10511](https://github.com/owncloud/ocis/pull/10511)
|
||||
|
||||
We fixed an idp guest role default assignment.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10474
|
||||
https://github.com/owncloud/ocis/pull/10511
|
||||
|
||||
* Bugfix - Remove mbreaker: [#10524](https://github.com/owncloud/ocis/pull/10524)
|
||||
|
||||
The circuit breaker is not handle correctly and leads therefore to more issues
|
||||
than it solves. We removed it.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10524
|
||||
|
||||
* Bugfix - Bump Reva to v2.26.5: [#10552](https://github.com/owncloud/ocis/pull/10552)
|
||||
|
||||
* Fix [cs3org/reva#4926](https://github.com/cs3org/reva/issues/4926): Make etag always match content on downloads
|
||||
* Fix [cs3org/reva#4920](https://github.com/cs3org/reva/issues/4920): Return correct status codes for simple uploads
|
||||
* Fix [cs3org/reva#4924](https://github.com/cs3org/reva/issues/4924): Fix sync propagation
|
||||
* Fix [cs3org/reva#4916](https://github.com/cs3org/reva/issues/4916): Improve posixfs stability and performanc
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10552
|
||||
https://github.com/owncloud/ocis/pull/10539
|
||||
|
||||
# Changelog for [7.0.0-rc.1] (2024-11-07)
|
||||
|
||||
The following sections list the changes for 7.0.0-rc.1.
|
||||
|
||||
[7.0.0-rc.1]: https://github.com/owncloud/ocis/compare/v6.6.1...v7.0.0-rc.1
|
||||
|
||||
## Summary
|
||||
|
||||
* Bugfix - Generate short tokens to be used as access tokens for WOPI: [#10391](https://github.com/owncloud/ocis/pull/10391)
|
||||
* Bugfix - Fix put relative wopi operation for microsoft: [#10403](https://github.com/owncloud/ocis/pull/10403)
|
||||
* Bugfix - Make SSE keepalive interval configurable: [#10411](https://github.com/owncloud/ocis/pull/10411)
|
||||
* Bugfix - Removed 'OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME' setting: [#10425](https://github.com/owncloud/ocis/pull/10425)
|
||||
* Bugfix - Micro registry cache fixes: [#10429](https://github.com/owncloud/ocis/pull/10429)
|
||||
* Bugfix - Fix the memlimit loglevel: [#10433](https://github.com/owncloud/ocis/pull/10433)
|
||||
* Bugfix - Restart Postprocessing properly: [#10439](https://github.com/owncloud/ocis/pull/10439)
|
||||
* Bugfix - Allow to configure data server URL for ocm: [#10440](https://github.com/owncloud/ocis/pull/10440)
|
||||
* Bugfix - Respect proxy url when validating proofkeys: [#10462](https://github.com/owncloud/ocis/pull/10462)
|
||||
* Bugfix - Return wopi lock header in get lock response: [#10470](https://github.com/owncloud/ocis/pull/10470)
|
||||
* Bugfix - 'ocis backup consistency' fixed for file revisions: [#10493](https://github.com/owncloud/ocis/pull/10493)
|
||||
* Bugfix - Wait for services to be ready before registering them: [#10498](https://github.com/owncloud/ocis/pull/10498)
|
||||
* Bugfix - Fix 0-byte file uploads: [#10500](https://github.com/owncloud/ocis/pull/10500)
|
||||
* Bugfix - Fixed `sharedWithMe` response for OCM shares: [#10501](https://github.com/owncloud/ocis/pull/10501)
|
||||
* Bugfix - Fix gateway nats checks: [#10502](https://github.com/owncloud/ocis/pull/10502)
|
||||
* Enhancement - Create thumbnails for GGP MIME types: [#10304](https://github.com/owncloud/ocis/pull/10304)
|
||||
* Enhancement - Include a product name in the collaboration service: [#10335](https://github.com/owncloud/ocis/pull/10335)
|
||||
* Enhancement - Add web extensions to the ocis_full example: [#10399](https://github.com/owncloud/ocis/pull/10399)
|
||||
* Enhancement - Bump reva to 2.26.4: [#10419](https://github.com/owncloud/ocis/pull/10419)
|
||||
* Enhancement - Remove deprecated CLI commands: [#10432](https://github.com/owncloud/ocis/pull/10432)
|
||||
* Enhancement - Bump cs3api: [#10449](https://github.com/owncloud/ocis/pull/10449)
|
||||
* Enhancement - Update web to v11.0.2: [#10467](https://github.com/owncloud/ocis/pull/10467)
|
||||
* Enhancement - Bump reva to latest: [#10472](https://github.com/owncloud/ocis/pull/10472)
|
||||
* Enhancement - Concurrent userlog processing: [#10504](https://github.com/owncloud/ocis/pull/10504)
|
||||
* Enhancement - Concurrent autoaccept for shares: [#10507](https://github.com/owncloud/ocis/pull/10507)
|
||||
|
||||
## Details
|
||||
|
||||
* Bugfix - Generate short tokens to be used as access tokens for WOPI: [#10391](https://github.com/owncloud/ocis/pull/10391)
|
||||
|
||||
Currently, the access tokens being used might be too long. In particular,
|
||||
Microsoft Office Online complains about the URL (which contains the access
|
||||
token) is too long and refuses to work.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10391
|
||||
|
||||
* Bugfix - Fix put relative wopi operation for microsoft: [#10403](https://github.com/owncloud/ocis/pull/10403)
|
||||
|
||||
We fixed a bug in the put relative wopi operation for microsoft. The response
|
||||
now contains the correct properties.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10403
|
||||
|
||||
* Bugfix - Make SSE keepalive interval configurable: [#10411](https://github.com/owncloud/ocis/pull/10411)
|
||||
|
||||
To prevent intermediate proxies from closing the SSE connection admins can now
|
||||
configure a `SSE_KEEPALIVE_INTERVAL`.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10411
|
||||
|
||||
* Bugfix - Removed 'OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME' setting: [#10425](https://github.com/owncloud/ocis/pull/10425)
|
||||
|
||||
The config option 'OCM_OCM_PROVIDER_AUTHORIZER_VERIFY_REQUEST_HOSTNAME' was
|
||||
removed from the OCM service. The additional security provided by this setting
|
||||
is somewhat questionable and only provided in very specific setups.
|
||||
|
||||
We are not going through the normal deprecation process for this setting, as it
|
||||
was never really working anyway. If you have this setting in your configuration,
|
||||
it will be ignored. You can safely remove it.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10355
|
||||
https://github.com/owncloud/ocis/pull/10425
|
||||
|
||||
* Bugfix - Micro registry cache fixes: [#10429](https://github.com/owncloud/ocis/pull/10429)
|
||||
|
||||
We now invalidate cache entries when any of the nodes was not updated.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10429
|
||||
|
||||
* Bugfix - Fix the memlimit loglevel: [#10433](https://github.com/owncloud/ocis/pull/10433)
|
||||
|
||||
We set the memlimit default loglevel to error.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10427
|
||||
https://github.com/owncloud/ocis/pull/10433
|
||||
|
||||
* Bugfix - Restart Postprocessing properly: [#10439](https://github.com/owncloud/ocis/pull/10439)
|
||||
|
||||
Properly differentiate between resume and restart postprocessing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10439
|
||||
|
||||
* Bugfix - Allow to configure data server URL for ocm: [#10440](https://github.com/owncloud/ocis/pull/10440)
|
||||
|
||||
We introduced the `OCM_OCM_STORAGE_DATA_SERVER_URL` setting to fix a bug when
|
||||
downloading files from an OCM share. Before the data server URL defaulted to the
|
||||
listen address of the OCM server, which did not work when using 0.0.0.0 as the
|
||||
listen address.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10358
|
||||
https://github.com/owncloud/ocis/pull/10440
|
||||
|
||||
* Bugfix - Respect proxy url when validating proofkeys: [#10462](https://github.com/owncloud/ocis/pull/10462)
|
||||
|
||||
We fixed a bug where the proxied wopi URL was not used when validating
|
||||
proofkeys. This caused the validation to fail when the proxy was used.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10462
|
||||
|
||||
* Bugfix - Return wopi lock header in get lock response: [#10470](https://github.com/owncloud/ocis/pull/10470)
|
||||
|
||||
We fixed a bug where the wopi lock header was not returned in the get lock
|
||||
response. This is now fixed and the wopi validator tests are passing.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10470
|
||||
|
||||
* Bugfix - 'ocis backup consistency' fixed for file revisions: [#10493](https://github.com/owncloud/ocis/pull/10493)
|
||||
|
||||
A bug was fixed that caused the 'ocis backup consistency' command to incorrectly
|
||||
report inconistencies when file revisions with a zero value for the nano-second
|
||||
part of the timestamp were present.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/9498
|
||||
https://github.com/owncloud/ocis/pull/10493
|
||||
|
||||
* Bugfix - Wait for services to be ready before registering them: [#10498](https://github.com/owncloud/ocis/pull/10498)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10498
|
||||
|
||||
* Bugfix - Fix 0-byte file uploads: [#10500](https://github.com/owncloud/ocis/pull/10500)
|
||||
|
||||
We fixed an issue where 0-byte files upload did not return the Location header.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10469
|
||||
https://github.com/owncloud/ocis/pull/10500
|
||||
|
||||
* Bugfix - Fixed `sharedWithMe` response for OCM shares: [#10501](https://github.com/owncloud/ocis/pull/10501)
|
||||
|
||||
OCM shares returned in the `sharedWithMe` response did not have the `mimeType`
|
||||
property populated correctly.
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10495
|
||||
https://github.com/owncloud/ocis/pull/10501
|
||||
|
||||
* Bugfix - Fix gateway nats checks: [#10502](https://github.com/owncloud/ocis/pull/10502)
|
||||
|
||||
We now only check if nats is available when the gateway actually uses it.
|
||||
Furthermore, we added a backoff for checking the readys endpoint.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10502
|
||||
|
||||
* Enhancement - Create thumbnails for GGP MIME types: [#10304](https://github.com/owncloud/ocis/pull/10304)
|
||||
|
||||
Creates thumbnails for newly added ggp files
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10304
|
||||
|
||||
* Enhancement - Include a product name in the collaboration service: [#10335](https://github.com/owncloud/ocis/pull/10335)
|
||||
|
||||
The product name will allow using a different app name. For example, a "CoolBox"
|
||||
app name might use a branded Collabora instance by using "Collabora" as product
|
||||
name.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10335
|
||||
https://github.com/owncloud/ocis/pull/10490
|
||||
|
||||
* Enhancement - Add web extensions to the ocis_full example: [#10399](https://github.com/owncloud/ocis/pull/10399)
|
||||
|
||||
We added some of the web extensions from ownCloud to the ocis_full docker
|
||||
compose example.
|
||||
|
||||
- importer - draw-io - external-sites - json-viewer - unzip - progressbars
|
||||
|
||||
These can be enabled in the .env file one by one.
|
||||
|
||||
Read more about ocis extensions in
|
||||
https://github.com/owncloud/web-extensions/blob/main/README.md
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10399
|
||||
|
||||
* Enhancement - Bump reva to 2.26.4: [#10419](https://github.com/owncloud/ocis/pull/10419)
|
||||
|
||||
* Bugfix [cs3org/reva#4917](https://github.com/cs3org/reva/pull/4917): Fix 0-byte file uploads
|
||||
* Bugfix [cs3org/reva#4918](https://github.com/cs3org/reva/pull/4918): Fix app templates
|
||||
|
||||
Bump reva to 2.26.3
|
||||
|
||||
* Bugfix [cs3org/reva#4908](https://github.com/cs3org/reva/pull/4908): Add checksum to OCM storageprovider responses
|
||||
* Enhancement [cs3org/reva#4910](https://github.com/cs3org/reva/pull/4910): Bump cs3api
|
||||
* Enhancement [cs3org/reva#4909](https://github.com/cs3org/reva/pull/4909): Bump cs3api
|
||||
* Enhancement [cs3org/reva#4906](https://github.com/cs3org/reva/pull/4906): Bump cs3api
|
||||
|
||||
Bump reva to 2.26.2
|
||||
|
||||
* Enhancement [cs3org/reva#4897](https://github.com/cs3org/reva/pull/4897): Fix remaining quota calculation
|
||||
* Bugfix [cs3org/reva#4902](https://github.com/cs3org/reva/pull/4902): Fix quota calculation
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10419
|
||||
|
||||
* Enhancement - Remove deprecated CLI commands: [#10432](https://github.com/owncloud/ocis/pull/10432)
|
||||
|
||||
We removed the following deprecated CLI commands: `ocis storage-users uploads
|
||||
list` `ocis storage-users uploads clean`
|
||||
|
||||
https://github.com/owncloud/ocis/issues/10428
|
||||
https://github.com/owncloud/ocis/pull/10432
|
||||
|
||||
* Enhancement - Bump cs3api: [#10449](https://github.com/owncloud/ocis/pull/10449)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10449
|
||||
|
||||
* Enhancement - Update web to v11.0.2: [#10467](https://github.com/owncloud/ocis/pull/10467)
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.2. Please refer to the changelog (linked) for
|
||||
details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11803](https://github.com/owncloud/web/issues/11803):
|
||||
Files appearing in file list - Bugfix
|
||||
[owncloud/web#11804](https://github.com/owncloud/web/pull/11804): Add missing
|
||||
translations - Bugfix
|
||||
[owncloud/web#11806](https://github.com/owncloud/web/issues/11806): Folder size
|
||||
mismatch - Bugfix
|
||||
[owncloud/web#11813](https://github.com/owncloud/web/pull/11813): Preview image
|
||||
retries - Bugfix
|
||||
[owncloud/web#11817](https://github.com/owncloud/web/pull/11817): Respect post
|
||||
logout url - Bugfix
|
||||
[owncloud/web#11830](https://github.com/owncloud/web/issues/11830): Right side
|
||||
bar cut off - Bugfix
|
||||
[owncloud/web#11831](https://github.com/owncloud/web/pull/11831): Sidebar
|
||||
showing wrong shares - Bugfix
|
||||
[owncloud/web#11853](https://github.com/owncloud/web/issues/11853): Context menu
|
||||
"Open app in new tab" broken - Bugfix
|
||||
[owncloud/web#11008](https://github.com/owncloud/web/issues/11008): Show lock
|
||||
information in file details
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10467
|
||||
https://github.com/owncloud/ocis/pull/10503
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.1
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.2
|
||||
|
||||
* Enhancement - Bump reva to latest: [#10472](https://github.com/owncloud/ocis/pull/10472)
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10472
|
||||
|
||||
* Enhancement - Concurrent userlog processing: [#10504](https://github.com/owncloud/ocis/pull/10504)
|
||||
|
||||
We now start multiple go routines that process events. The default of 5
|
||||
goroutines can be changed with the new `USERLOG_MAX_CONCURRENCY` environment
|
||||
variable.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10504
|
||||
|
||||
* Enhancement - Concurrent autoaccept for shares: [#10507](https://github.com/owncloud/ocis/pull/10507)
|
||||
|
||||
Shares for groups are now concurrently accepted. Tha default of 25 goroutinges
|
||||
can be changed with the new `FRONTEND_MAX_CONCURRENCY` environment variable.
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10507
|
||||
https://github.com/owncloud/ocis/pull/10476
|
||||
|
||||
# Changelog for [6.6.1] (2024-10-24)
|
||||
|
||||
The following sections list the changes for 6.6.1.
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
Enhancement: Bump reva to 2.26.4
|
||||
|
||||
* Bugfix [cs3org/reva#4917](https://github.com/cs3org/reva/pull/4917): Fix 0-byte file uploads
|
||||
* Bugfix [cs3org/reva#4918](https://github.com/cs3org/reva/pull/4918): Fix app templates
|
||||
|
||||
Bump reva to 2.26.3
|
||||
|
||||
* Bugfix [cs3org/reva#4908](https://github.com/cs3org/reva/pull/4908): Add checksum to OCM storageprovider responses
|
||||
* Enhancement [cs3org/reva#4910](https://github.com/cs3org/reva/pull/4910): Bump cs3api
|
||||
* Enhancement [cs3org/reva#4909](https://github.com/cs3org/reva/pull/4909): Bump cs3api
|
||||
* Enhancement [cs3org/reva#4906](https://github.com/cs3org/reva/pull/4906): Bump cs3api
|
||||
|
||||
|
||||
Bump reva to 2.26.2
|
||||
|
||||
* Enhancement [cs3org/reva#4897](https://github.com/cs3org/reva/pull/4897): Fix remaining quota calculation
|
||||
* Bugfix [cs3org/reva#4902](https://github.com/cs3org/reva/pull/4902): Fix quota calculation
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10419
|
||||
@@ -1,20 +0,0 @@
|
||||
Enhancement: Update web to v11.0.2
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.2. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11803](https://github.com/owncloud/web/issues/11803): Files appearing in file list
|
||||
- Bugfix [owncloud/web#11804](https://github.com/owncloud/web/pull/11804): Add missing translations
|
||||
- Bugfix [owncloud/web#11806](https://github.com/owncloud/web/issues/11806): Folder size mismatch
|
||||
- Bugfix [owncloud/web#11813](https://github.com/owncloud/web/pull/11813): Preview image retries
|
||||
- Bugfix [owncloud/web#11817](https://github.com/owncloud/web/pull/11817): Respect post logout url
|
||||
- Bugfix [owncloud/web#11830](https://github.com/owncloud/web/issues/11830): Right side bar cut off
|
||||
- Bugfix [owncloud/web#11831](https://github.com/owncloud/web/pull/11831): Sidebar showing wrong shares
|
||||
- Bugfix [owncloud/web#11853](https://github.com/owncloud/web/issues/11853): Context menu "Open app in new tab" broken
|
||||
- Bugfix [owncloud/web#11008](https://github.com/owncloud/web/issues/11008): Show lock information in file details
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10467
|
||||
https://github.com/owncloud/ocis/pull/10503
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.1
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.2
|
||||
@@ -1,9 +0,0 @@
|
||||
Bugfix: Bump Reva to v2.26.5
|
||||
|
||||
* Fix [cs3org/reva#4926](https://github.com/cs3org/reva/issues/4926): Make etag always match content on downloads
|
||||
* Fix [cs3org/reva#4920](https://github.com/cs3org/reva/issues/4920): Return correct status codes for simple uploads
|
||||
* Fix [cs3org/reva#4924](https://github.com/cs3org/reva/issues/4924): Fix sync propagation
|
||||
* Fix [cs3org/reva#4916](https://github.com/cs3org/reva/issues/4916): Improve posixfs stability and performanc
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10552
|
||||
https://github.com/owncloud/ocis/pull/10539
|
||||
@@ -1,18 +0,0 @@
|
||||
Bugfix: Bump Reva to v2.26.7
|
||||
|
||||
* Fix [cs3org/reva#4964](https://github.com/cs3org/reva/issues/4964): Fix a wrong error code when approvider creates a new file
|
||||
|
||||
Bump Reva to v2.26.6
|
||||
|
||||
* Fix [cs3org/reva#4955](https://github.com/cs3org/reva/issues/4955): Allow small clock skew in reva token validation
|
||||
* Fix [cs3org/reva#4929](https://github.com/cs3org/reva/issues/4929): Fix flaky posixfs integration tests
|
||||
* Fix [cs3org/reva#4953](https://github.com/cs3org/reva/issues/4953): Avoid gateway panics
|
||||
* Fix [cs3org/reva#4959](https://github.com/cs3org/reva/issues/4959): Fix missing file touched event
|
||||
* Fix [cs3org/reva#4933](https://github.com/cs3org/reva/issues/4933): Fix federated sharing when using an external identity provider
|
||||
* Fix [cs3org/reva#4935](https://github.com/cs3org/reva/issues/4935): Enable datatx log
|
||||
* Fix [cs3org/reva#4936](https://github.com/cs3org/reva/issues/4936): Do not delete mlock files
|
||||
* Fix [cs3org/reva#4954](https://github.com/cs3org/reva/issues/4954): Prevent a panic when logging an error
|
||||
* Fix [cs3org/reva#4956](https://github.com/cs3org/reva/issues/4956): Improve posixfs error handling and logging
|
||||
* Fix [cs3org/reva#4951](https://github.com/cs3org/reva/issues/4951): Pass the initialized logger down the stack
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10612
|
||||
@@ -1,21 +0,0 @@
|
||||
Enhancement: Update web to v11.0.4
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.4. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11870](https://github.com/owncloud/web/issues/11870): Preview image retries postprocessing
|
||||
- Bugfix [owncloud/web#11883](https://github.com/owncloud/web/issues/11883): Preview app Shared with me page
|
||||
- Bugfix [owncloud/web#11897](https://github.com/owncloud/web/issues/11897): "Save as" / "Open" when embed delegate authentication is enabled
|
||||
- Bugfix [owncloud/web#11900](https://github.com/owncloud/web/issues/11900): App top bar does not show location when shared file is opened
|
||||
- Bugfix [owncloud/web#11900](https://github.com/owncloud/web/issues/11900): Open from app and Save As feature broken when opened via shared file
|
||||
- Bugfix [owncloud/web#11904](https://github.com/owncloud/web/issues/11904): Public folder reload
|
||||
- Bugfix [owncloud/web#11916](https://github.com/owncloud/web/issues/11916): Fix order in roles drop down
|
||||
- Bugfix [owncloud/web#11923](https://github.com/owncloud/web/issues/11923): Allow create template with different editors
|
||||
- Bugfix [owncloud/web#11924](https://github.com/owncloud/web/issues/11924): Extension actions in right sidebar
|
||||
- Bugfix [owncloud/web#11929](https://github.com/owncloud/web/issues/11929): Unique request ids
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10569
|
||||
https://github.com/owncloud/ocis/pull/10604
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.3
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.4
|
||||
@@ -1,13 +0,0 @@
|
||||
Bugfix: Bump Reva
|
||||
|
||||
Bumps reva version to 2.26.8
|
||||
|
||||
* Fix [cs3org/reva#4983](https://github.com/cs3org/reva/pull/4983): Delete stale shares in the jsoncs3 share manager
|
||||
* Fix [cs3org/reva#4963](https://github.com/cs3org/reva/pull/4963): Fix name and displayName in an ocm
|
||||
* Fix [cs3org/reva#4968](https://github.com/cs3org/reva/pull/4968): Jsoncs3 cache fixes
|
||||
* Fix [cs3org/reva#4928](https://github.com/cs3org/reva/pull/4928): Propagate lock in PROPPATCH
|
||||
* Fix [cs3org/reva#4971](https://github.com/cs3org/reva/pull/4971): Use manager to list shares
|
||||
* Fix [cs3org/reva#4978](https://github.com/cs3org/reva/pull/4978): We added more trace spans in decomposedfs
|
||||
* Fix [cs3org/reva#4921](https://github.com/cs3org/reva/pull/4921): Polish propagation related code
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10735
|
||||
@@ -1,11 +0,0 @@
|
||||
Bugfix: Bump Reva
|
||||
|
||||
Bumps reva version to 2.27.0
|
||||
|
||||
* Bugfix [cs3org/reva#4985](https://github.com/cs3org/reva/pull/4985): Drop unneeded session locks
|
||||
* Bugfix [cs3org/reva#5000](https://github.com/cs3org/reva/pull/5000): Fix ceph build
|
||||
* Bugfix [cs3org/reva#4989](https://github.com/cs3org/reva/pull/4989): Deleting OCM share also updates storageprovider
|
||||
* Enhancement [cs3org/reva#4998](https://github.com/cs3org/reva/pull/4998): Emit event when an ocm share is received
|
||||
* Enhancement [cs3org/reva#4996](https://github.com/cs3org/reva/pull/4996): Get rid of some cases of unstructured logging
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10766
|
||||
@@ -1,20 +0,0 @@
|
||||
Enhancement: Update web to v11.0.6
|
||||
|
||||
Tags: web
|
||||
|
||||
We updated ownCloud Web to v11.0.6. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11992](https://github.com/owncloud/web/pull/11992): OCM invite flow
|
||||
- Bugfix [owncloud/web#11997](https://github.com/owncloud/web/pull/11997): Change search scope without search term
|
||||
- Bugfix [owncloud/web#11998](https://github.com/owncloud/web/pull/11998): Do not load version when sidebar is closed
|
||||
- Bugfix [owncloud/web#12000](https://github.com/owncloud/web/pull/12000): Use only space resource with driveType "project" as space in sidebar
|
||||
- Bugfix [owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share editing
|
||||
- Bugfix [owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share recipient issuer
|
||||
- Bugfix [owncloud/web#12008](https://github.com/owncloud/web/pull/12008): Missing activities on Shared with me page
|
||||
- Bugfix [owncloud/web#12010](https://github.com/owncloud/web/pull/12010): Sidebar file info for shares
|
||||
- Bugfix [owncloud/web#12012](https://github.com/owncloud/web/pull/12012): Show missing role name in link share panel
|
||||
- Bugfix [owncloud/web#12013](https://github.com/owncloud/web/pull/12013): Missing translations for share type filters
|
||||
- Bugfix [owncloud/web#12022](https://github.com/owncloud/web/pull/12022): Permanent link for shares
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10755
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.6
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,68 @@
|
||||
Bugfix: Bump Reva
|
||||
|
||||
Bumps reva version to 2.27.0
|
||||
|
||||
* Bugfix [cs3org/reva#4985](https://github.com/cs3org/reva/pull/4985): Drop unneeded session locks
|
||||
* Bugfix [cs3org/reva#5000](https://github.com/cs3org/reva/pull/5000): Fix ceph build
|
||||
* Bugfix [cs3org/reva#4989](https://github.com/cs3org/reva/pull/4989): Deleting OCM share also updates storageprovider
|
||||
* Enhancement [cs3org/reva#4998](https://github.com/cs3org/reva/pull/4998): Emit event when an ocm share is received
|
||||
* Enhancement [cs3org/reva#4996](https://github.com/cs3org/reva/pull/4996): Get rid of some cases of unstructured logging
|
||||
|
||||
Bumps reva version to 2.26.8
|
||||
|
||||
* Fix [cs3org/reva#4983](https://github.com/cs3org/reva/pull/4983): Delete stale shares in the jsoncs3 share manager
|
||||
* Fix [cs3org/reva#4963](https://github.com/cs3org/reva/pull/4963): Fix name and displayName in an ocm
|
||||
* Fix [cs3org/reva#4968](https://github.com/cs3org/reva/pull/4968): Jsoncs3 cache fixes
|
||||
* Fix [cs3org/reva#4928](https://github.com/cs3org/reva/pull/4928): Propagate lock in PROPPATCH
|
||||
* Fix [cs3org/reva#4971](https://github.com/cs3org/reva/pull/4971): Use manager to list shares
|
||||
* Fix [cs3org/reva#4978](https://github.com/cs3org/reva/pull/4978): We added more trace spans in decomposedfs
|
||||
* Fix [cs3org/reva#4921](https://github.com/cs3org/reva/pull/4921): Polish propagation related code
|
||||
|
||||
Bugfix: Bump Reva to v2.26.7
|
||||
|
||||
* Fix [cs3org/reva#4964](https://github.com/cs3org/reva/issues/4964): Fix a wrong error code when approvider creates a new file
|
||||
|
||||
Bump Reva to v2.26.6
|
||||
|
||||
* Fix [cs3org/reva#4955](https://github.com/cs3org/reva/issues/4955): Allow small clock skew in reva token validation
|
||||
* Fix [cs3org/reva#4929](https://github.com/cs3org/reva/issues/4929): Fix flaky posixfs integration tests
|
||||
* Fix [cs3org/reva#4953](https://github.com/cs3org/reva/issues/4953): Avoid gateway panics
|
||||
* Fix [cs3org/reva#4959](https://github.com/cs3org/reva/issues/4959): Fix missing file touched event
|
||||
* Fix [cs3org/reva#4933](https://github.com/cs3org/reva/issues/4933): Fix federated sharing when using an external identity provider
|
||||
* Fix [cs3org/reva#4935](https://github.com/cs3org/reva/issues/4935): Enable datatx log
|
||||
* Fix [cs3org/reva#4936](https://github.com/cs3org/reva/issues/4936): Do not delete mlock files
|
||||
* Fix [cs3org/reva#4954](https://github.com/cs3org/reva/issues/4954): Prevent a panic when logging an error
|
||||
* Fix [cs3org/reva#4956](https://github.com/cs3org/reva/issues/4956): Improve posixfs error handling and logging
|
||||
* Fix [cs3org/reva#4951](https://github.com/cs3org/reva/issues/4951): Pass the initialized logger down the stack
|
||||
|
||||
Bugfix: Bump Reva to v2.26.5
|
||||
|
||||
* Fix [cs3org/reva#4926](https://github.com/cs3org/reva/issues/4926): Make etag always match content on downloads
|
||||
* Fix [cs3org/reva#4920](https://github.com/cs3org/reva/issues/4920): Return correct status codes for simple uploads
|
||||
* Fix [cs3org/reva#4924](https://github.com/cs3org/reva/issues/4924): Fix sync propagation
|
||||
* Fix [cs3org/reva#4916](https://github.com/cs3org/reva/issues/4916): Improve posixfs stability and performanc
|
||||
|
||||
Enhancement: Bump reva to 2.26.4
|
||||
|
||||
* Bugfix [cs3org/reva#4917](https://github.com/cs3org/reva/pull/4917): Fix 0-byte file uploads
|
||||
* Bugfix [cs3org/reva#4918](https://github.com/cs3org/reva/pull/4918): Fix app templates
|
||||
|
||||
Bump reva to 2.26.3
|
||||
|
||||
* Bugfix [cs3org/reva#4908](https://github.com/cs3org/reva/pull/4908): Add checksum to OCM storageprovider responses
|
||||
* Enhancement [cs3org/reva#4910](https://github.com/cs3org/reva/pull/4910): Bump cs3api
|
||||
* Enhancement [cs3org/reva#4909](https://github.com/cs3org/reva/pull/4909): Bump cs3api
|
||||
* Enhancement [cs3org/reva#4906](https://github.com/cs3org/reva/pull/4906): Bump cs3api
|
||||
|
||||
|
||||
Bump reva to 2.26.2
|
||||
|
||||
* Enhancement [cs3org/reva#4897](https://github.com/cs3org/reva/pull/4897): Fix remaining quota calculation
|
||||
* Bugfix [cs3org/reva#4902](https://github.com/cs3org/reva/pull/4902): Fix quota calculation
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10766
|
||||
https://github.com/owncloud/ocis/pull/10735
|
||||
https://github.com/owncloud/ocis/pull/10612
|
||||
https://github.com/owncloud/ocis/pull/10552
|
||||
https://github.com/owncloud/ocis/pull/10539
|
||||
https://github.com/owncloud/ocis/pull/10419
|
||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,49 @@
|
||||
Enhancement: Update web to v11.0.6
|
||||
|
||||
- Bugfix [owncloud/web#11992](https://github.com/owncloud/web/pull/11992): OCM invite flow
|
||||
- Bugfix [owncloud/web#11997](https://github.com/owncloud/web/pull/11997): Change search scope without search term
|
||||
- Bugfix [owncloud/web#11998](https://github.com/owncloud/web/pull/11998): Do not load version when sidebar is closed
|
||||
- Bugfix [owncloud/web#12000](https://github.com/owncloud/web/pull/12000): Use only space resource with driveType "project" as space in sidebar
|
||||
- Bugfix [owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share editing
|
||||
- Bugfix [owncloud/web#12002](https://github.com/owncloud/web/pull/12002): OCM share recipient issuer
|
||||
- Bugfix [owncloud/web#12008](https://github.com/owncloud/web/pull/12008): Missing activities on Shared with me page
|
||||
- Bugfix [owncloud/web#12010](https://github.com/owncloud/web/pull/12010): Sidebar file info for shares
|
||||
- Bugfix [owncloud/web#12012](https://github.com/owncloud/web/pull/12012): Show missing role name in link share panel
|
||||
- Bugfix [owncloud/web#12013](https://github.com/owncloud/web/pull/12013): Missing translations for share type filters
|
||||
- Bugfix [owncloud/web#12022](https://github.com/owncloud/web/pull/12022): Permanent link for shares
|
||||
|
||||
We updated ownCloud Web to v11.0.4. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11870](https://github.com/owncloud/web/issues/11870): Preview image retries postprocessing
|
||||
- Bugfix [owncloud/web#11883](https://github.com/owncloud/web/issues/11883): Preview app Shared with me page
|
||||
- Bugfix [owncloud/web#11897](https://github.com/owncloud/web/issues/11897): "Save as" / "Open" when embed delegate authentication is enabled
|
||||
- Bugfix [owncloud/web#11900](https://github.com/owncloud/web/issues/11900): App top bar does not show location when shared file is opened
|
||||
- Bugfix [owncloud/web#11900](https://github.com/owncloud/web/issues/11900): Open from app and Save As feature broken when opened via shared file
|
||||
- Bugfix [owncloud/web#11904](https://github.com/owncloud/web/issues/11904): Public folder reload
|
||||
- Bugfix [owncloud/web#11916](https://github.com/owncloud/web/issues/11916): Fix order in roles drop down
|
||||
- Bugfix [owncloud/web#11923](https://github.com/owncloud/web/issues/11923): Allow create template with different editors
|
||||
- Bugfix [owncloud/web#11924](https://github.com/owncloud/web/issues/11924): Extension actions in right sidebar
|
||||
- Bugfix [owncloud/web#11929](https://github.com/owncloud/web/issues/11929): Unique request ids
|
||||
|
||||
We updated ownCloud Web to v11.0.2. Please refer to the changelog (linked) for details on the web release.
|
||||
|
||||
- Bugfix [owncloud/web#11803](https://github.com/owncloud/web/issues/11803): Files appearing in file list
|
||||
- Bugfix [owncloud/web#11804](https://github.com/owncloud/web/pull/11804): Add missing translations
|
||||
- Bugfix [owncloud/web#11806](https://github.com/owncloud/web/issues/11806): Folder size mismatch
|
||||
- Bugfix [owncloud/web#11813](https://github.com/owncloud/web/pull/11813): Preview image retries
|
||||
- Bugfix [owncloud/web#11817](https://github.com/owncloud/web/pull/11817): Respect post logout url
|
||||
- Bugfix [owncloud/web#11830](https://github.com/owncloud/web/issues/11830): Right side bar cut off
|
||||
- Bugfix [owncloud/web#11831](https://github.com/owncloud/web/pull/11831): Sidebar showing wrong shares
|
||||
- Bugfix [owncloud/web#11853](https://github.com/owncloud/web/issues/11853): Context menu "Open app in new tab" broken
|
||||
- Bugfix [owncloud/web#11008](https://github.com/owncloud/web/issues/11008): Show lock information in file details
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10755
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.6
|
||||
https://github.com/owncloud/ocis/pull/10569
|
||||
https://github.com/owncloud/ocis/pull/10604
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.3
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.4
|
||||
https://github.com/owncloud/ocis/pull/10467
|
||||
https://github.com/owncloud/ocis/pull/10503
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.1
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.2
|
||||
File renamed without changes.
File renamed without changes.
@@ -0,0 +1,6 @@
|
||||
Enhancement: Update Web to v11.0.7
|
||||
|
||||
- Bugfix [owncloud/web#12167](https://github.com/owncloud/web/pull/12167): Replace text editor: #12167
|
||||
|
||||
https://github.com/owncloud/ocis/pull/10978
|
||||
https://github.com/owncloud/web/releases/tag/v11.0.7
|
||||
@@ -26,21 +26,20 @@
|
||||
docker_compose_projects:
|
||||
- name: ocis
|
||||
git_url: https://github.com/owncloud/ocis.git
|
||||
ref: stable-5.0
|
||||
docker_compose_path: deployments/examples/ocis_wopi
|
||||
ref: master
|
||||
docker_compose_path: deployments/examples/ocis_full
|
||||
env:
|
||||
INSECURE: "false"
|
||||
TRAEFIK_ACME_MAIL: mbarz@owncloud.com
|
||||
OCIS_DOCKER_TAG: 5.0.9
|
||||
OCIS_DOCKER_TAG: 7.0.0
|
||||
OCIS_DOMAIN: ocis.ocis.production.owncloud.works
|
||||
COMPANION_DOMAIN: companion.ocis.production.owncloud.works
|
||||
COMPANION_IMAGE: owncloud/uppy-companion:3.12.13-owncloud
|
||||
WOPISERVER_DOMAIN: wopiserver.ocis.production.owncloud.works
|
||||
COLLABORA_DOMAIN: collabora.ocis.production.owncloud.works
|
||||
ONLYOFFICE_DOMAIN: onlyoffice.ocis.production.owncloud.works
|
||||
INBUCKET_DOMAIN: mail.ocis.production.owncloud.works
|
||||
DEMO_USERS: "true"
|
||||
COMPOSE_FILE: docker-compose.yml:ocis.yml:tika.yml:collabora.yml:wopiserver.yml:companion.yml:inbucket.yml:monitoring.yml
|
||||
COMPOSE_FILE: docker-compose.yml:ocis.yml:tika.yml:collabora.yml:web_extensions/extensions.yml:web_extensions/unzip.yml:web_extensions/importer.yml:inbucket.yml:monitoring_tracing/monitoring.yml
|
||||
- name: monitoring
|
||||
git_url: https://github.com/owncloud-devops/monitoring-tracing-client.git
|
||||
ref: master
|
||||
|
||||
@@ -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.0.0-rc.5+dev"
|
||||
LatestTag = "7.0.1+dev"
|
||||
|
||||
// Date indicates the build date.
|
||||
// This has been removed, it looks like you can only replace static strings with recent go versions
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
SHELL := bash
|
||||
NAME := web
|
||||
WEB_ASSETS_VERSION = v11.0.6
|
||||
WEB_ASSETS_VERSION = v11.0.7
|
||||
|
||||
include ../../.make/recursion.mk
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
sonar.projectKey=owncloud_ocis
|
||||
sonar.organization=owncloud-1
|
||||
sonar.projectName=ocis
|
||||
sonar.projectVersion=7.0.0-rc.5
|
||||
sonar.projectVersion=7.0.1
|
||||
sonar.host.url=https://sonarcloud.io
|
||||
|
||||
# =====================================================
|
||||
|
||||
@@ -1041,7 +1041,8 @@ class GraphHelper {
|
||||
array $body = [],
|
||||
array $headers = []
|
||||
): ResponseInterface {
|
||||
$url = self::getFullUrl($baseUrl, 'me/drives' . $urlArguments);
|
||||
$urlArguments = $urlArguments ? "?$urlArguments" : "";
|
||||
$url = self::getFullUrl($baseUrl, "me/drives" . $urlArguments);
|
||||
|
||||
return HttpRequestHelper::get($url, $xRequestId, $user, $password, $headers, $body);
|
||||
}
|
||||
@@ -1070,7 +1071,8 @@ class GraphHelper {
|
||||
array $body = [],
|
||||
array $headers = []
|
||||
): ResponseInterface {
|
||||
$url = self::getFullUrl($baseUrl, 'drives/' . $urlArguments);
|
||||
$urlArguments = $urlArguments ? "?$urlArguments" : "";
|
||||
$url = self::getFullUrl($baseUrl, "drives" . $urlArguments);
|
||||
|
||||
return HttpRequestHelper::get($url, $xRequestId, $user, $password, $headers, $body);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ class HttpRequestHelper {
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public static function numRetriesOnHttpTooEarly():int {
|
||||
public static function maxHTTPRequestRetries(): int {
|
||||
// Currently reva and oCIS may return HTTP_TOO_EARLY
|
||||
// So try up to 10 times before giving up.
|
||||
return 10;
|
||||
@@ -203,7 +203,7 @@ class HttpRequestHelper {
|
||||
$debugResponses = false;
|
||||
}
|
||||
|
||||
$sendRetryLimit = self::numRetriesOnHttpTooEarly();
|
||||
$sendRetryLimit = self::maxHTTPRequestRetries();
|
||||
$sendCount = 0;
|
||||
$sendExceptionHappened = false;
|
||||
do {
|
||||
|
||||
@@ -1734,8 +1734,6 @@ class FeatureContext extends BehatVariablesContext {
|
||||
return $this->getAdminPassword();
|
||||
} elseif (\array_key_exists($username, $this->createdUsers)) {
|
||||
return (string)$this->createdUsers[$username]['password'];
|
||||
} elseif (\array_key_exists($username, $this->createdRemoteUsers)) {
|
||||
return (string)$this->createdRemoteUsers[$username]['password'];
|
||||
}
|
||||
|
||||
// The user has not been created yet, see if there is a replacement
|
||||
@@ -1810,12 +1808,6 @@ class FeatureContext extends BehatVariablesContext {
|
||||
}
|
||||
return $userName;
|
||||
}
|
||||
if (\array_key_exists($username, $this->createdRemoteUsers)) {
|
||||
if (isset($this->createdRemoteUsers[$username]['displayname'])) {
|
||||
return (string)$this->createdRemoteUsers[$username]['displayname'];
|
||||
}
|
||||
return $userName;
|
||||
}
|
||||
|
||||
// The user has not been created yet, see if there is a replacement
|
||||
// defined for the user.
|
||||
@@ -1871,9 +1863,6 @@ class FeatureContext extends BehatVariablesContext {
|
||||
if (\array_key_exists($username, $this->createdUsers)) {
|
||||
return (string)$this->createdUsers[$username]['email'];
|
||||
}
|
||||
if (\array_key_exists($username, $this->createdRemoteUsers)) {
|
||||
return (string)$this->createdRemoteUsers[$username]['email'];
|
||||
}
|
||||
|
||||
// The user has not been created yet, see if there is a replacement
|
||||
// defined for the user.
|
||||
|
||||
@@ -92,18 +92,27 @@ class GraphContext implements Context {
|
||||
*
|
||||
* @param string $byUser
|
||||
* @param string $user
|
||||
* @param string $userName
|
||||
* @param string $newUsername
|
||||
*
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function theUserChangesTheUserNameOfUserToUsingTheGraphApi(string $byUser, string $user, string $userName): void {
|
||||
$response = $this->editUserUsingTheGraphApi($byUser, $user, $userName);
|
||||
public function theUserChangesTheUserNameOfUserToUsingTheGraphApi(
|
||||
string $byUser,
|
||||
string $user,
|
||||
string $newUsername
|
||||
): void {
|
||||
$response = $this->editUserUsingTheGraphApi($byUser, $user, $newUsername);
|
||||
$this->featureContext->setResponse($response);
|
||||
// need to add user to list to delete him after test
|
||||
if (!empty($userName) && $this->featureContext->getAttributeOfCreatedUser($userName, 'id')) {
|
||||
$this->featureContext->addUserToCreatedUsersList($userName, $this->featureContext->getUserPassword($user));
|
||||
|
||||
// save the updated user
|
||||
if (!empty($newUsername) && $response->getStatusCode() === 200) {
|
||||
$this->featureContext->rememberThatUserIsNotExpectedToExist($user);
|
||||
$this->featureContext->addUserToCreatedUsersList(
|
||||
$newUsername,
|
||||
$this->featureContext->getUserPassword($user)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,13 +283,17 @@ class GraphContext implements Context {
|
||||
*/
|
||||
public function adminDeletesUserUsingTheGraphApi(string $user, ?string $byUser = null): ResponseInterface {
|
||||
$credentials = $this->getAdminOrUserCredentials($byUser);
|
||||
return GraphHelper::deleteUser(
|
||||
$response = GraphHelper::deleteUser(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
$credentials["username"],
|
||||
$credentials["password"],
|
||||
$user
|
||||
);
|
||||
if ($response->getStatusCode() === 204) {
|
||||
$this->featureContext->rememberThatUserIsNotExpectedToExist($user);
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -310,21 +323,30 @@ class GraphContext implements Context {
|
||||
/**
|
||||
* sends a request to delete a user with the help of userID using the Graph API
|
||||
*
|
||||
* @param string $userId
|
||||
* @param string $user
|
||||
* @param string $byUser
|
||||
*
|
||||
* @return ResponseInterface
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function deleteUserByUserIdUsingTheGraphApi(string $userId, string $byUser): ResponseInterface {
|
||||
public function deleteUserByUserId(string $user, string $byUser): ResponseInterface {
|
||||
if ($user === "nonexistent") {
|
||||
$userId = WebDavHelper::generateUUIDv4();
|
||||
} else {
|
||||
$userId = $this->featureContext->getUserIdByUserName($user);
|
||||
}
|
||||
$credentials = $this->getAdminOrUserCredentials($byUser);
|
||||
return GraphHelper::deleteUserByUserId(
|
||||
$response = GraphHelper::deleteUserByUserId(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
$credentials["username"],
|
||||
$credentials["password"],
|
||||
$userId
|
||||
);
|
||||
if ($response->getStatusCode() === 204) {
|
||||
$this->featureContext->rememberThatUserIsNotExpectedToExist($user);
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -338,8 +360,7 @@ class GraphContext implements Context {
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function theUserDeletesAUserUsingTheGraphAPI(string $byUser, string $user): void {
|
||||
$userId = $this->featureContext->getUserIdByUserName($user);
|
||||
$this->featureContext->setResponse($this->deleteUserByUserIdUsingTheGraphApi($userId, $byUser));
|
||||
$this->featureContext->setResponse($this->deleteUserByUserId($user, $byUser));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -352,8 +373,7 @@ class GraphContext implements Context {
|
||||
* @throws Exception
|
||||
*/
|
||||
public function theUserTriesToDeleteNonExistingUser(string $byUser): void {
|
||||
$userId = WebDavHelper::generateUUIDv4();
|
||||
$this->featureContext->setResponse($this->deleteUserByUserIdUsingTheGraphApi($userId, $byUser));
|
||||
$this->featureContext->setResponse($this->deleteUserByUserId("nonexistent", $byUser));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -667,11 +687,12 @@ class GraphContext implements Context {
|
||||
$rows["email"],
|
||||
$rows["displayName"]
|
||||
);
|
||||
$this->featureContext->setResponse($response);
|
||||
|
||||
// add created user to list except for the user with an empty name
|
||||
// because request /graph/v1.0/users/emptyUserName exits with 200
|
||||
// and we cannot check that the user with empty name doesn't exist
|
||||
if (!empty($rows["userName"])) {
|
||||
if (!empty($rows["userName"]) && $response->getStatusCode() === 201) {
|
||||
$this->featureContext->addUserToCreatedUsersList(
|
||||
$rows["userName"],
|
||||
$rows["password"],
|
||||
@@ -679,7 +700,6 @@ class GraphContext implements Context {
|
||||
$rows["email"]
|
||||
);
|
||||
}
|
||||
$this->featureContext->setResponse($response);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2537,7 +2557,9 @@ class GraphContext implements Context {
|
||||
if ($retryEnabled) {
|
||||
foreach ($jsonBody->value as $share) {
|
||||
$autoSync = $this->featureContext->getUserAutoSyncSetting($credentials['username']);
|
||||
$tryAgain = !$share->{'@client.synchronize'} && $autoSync && $retried < HttpRequestHelper::numRetriesOnHttpTooEarly();
|
||||
$tryAgain = !$share->{'@client.synchronize'}
|
||||
&& $autoSync
|
||||
&& $retried < HttpRequestHelper::maxHTTPRequestRetries();
|
||||
|
||||
if ($tryAgain) {
|
||||
$retried += 1;
|
||||
@@ -2772,8 +2794,12 @@ class GraphContext implements Context {
|
||||
* @return void
|
||||
* @throws Exception
|
||||
*/
|
||||
public function userListsTheActivitiesForResourceOfSpaceUsingTheGraphAPI(string $user, string $resource, string $spaceName): void {
|
||||
$resourceId = $this->featureContext->spacesContext->getResourceId($user, $spaceName, $resource);
|
||||
public function userListsTheActivitiesForResourceOfSpaceUsingTheGraphAPI(
|
||||
string $user,
|
||||
string $resource,
|
||||
string $spaceName
|
||||
): void {
|
||||
$resourceId = $this->spacesContext->getResourceId($user, $spaceName, $resource);
|
||||
$response = GraphHelper::getActivities(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
@@ -2820,8 +2846,13 @@ class GraphContext implements Context {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userTriesToListActivitiesOfFileFromSpaceOwnedByUserUsingTheGraphApi(string $user, string $file, string $owner, string $spaceName): void {
|
||||
$resourceId = $this->featureContext->spacesContext->getResourceId($owner, $spaceName, $file);
|
||||
public function userTriesToListActivitiesOfFileFromSpaceOwnedByUserUsingTheGraphApi(
|
||||
string $user,
|
||||
string $file,
|
||||
string $owner,
|
||||
string $spaceName
|
||||
): void {
|
||||
$resourceId = $this->spacesContext->getResourceId($owner, $spaceName, $file);
|
||||
$response = GraphHelper::getActivities(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
@@ -2841,7 +2872,7 @@ class GraphContext implements Context {
|
||||
* @return void
|
||||
*/
|
||||
public function userListsTheActivitiesOfSpaceUsingTheGraphApi(string $user, string $spaceName): void {
|
||||
$spaceId = ($this->featureContext->spacesContext->getSpaceByName($user, $spaceName))["id"];
|
||||
$spaceId = ($this->spacesContext->getSpaceByName($user, $spaceName))["id"];
|
||||
$response = GraphHelper::getActivities(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
@@ -2904,8 +2935,14 @@ class GraphContext implements Context {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userListsTheActivitiesForFolderOfSpaceWithDepthOrLimitUsingTheGraphApi(string $user, string $resource, string $spaceName, string $filterType, string $filterValue): void {
|
||||
$resourceId = $this->featureContext->spacesContext->getResourceId($user, $spaceName, $resource);
|
||||
public function userListsTheActivitiesForFolderOfSpaceWithDepthOrLimitUsingTheGraphApi(
|
||||
string $user,
|
||||
string $resource,
|
||||
string $spaceName,
|
||||
string $filterType,
|
||||
string $filterValue
|
||||
): void {
|
||||
$resourceId = $this->spacesContext->getResourceId($user, $spaceName, $resource);
|
||||
$response = GraphHelper::getActivities(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$this->featureContext->getStepLineRef(),
|
||||
|
||||
@@ -31,6 +31,24 @@ use PHPUnit\Framework\Assert;
|
||||
* steps needed to re-configure oCIS server
|
||||
*/
|
||||
class OcisConfigContext implements Context {
|
||||
private array $enabledPermissionsRoles = [];
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getEnabledPermissionsRoles(): array {
|
||||
return $this->enabledPermissionsRoles;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $enabledPermissionsRoles
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setEnabledPermissionsRoles(array $enabledPermissionsRoles): void {
|
||||
$this->enabledPermissionsRoles = $enabledPermissionsRoles;
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given async upload has been enabled with post-processing delayed to :delayTime seconds
|
||||
*
|
||||
@@ -99,6 +117,33 @@ class OcisConfigContext implements Context {
|
||||
$response->getStatusCode(),
|
||||
"Failed to enable role $role"
|
||||
);
|
||||
$this->setEnabledPermissionsRoles($defaultRoles);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given the administrator has disabled the permissions role :role
|
||||
*
|
||||
* @param string $role
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function theAdministratorHasDisabledThePermissionsRole(string $role): void {
|
||||
$roleId = GraphHelper::getPermissionsRoleIdByName($role);
|
||||
$availableRoles = $this->getEnabledPermissionsRoles();
|
||||
|
||||
if ($key = array_search($roleId, $availableRoles)) {
|
||||
unset($availableRoles[$key]);
|
||||
}
|
||||
$envs = [
|
||||
"GRAPH_AVAILABLE_ROLES" => implode(',', $availableRoles),
|
||||
];
|
||||
$response = OcisConfigHelper::reConfigureOcis($envs);
|
||||
Assert::assertEquals(
|
||||
200,
|
||||
$response->getStatusCode(),
|
||||
"Failed to disable role $role"
|
||||
);
|
||||
$this->setEnabledPermissionsRoles($availableRoles);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -41,12 +41,6 @@ trait Provisioning {
|
||||
* key is the lowercase username, value is an array of user attributes
|
||||
*/
|
||||
private array $createdUsers = [];
|
||||
|
||||
/**
|
||||
* list of users that were created on the remote server during test runs
|
||||
* key is the lowercase username, value is an array of user attributes
|
||||
*/
|
||||
private array $createdRemoteUsers = [];
|
||||
private array $startingGroups = [];
|
||||
private array $createdRemoteGroups = [];
|
||||
private array $createdGroups = [];
|
||||
@@ -86,14 +80,7 @@ trait Provisioning {
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getAllCreatedUsers():array {
|
||||
return array_merge($this->createdUsers, $this->createdRemoteUsers);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getCreatedGroups():array {
|
||||
public function getCreatedGroups(): array {
|
||||
return $this->createdGroups;
|
||||
}
|
||||
|
||||
@@ -107,7 +94,7 @@ trait Provisioning {
|
||||
*/
|
||||
public function getUserDisplayName(string $username):string {
|
||||
$normalizedUsername = $this->normalizeUsername($username);
|
||||
$users = $this->getAllCreatedUsers();
|
||||
$users = $this->getCreatedUsers();
|
||||
if (isset($users[$normalizedUsername]['displayname'])) {
|
||||
$displayName = (string) $users[$normalizedUsername]['displayname'];
|
||||
if ($displayName !== '') {
|
||||
@@ -125,7 +112,7 @@ trait Provisioning {
|
||||
* @throws Exception
|
||||
*/
|
||||
public function getAttributeOfCreatedUser(string $user, string $attribute) {
|
||||
$usersList = $this->getAllCreatedUsers();
|
||||
$usersList = $this->getCreatedUsers();
|
||||
$normalizedUsername = $this->normalizeUsername($user);
|
||||
if (\array_key_exists($normalizedUsername, $usersList)) {
|
||||
if (\array_key_exists($attribute, $usersList[$normalizedUsername])) {
|
||||
@@ -175,8 +162,6 @@ trait Provisioning {
|
||||
$password = $this->getAdminPassword();
|
||||
} elseif (\array_key_exists($normalizedUsername, $this->createdUsers)) {
|
||||
$password = $this->createdUsers[$normalizedUsername]['password'];
|
||||
} elseif (\array_key_exists($normalizedUsername, $this->createdRemoteUsers)) {
|
||||
$password = $this->createdRemoteUsers[$normalizedUsername]['password'];
|
||||
} else {
|
||||
throw new Exception(
|
||||
"user '$username' was not created by this test run"
|
||||
@@ -754,7 +739,6 @@ trait Provisioning {
|
||||
$this->userExists($user),
|
||||
"User '$user' should not exist but does exist"
|
||||
);
|
||||
$this->rememberThatUserIsNotExpectedToExist($user);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -841,7 +825,6 @@ trait Provisioning {
|
||||
$this->userExists($user),
|
||||
"User '$user' should not exist but does exist"
|
||||
);
|
||||
$this->rememberThatUserIsNotExpectedToExist($user);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -941,20 +924,22 @@ trait Provisioning {
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function initializeUser(string $user, string $password):void {
|
||||
$url = $this->getBaseUrl() . "/graph/v1.0/users/$user";
|
||||
|
||||
public function initializeUser(string $user, string $password): void {
|
||||
if (OcisHelper::isTestingOnReva()) {
|
||||
$url = $this->getBaseUrl()
|
||||
. "/ocs/v$this->ocsApiVersion.php/cloud/users/$user";
|
||||
$url = $this->getBaseUrl() . "/ocs/v$this->ocsApiVersion.php/cloud/users/$user";
|
||||
HttpRequestHelper::get(
|
||||
$url,
|
||||
$this->getStepLineRef(),
|
||||
$user,
|
||||
$password
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
HttpRequestHelper::get(
|
||||
$url,
|
||||
$this->getStepLineRef(),
|
||||
$user,
|
||||
$password
|
||||
);
|
||||
// initialize user by requesting drives
|
||||
// NOTE: this should not be removed,
|
||||
// as it will save the Personal and Shares drives information
|
||||
$this->spacesContext->getSpaceByName($user, 'Personal');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -962,8 +947,8 @@ trait Provisioning {
|
||||
* makes it possible to use this list in other test steps
|
||||
* or to delete them at the end of the test
|
||||
*
|
||||
* @param string|null $user
|
||||
* @param string|null $password
|
||||
* @param string $user
|
||||
* @param string $password
|
||||
* @param string|null $displayName
|
||||
* @param string|null $email
|
||||
* @param string|null $userId only set for the users created using the Graph API
|
||||
@@ -973,8 +958,8 @@ trait Provisioning {
|
||||
* @throws JsonException
|
||||
*/
|
||||
public function addUserToCreatedUsersList(
|
||||
?string $user,
|
||||
?string $password,
|
||||
string $user,
|
||||
string $password,
|
||||
?string $displayName = null,
|
||||
?string $email = null,
|
||||
?string $userId = null,
|
||||
@@ -982,30 +967,17 @@ trait Provisioning {
|
||||
):void {
|
||||
$user = $this->getActualUsername($user);
|
||||
$normalizedUsername = $this->normalizeUsername($user);
|
||||
$userData = [
|
||||
"password" => $password,
|
||||
"displayname" => $displayName,
|
||||
"email" => $email,
|
||||
"shouldExist" => $shouldExist,
|
||||
"actualUsername" => $user,
|
||||
"id" => $userId
|
||||
];
|
||||
|
||||
if ($this->currentServer === 'LOCAL') {
|
||||
// Only remember this user creation if it was expected to have been successful
|
||||
// or the user has not been processed before. Some tests create a user the
|
||||
// first time (successfully) and then purposely try to create the user again.
|
||||
// The 2nd user creation is expected to fail, and in that case we want to
|
||||
// still remember the details of the first user creation.
|
||||
if ($shouldExist || !\array_key_exists($normalizedUsername, $this->createdUsers)) {
|
||||
$this->createdUsers[$normalizedUsername] = $userData;
|
||||
}
|
||||
} elseif ($this->currentServer === 'REMOTE') {
|
||||
// See comment above about the LOCAL case. The logic is the same for the remote case.
|
||||
if ($shouldExist || !\array_key_exists($normalizedUsername, $this->createdRemoteUsers)) {
|
||||
$this->createdRemoteUsers[$normalizedUsername] = $userData;
|
||||
$this->createdUsers[$normalizedUsername] = $userData;
|
||||
}
|
||||
if ($shouldExist || !\array_key_exists($normalizedUsername, $this->createdUsers)) {
|
||||
$this->createdUsers[$normalizedUsername] = [
|
||||
"password" => $password,
|
||||
"displayname" => $displayName,
|
||||
"email" => $email,
|
||||
"shouldExist" => $shouldExist,
|
||||
"actualUsername" => $user,
|
||||
"id" => $userId,
|
||||
"serverType" => $this->currentServer
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1023,14 +995,8 @@ trait Provisioning {
|
||||
string $password
|
||||
):void {
|
||||
$normalizedUsername = $this->normalizeUsername($user);
|
||||
if ($this->currentServer === 'LOCAL') {
|
||||
if (\array_key_exists($normalizedUsername, $this->createdUsers)) {
|
||||
$this->createdUsers[$normalizedUsername]['password'] = $password;
|
||||
}
|
||||
} elseif ($this->currentServer === 'REMOTE') {
|
||||
if (\array_key_exists($normalizedUsername, $this->createdRemoteUsers)) {
|
||||
$this->createdRemoteUsers[$user]['password'] = $password;
|
||||
}
|
||||
if (\array_key_exists($normalizedUsername, $this->createdUsers)) {
|
||||
$this->createdUsers[$normalizedUsername]['password'] = $password;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1769,6 +1735,9 @@ trait Provisioning {
|
||||
// users can be deleted using the username in the GraphApi too
|
||||
$response = $this->graphContext->adminDeletesUserUsingTheGraphApi($user);
|
||||
}
|
||||
if ($response->getStatusCode() === 204) {
|
||||
$this->rememberThatUserIsNotExpectedToExist($user);
|
||||
}
|
||||
return $response;
|
||||
}
|
||||
|
||||
@@ -1975,25 +1944,20 @@ trait Provisioning {
|
||||
*/
|
||||
public function cleanupDatabaseUsers():void {
|
||||
$previousServer = $this->currentServer;
|
||||
$this->usingServer('LOCAL');
|
||||
foreach ($this->createdUsers as $userData) {
|
||||
// do not try to delete if user doesn't exist
|
||||
if (!$userData["shouldExist"]) {
|
||||
continue;
|
||||
}
|
||||
$this->usingServer($userData["serverType"]);
|
||||
|
||||
$user = $userData['actualUsername'];
|
||||
$this->deleteUser($user);
|
||||
$response = $this->deleteUser($user);
|
||||
$this->theHTTPStatusCodeShouldBe(204, "Failed to delete user '$user'", $response);
|
||||
Assert::assertFalse(
|
||||
$this->userExists($user),
|
||||
"User '$user' should not exist but does exist"
|
||||
);
|
||||
$this->rememberThatUserIsNotExpectedToExist($user);
|
||||
}
|
||||
$this->usingServer('REMOTE');
|
||||
foreach ($this->createdRemoteUsers as $userData) {
|
||||
$user = $userData['actualUsername'];
|
||||
$this->deleteUser($user);
|
||||
Assert::assertFalse(
|
||||
$this->userExists($user),
|
||||
"User '$user' should not exist but does exist"
|
||||
);
|
||||
$this->rememberThatUserIsNotExpectedToExist($user);
|
||||
}
|
||||
$this->usingServer($previousServer);
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ class SettingsContext implements Context {
|
||||
$decodedBody = \json_decode($rawBody, true, 512, JSON_THROW_ON_ERROR);
|
||||
$tryAgain = false;
|
||||
} catch (Exception $e) {
|
||||
$tryAgain = $retried < HttpRequestHelper::numRetriesOnHttpTooEarly();
|
||||
$tryAgain = $retried < HttpRequestHelper::maxHTTPRequestRetries();
|
||||
|
||||
if (!$tryAgain) {
|
||||
throw $e;
|
||||
|
||||
@@ -72,11 +72,7 @@ class SharingNgContext implements Context {
|
||||
$bodyRows = $body->getRowsHash();
|
||||
$resource = $bodyRows['resource'] ?? "";
|
||||
|
||||
if ($bodyRows['space'] === 'Personal' || $bodyRows['space'] === 'Shares') {
|
||||
$space = $this->spacesContext->getSpaceByName($user, $bodyRows['space']);
|
||||
} else {
|
||||
$space = $this->spacesContext->getCreatedSpace($bodyRows['space']);
|
||||
}
|
||||
$space = $this->spacesContext->getSpaceByName($user, $bodyRows['space']);
|
||||
$spaceId = $space['id'];
|
||||
|
||||
if ($resource === '' && !\in_array($bodyRows['space'], ['Personal', 'Shares'])) {
|
||||
@@ -251,11 +247,7 @@ class SharingNgContext implements Context {
|
||||
string $fileId = null,
|
||||
bool $federatedShare = false
|
||||
): ResponseInterface {
|
||||
if ($shareInfo['space'] === 'Personal' || $shareInfo['space'] === 'Shares') {
|
||||
$space = $this->spacesContext->getSpaceByName($user, $shareInfo['space']);
|
||||
} else {
|
||||
$space = $this->spacesContext->getCreatedSpace($shareInfo['space']);
|
||||
}
|
||||
$space = $this->spacesContext->getSpaceByName($user, $shareInfo['space']);
|
||||
$spaceId = $space['id'];
|
||||
|
||||
// $fileId is used for trying to share deleted files
|
||||
@@ -336,11 +328,7 @@ class SharingNgContext implements Context {
|
||||
public function sendDriveShareInvitation(string $user, TableNode $table, bool $federatedShare = false): ResponseInterface {
|
||||
$shareeIds = [];
|
||||
$rows = $table->getRowsHash();
|
||||
if ($rows['space'] === 'Personal' || $rows['space'] === 'Shares') {
|
||||
$space = $this->spacesContext->getSpaceByName($user, $rows['space']);
|
||||
} else {
|
||||
$space = $this->spacesContext->getCreatedSpace($rows['space']);
|
||||
}
|
||||
$space = $this->spacesContext->getSpaceByName($user, $rows['space']);
|
||||
$spaceId = $space['id'];
|
||||
|
||||
$sharees = array_map('trim', explode(',', $rows['sharee']));
|
||||
@@ -581,11 +569,7 @@ class SharingNgContext implements Context {
|
||||
*/
|
||||
public function updateResourceShare(string $user, TableNode $body, string $permissionID): ResponseInterface {
|
||||
$bodyRows = $body->getRowsHash();
|
||||
if ($bodyRows['space'] === 'Personal' || $bodyRows['space'] === 'Shares') {
|
||||
$space = $this->spacesContext->getSpaceByName($user, $bodyRows['space']);
|
||||
} else {
|
||||
$space = $this->spacesContext->getCreatedSpace($bodyRows['space']);
|
||||
}
|
||||
$space = $this->spacesContext->getSpaceByName($user, $bodyRows['space']);
|
||||
$spaceId = $space["id"];
|
||||
// for updating role of project space shared, we do not need to provide resource
|
||||
$resource = $bodyRows['resource'] ?? '';
|
||||
@@ -1358,7 +1342,7 @@ class SharingNgContext implements Context {
|
||||
return;
|
||||
}
|
||||
|
||||
$tryAgain = !$shareSynced && $retried < HttpRequestHelper::numRetriesOnHttpTooEarly();
|
||||
$tryAgain = !$shareSynced && $retried < HttpRequestHelper::maxHTTPRequestRetries();
|
||||
if ($tryAgain) {
|
||||
$retried += 1;
|
||||
echo "[INFO] Wait for share sync status...";
|
||||
@@ -1738,13 +1722,14 @@ class SharingNgContext implements Context {
|
||||
* @param string $sharer
|
||||
* @param string $space
|
||||
* @param bool $shouldExist
|
||||
* @param bool $federatedShare
|
||||
*
|
||||
* @return void
|
||||
* @throws GuzzleException
|
||||
* @throws JsonException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function checkIfShareExists(string $share, string $sharee, string $sharer, string $space, bool $shouldExist = true): void {
|
||||
public function checkIfShareExists(string $share, string $sharee, string $sharer, string $space, bool $shouldExist = true, bool $federatedShare = false): void {
|
||||
$share = \ltrim($share, "/");
|
||||
if (\strtolower($space) === "personal") {
|
||||
$remoteDriveAlias = "personal/" . \strtolower($sharer);
|
||||
@@ -1752,22 +1737,24 @@ class SharingNgContext implements Context {
|
||||
$remoteDriveAlias = "project/" . \strtolower($space);
|
||||
}
|
||||
|
||||
// check share mountpoint
|
||||
$response = GraphHelper::getMySpaces(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$sharee,
|
||||
$this->featureContext->getPasswordForUser($sharee),
|
||||
"",
|
||||
$this->featureContext->getStepLineRef()
|
||||
);
|
||||
$driveList = HttpRequestHelper::getJsonDecodedResponseBodyContent($response)->value;
|
||||
$foundShareMountpoint = false;
|
||||
foreach ($driveList as $drive) {
|
||||
if ($drive->driveType === "mountpoint" && $drive->name === $share && $drive->root->remoteItem->driveAlias === $remoteDriveAlias) {
|
||||
$foundShareMountpoint = true;
|
||||
if (!$federatedShare) {
|
||||
// check share mountpoint
|
||||
$response = GraphHelper::getMySpaces(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$sharee,
|
||||
$this->featureContext->getPasswordForUser($sharee),
|
||||
"",
|
||||
$this->featureContext->getStepLineRef()
|
||||
);
|
||||
$driveList = HttpRequestHelper::getJsonDecodedResponseBodyContent($response)->value;
|
||||
$foundShareMountpoint = false;
|
||||
foreach ($driveList as $drive) {
|
||||
if ($drive->driveType === "mountpoint" && $drive->name === $share && $drive->root->remoteItem->driveAlias === $remoteDriveAlias) {
|
||||
$foundShareMountpoint = true;
|
||||
}
|
||||
}
|
||||
Assert::assertSame($shouldExist, $foundShareMountpoint, "Share mountpoint '$share' was not found in the drives list.");
|
||||
}
|
||||
Assert::assertSame($shouldExist, $foundShareMountpoint, "Share mountpoint '$share' was not found in the drives list.");
|
||||
|
||||
// check share in shared-with-me list
|
||||
$response = GraphHelper::getSharesSharedWithMe(
|
||||
@@ -1808,6 +1795,21 @@ class SharingNgContext implements Context {
|
||||
$this->checkIfShareExists($share, $sharee, $sharer, $space, $shouldOrNot === "should");
|
||||
}
|
||||
|
||||
/**
|
||||
* @Then /^user "([^"]*)" (should|should not) have a federated share "([^"]*)" shared by user "([^"]*)" from space "([^"]*)"$/
|
||||
*
|
||||
* @param string $sharee
|
||||
* @param string $shouldOrNot
|
||||
* @param string $share
|
||||
* @param string $sharer
|
||||
* @param string $space
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function userShouldOrShouldNotHaveFederatedShareSharedByUserFromSpace(string $sharee, string $shouldOrNot, string $share, string $sharer, string $space): void {
|
||||
$this->checkIfShareExists($share, $sharee, $sharer, $space, $shouldOrNot === "should", true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^user "([^"]*)" has shared the following (?:files|folders) from space "([^"]*)" with user "([^"]*)" and role "([^"]*)":$/
|
||||
*
|
||||
|
||||
@@ -54,7 +54,7 @@ class SpacesContext implements Context {
|
||||
/**
|
||||
* key is space name and value is the username that created the space
|
||||
*/
|
||||
private array $createdSpaces;
|
||||
private array $createdSpaces = [];
|
||||
private string $ocsApiUrl = '/ocs/v2.php/apps/files_sharing/api/v1/shares';
|
||||
|
||||
/**
|
||||
@@ -74,6 +74,27 @@ class SpacesContext implements Context {
|
||||
*/
|
||||
private array $storedEtags = [];
|
||||
|
||||
/**
|
||||
* @param string $spaceCreator
|
||||
* @param object $space
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addToCreatedSpace(string $spaceCreator, object $space): void {
|
||||
$spaceName = $space->name;
|
||||
$this->createdSpaces[$spaceName] = $space;
|
||||
$this->createdSpaces[$spaceName]->spaceCreator = $spaceCreator;
|
||||
$this->createdSpaces[$spaceName]->fileId = $space->id . '!' . $space->owner->user->id;
|
||||
$this->createdSpaces[$spaceName]->serverType = $this->featureContext->getCurrentServer();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getCreatedSpaces(): array {
|
||||
return $this->createdSpaces;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $spaceName
|
||||
*
|
||||
@@ -87,46 +108,38 @@ class SpacesContext implements Context {
|
||||
return $this->createdSpaces[$spaceName]['spaceCreator'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $spaceCreator
|
||||
* @param ResponseInterface $response
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function addCreatedSpace(string $spaceCreator, ResponseInterface $response): void {
|
||||
$response = $this->featureContext->getJsonDecodedResponseBodyContent($response);
|
||||
$spaceName = $response->name;
|
||||
$this->createdSpaces[$spaceName] = [];
|
||||
$this->createdSpaces[$spaceName]['id'] = $response->id;
|
||||
$this->createdSpaces[$spaceName]['spaceCreator'] = $spaceCreator;
|
||||
$this->createdSpaces[$spaceName]['fileId'] = $response->id . '!' . $response->owner->user->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $spaceName
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function getCreatedSpace(string $spaceName): array {
|
||||
return $this->createdSpaces[$spaceName];
|
||||
}
|
||||
|
||||
private array $availableSpaces = [];
|
||||
private array $personalSpaces = [];
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function getAvailableSpaces(): array {
|
||||
return $this->availableSpaces;
|
||||
public function getPersonalSpaces(): array {
|
||||
return $this->personalSpaces;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $availableSpaces
|
||||
* @param string $user
|
||||
*
|
||||
* @return object|null
|
||||
*/
|
||||
public function getPersonalSpaceForUser(string $user): ?object {
|
||||
$spaceName = $this->featureContext->getUserDisplayName($user);
|
||||
if (!isset($this->personalSpaces[$spaceName])) {
|
||||
return null;
|
||||
}
|
||||
return $this->personalSpaces[$spaceName];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $user
|
||||
* @param object $space
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setAvailableSpaces(array $availableSpaces): void {
|
||||
$this->availableSpaces = $availableSpaces;
|
||||
public function addPersonalSpaceForUser(string $user, object $space): void {
|
||||
$spaceName = $this->featureContext->getUserDisplayName($user);
|
||||
$this->personalSpaces[$spaceName] = $space;
|
||||
$this->personalSpaces[$spaceName]->serverType = $this->featureContext->getCurrentServer();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -175,8 +188,6 @@ class SpacesContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* The method finds available spaces to the user and returns the space by spaceName
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $spaceName
|
||||
*
|
||||
@@ -184,26 +195,74 @@ class SpacesContext implements Context {
|
||||
* @throws GuzzleException
|
||||
*/
|
||||
public function getSpaceByName(string $user, string $spaceName): array {
|
||||
$password = $this->featureContext->getPasswordForUser($user);
|
||||
$createdSpaces = $this->getCreatedSpaces();
|
||||
$personalSpaces = $this->getPersonalSpaces();
|
||||
$allSpaces = \array_merge($createdSpaces, $personalSpaces);
|
||||
|
||||
if ($spaceName === "Personal") {
|
||||
$spaceName = $this->featureContext->getUserDisplayName($user);
|
||||
}
|
||||
if (strtolower($user) === 'admin') {
|
||||
$listSpacesFn = 'listAllAvailableSpaces';
|
||||
} else {
|
||||
$listSpacesFn = 'listAllAvailableSpacesOfUser';
|
||||
|
||||
if (isset($allSpaces[$spaceName])
|
||||
&& $allSpaces[$spaceName]->serverType === $this->featureContext->getCurrentServer()
|
||||
) {
|
||||
return json_decode(json_encode($allSpaces[$spaceName]), true);
|
||||
}
|
||||
|
||||
// Sometimes listing available spaces might not return newly created/shared spaces.
|
||||
// So we try again until we find the space or we reach the max number of retries (i.e. 10)
|
||||
$retried = 0;
|
||||
do {
|
||||
// empty the available spaces array
|
||||
$this->setAvailableSpaces([]);
|
||||
// list 'me/drives' as given user
|
||||
$response = GraphHelper::getMySpaces(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$user,
|
||||
$password,
|
||||
"",
|
||||
$this->featureContext->getStepLineRef()
|
||||
);
|
||||
// NOTE: user can be created with empty password
|
||||
// so if that's the case, the user won't be able to request using empty password
|
||||
// and user won't have personal space.
|
||||
if ($response->getStatusCode() === 401 && !$password) {
|
||||
return [];
|
||||
}
|
||||
$this->featureContext->theHttpStatusCodeShouldBe(
|
||||
200,
|
||||
"Failed to fetch me/drives for user '$user'",
|
||||
$response
|
||||
);
|
||||
$spaces = $this->featureContext->getJsonDecodedResponseBodyContent($response)->value;
|
||||
|
||||
$this->$listSpacesFn($user);
|
||||
$spaces = $this->getAvailableSpaces();
|
||||
$found = false;
|
||||
$foundSpace = [];
|
||||
|
||||
$tryAgain = !\array_key_exists($spaceName, $spaces) && $retried < HttpRequestHelper::numRetriesOnHttpTooEarly();
|
||||
// update the Shares space with other properties
|
||||
// NOTE: the order of drives list can be different
|
||||
// so this extra loop is needed to find and update the Shares space properties
|
||||
if ($allSpaces["Shares"]->name !== "Shares") {
|
||||
foreach ($spaces as $space) {
|
||||
if ($space->name === "Shares") {
|
||||
$this->addPersonalSpaceForUser("Shares", $space);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
foreach ($spaces as $space) {
|
||||
if ($space->name === $spaceName && !isset($space->root->deleted)) {
|
||||
$found = true;
|
||||
$foundSpace = $space;
|
||||
if ($space->driveType === "project") {
|
||||
$this->addToCreatedSpace($user, $space);
|
||||
} elseif (!($space->name === "Shares" && $space->driveType === "virtual")) {
|
||||
$this->addPersonalSpaceForUser($user, $space);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
$tryAgain = !$found && $retried < HttpRequestHelper::maxHTTPRequestRetries();
|
||||
if ($tryAgain) {
|
||||
$retried += 1;
|
||||
echo "Space '$spaceName' not found for user '$user', retrying ($retried)...\n";
|
||||
@@ -212,9 +271,8 @@ class SpacesContext implements Context {
|
||||
}
|
||||
} while ($tryAgain);
|
||||
|
||||
Assert::assertArrayHasKey($spaceName, $spaces, "Space with name '$spaceName' for user '$user' not found");
|
||||
Assert::assertNotEmpty($spaces[$spaceName]["root"]["webDavUrl"], "WebDavUrl for space with name '$spaceName' for user '$user' not found");
|
||||
return $spaces[$spaceName];
|
||||
Assert::assertTrue($found, "Space '$spaceName' not found for user '$user'");
|
||||
return json_decode(json_encode($foundSpace), true);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -426,6 +484,18 @@ class SpacesContext implements Context {
|
||||
$this->checksumContext = BehatHelper::getContext($scope, $environment, 'ChecksumContext');
|
||||
$this->filesVersionsContext = BehatHelper::getContext($scope, $environment, 'FilesVersionsContext');
|
||||
$this->archiverContext = BehatHelper::getContext($scope, $environment, 'ArchiverContext');
|
||||
|
||||
// add Shares space as its drive-id is known
|
||||
// NOTE: this cannot be moved into a constructor method
|
||||
// because it uses the $this->featureContext object
|
||||
$this->personalSpaces = [
|
||||
"Shares" => (object)[
|
||||
"id" => GraphHelper::SHARES_SPACE_ID,
|
||||
// let 'name' be empty, it is used to update the shares space later on
|
||||
"name" => "",
|
||||
"serverType" => $this->featureContext->getCurrentServer()
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -450,22 +520,16 @@ class SpacesContext implements Context {
|
||||
* @throws Exception|GuzzleException
|
||||
*/
|
||||
public function deleteAllProjectSpaces(): void {
|
||||
$query = "\$filter=driveType eq project";
|
||||
$userAdmin = $this->featureContext->getAdminUsername();
|
||||
$drives = $this->getCreatedSpaces();
|
||||
|
||||
$this->listAllAvailableSpaces(
|
||||
$userAdmin,
|
||||
$query
|
||||
);
|
||||
$drives = $this->getAvailableSpaces();
|
||||
|
||||
foreach ($drives as $value) {
|
||||
if (!\array_key_exists("deleted", $value["root"])) {
|
||||
foreach ($drives as $drive) {
|
||||
if (!isset($drive->root->deleted)) {
|
||||
GraphHelper::disableSpace(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$userAdmin,
|
||||
$this->featureContext->getPasswordForUser($userAdmin),
|
||||
$value["id"],
|
||||
$drive->id,
|
||||
$this->featureContext->getStepLineRef()
|
||||
);
|
||||
}
|
||||
@@ -473,7 +537,7 @@ class SpacesContext implements Context {
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$userAdmin,
|
||||
$this->featureContext->getPasswordForUser($userAdmin),
|
||||
$value["id"],
|
||||
$drive->id,
|
||||
$this->featureContext->getStepLineRef()
|
||||
);
|
||||
}
|
||||
@@ -539,18 +603,20 @@ class SpacesContext implements Context {
|
||||
* @throws GuzzleException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function listAllAvailableSpacesOfUser(string $user, string $query = '', array $headers = []): ResponseInterface {
|
||||
$response = GraphHelper::getMySpaces(
|
||||
public function listAllMySpaces(
|
||||
string $user,
|
||||
string $query = '',
|
||||
array $headers = []
|
||||
): ResponseInterface {
|
||||
return GraphHelper::getMySpaces(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$user,
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
"?" . $query,
|
||||
$query,
|
||||
$this->featureContext->getStepLineRef(),
|
||||
[],
|
||||
$headers
|
||||
);
|
||||
$this->rememberTheAvailableSpaces($response);
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -566,7 +632,7 @@ class SpacesContext implements Context {
|
||||
* @throws Exception
|
||||
*/
|
||||
public function theUserListsAllHisAvailableSpacesUsingTheGraphApi(string $user, string $query = ''): void {
|
||||
$this->featureContext->setResponse($this->listAllAvailableSpacesOfUser($user, $query));
|
||||
$this->featureContext->setResponse($this->listAllMySpaces($user, $query));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -589,30 +655,7 @@ class SpacesContext implements Context {
|
||||
foreach ($headersTable as $row) {
|
||||
$headers[$row['header']] = $row ['value'];
|
||||
}
|
||||
$this->featureContext->setResponse($this->listAllAvailableSpacesOfUser($user, '', $headers));
|
||||
}
|
||||
|
||||
/**
|
||||
* The method is used on the administration setting tab, which only the Admin user and the Space admin user have access to
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $query
|
||||
*
|
||||
* @return ResponseInterface
|
||||
*
|
||||
* @throws GuzzleException
|
||||
* @throws Exception
|
||||
*/
|
||||
public function listAllAvailableSpaces(string $user, string $query = ''): ResponseInterface {
|
||||
$response = GraphHelper::getAllSpaces(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$user,
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
"?" . $query,
|
||||
$this->featureContext->getStepLineRef()
|
||||
);
|
||||
$this->rememberTheAvailableSpaces($response);
|
||||
return $response;
|
||||
$this->featureContext->setResponse($this->listAllMySpaces($user, '', $headers));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -629,9 +672,14 @@ class SpacesContext implements Context {
|
||||
* @throws Exception
|
||||
*/
|
||||
public function theUserListsAllAvailableSpacesUsingTheGraphApi(string $user, string $query = ''): void {
|
||||
$this->featureContext->setResponse(
|
||||
$this->listAllAvailableSpaces($user, $query)
|
||||
$response = GraphHelper::getAllSpaces(
|
||||
$this->featureContext->getBaseUrl(),
|
||||
$user,
|
||||
$this->featureContext->getPasswordForUser($user),
|
||||
$query,
|
||||
$this->featureContext->getStepLineRef()
|
||||
);
|
||||
$this->featureContext->setResponse($response);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -647,7 +695,6 @@ class SpacesContext implements Context {
|
||||
*/
|
||||
public function theUserLooksUpTheSingleSpaceUsingTheGraphApiByUsingItsId(string $user, string $spaceName, string $ownerUser = ''): void {
|
||||
$space = $this->getSpaceByName(($ownerUser !== "") ? $ownerUser : $user, $spaceName);
|
||||
Assert::assertIsArray($space);
|
||||
Assert::assertNotEmpty($space["id"]);
|
||||
Assert::assertNotEmpty($space["root"]["webDavUrl"]);
|
||||
$this->featureContext->setResponse(
|
||||
@@ -693,37 +740,11 @@ class SpacesContext implements Context {
|
||||
);
|
||||
$this->featureContext->setResponse($response);
|
||||
if ($response->getStatusCode() === 201) {
|
||||
$this->addCreatedSpace($user, $response);
|
||||
$space = $this->featureContext->getJsonDecodedResponseBodyContent($response);
|
||||
$this->addToCreatedSpace($user, $space);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Remember the available Spaces
|
||||
*
|
||||
* @param ResponseInterface|null $response
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function rememberTheAvailableSpaces(?ResponseInterface $response = null): void {
|
||||
if ($response) {
|
||||
$rawBody = $response->getBody()->getContents();
|
||||
} else {
|
||||
$rawBody = $this->featureContext->getResponse()->getBody()->getContents();
|
||||
}
|
||||
$drives = json_decode($rawBody, true, 512, JSON_THROW_ON_ERROR);
|
||||
if (isset($drives["value"])) {
|
||||
$drives = $drives["value"];
|
||||
}
|
||||
|
||||
$spaces = [];
|
||||
foreach ($drives as $drive) {
|
||||
$spaces[$drive["name"]] = $drive;
|
||||
}
|
||||
$this->setAvailableSpaces($spaces);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $user
|
||||
* @param string $spaceName
|
||||
@@ -1004,7 +1025,7 @@ class SpacesContext implements Context {
|
||||
string $grantedUser,
|
||||
string $role
|
||||
): void {
|
||||
$response = $this->listAllAvailableSpacesOfUser($user);
|
||||
$response = $this->listAllMySpaces($user);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(
|
||||
200,
|
||||
"Expected response status code should be 200",
|
||||
@@ -1054,7 +1075,7 @@ class SpacesContext implements Context {
|
||||
string $shouldOrNot,
|
||||
string $spaceName
|
||||
): void {
|
||||
$response = $this->listAllAvailableSpacesOfUser($user);
|
||||
$response = $this->listAllMySpaces($user);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(
|
||||
200,
|
||||
"Expected response status code should be 200",
|
||||
@@ -1080,7 +1101,7 @@ class SpacesContext implements Context {
|
||||
string $user,
|
||||
string $spaceName
|
||||
): void {
|
||||
$response = $this->listAllAvailableSpacesOfUser($user);
|
||||
$response = $this->listAllMySpaces($user);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(
|
||||
200,
|
||||
"Expected response status code should be 200",
|
||||
@@ -1550,8 +1571,7 @@ class SpacesContext implements Context {
|
||||
}
|
||||
|
||||
/**
|
||||
* @Given /^user "([^"]*)" has changed the quota of the personal space of "([^"]*)" space to "([^"]*)"$/
|
||||
* @Given /^user "([^"]*)" has changed the quota of the "([^"]*)" space to "([^"]*)"$/
|
||||
* @Given /^user "([^"]*)" has changed the quota of space "([^"]*)" to "([^"]*)"$/
|
||||
*
|
||||
* @param string $user
|
||||
* @param string $spaceName
|
||||
@@ -1686,12 +1706,13 @@ class SpacesContext implements Context {
|
||||
): void {
|
||||
$space = ["name" => $spaceName, "driveType" => $spaceType, "quota" => ["total" => $quota]];
|
||||
$response = $this->createSpace($user, $space);
|
||||
$this->addCreatedSpace($user, $response);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(
|
||||
201,
|
||||
"Expected response status code should be 201 (Created)",
|
||||
$response
|
||||
);
|
||||
$space = $this->featureContext->getJsonDecodedResponseBodyContent($response);
|
||||
$this->addToCreatedSpace($user, $space);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1711,12 +1732,13 @@ class SpacesContext implements Context {
|
||||
): void {
|
||||
$space = ["name" => $spaceName];
|
||||
$response = $this->createSpace($user, $space);
|
||||
$this->addCreatedSpace($user, $response);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(
|
||||
201,
|
||||
"Expected response status code should be 201 (Created)",
|
||||
$response
|
||||
);
|
||||
$space = $this->featureContext->getJsonDecodedResponseBodyContent($response);
|
||||
$this->addToCreatedSpace($user, $space);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -2276,10 +2298,14 @@ class SpacesContext implements Context {
|
||||
string $fileContent,
|
||||
string $destination
|
||||
): array {
|
||||
$response = $this->listAllAvailableSpacesOfUser($user);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(200, "", $response);
|
||||
$spaceId = $this->getSpaceIdByName($user, $spaceName);
|
||||
$response = $this->featureContext->uploadFileWithContent($user, $fileContent, $destination, $spaceId, true);
|
||||
$space = $this->getSpaceByName($user, $spaceName);
|
||||
$response = $this->featureContext->uploadFileWithContent(
|
||||
$user,
|
||||
$fileContent,
|
||||
$destination,
|
||||
$space["id"],
|
||||
true
|
||||
);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(['201', '204'], "", $response);
|
||||
return $response->getHeader('oc-fileid');
|
||||
}
|
||||
@@ -4287,7 +4313,7 @@ class SpacesContext implements Context {
|
||||
string $role,
|
||||
string $expirationDate = null
|
||||
): void {
|
||||
$response = $this->listAllAvailableSpacesOfUser($user);
|
||||
$response = $this->listAllMySpaces($user);
|
||||
$this->featureContext->theHTTPStatusCodeShouldBe(
|
||||
200,
|
||||
"Expected response status code should be 200",
|
||||
|
||||
@@ -13,7 +13,7 @@ Feature: download multiple resources bundled into an archive
|
||||
@issue-4637
|
||||
Scenario Outline: download a single file
|
||||
Given user "Alice" has uploaded file with content "some data" to "/textfile0.txt"
|
||||
When user "Alice" downloads the <archive-type> archive of "/home/textfile0.txt" using the resource path and setting these headers:
|
||||
When user "Alice" downloads the <archive-type> archive of "textfile0.txt" using the resource path and setting these headers:
|
||||
| header | value |
|
||||
| User-Agent | <user-agent> |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -30,7 +30,7 @@ Feature: download multiple resources bundled into an archive
|
||||
Given user "Alice" has created folder "my_data"
|
||||
And user "Alice" has uploaded file with content "some data" to "/my_data/textfile0.txt"
|
||||
And user "Alice" has uploaded file with content "more data" to "/my_data/an_other_file.txt"
|
||||
When user "Alice" downloads the <archive-type> archive of "/home/my_data" using the resource path and setting these headers:
|
||||
When user "Alice" downloads the <archive-type> archive of "my_data" using the resource path and setting these headers:
|
||||
| header | value |
|
||||
| User-Agent | <user-agent> |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -52,10 +52,10 @@ Feature: download multiple resources bundled into an archive
|
||||
And user "Alice" has created folder "more_data"
|
||||
And user "Alice" has uploaded file with content "more data" to "/more_data/an_other_file.txt"
|
||||
When user "Alice" downloads the archive of these items using the resource paths
|
||||
| /home/textfile0.txt |
|
||||
| /home/textfile1.txt |
|
||||
| /home/my_data |
|
||||
| /home/more_data |
|
||||
| textfile0.txt |
|
||||
| textfile1.txt |
|
||||
| my_data |
|
||||
| more_data |
|
||||
Then the HTTP status code should be "200"
|
||||
And the downloaded tar archive should contain these files:
|
||||
| name | content |
|
||||
@@ -107,10 +107,10 @@ Feature: download multiple resources bundled into an archive
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "more_data" synced
|
||||
When user "Brian" downloads the archive of these items using the resource path
|
||||
| /home/Shares/textfile0.txt |
|
||||
| /home/Shares/textfile1.txt |
|
||||
| /home/Shares/my_data |
|
||||
| /home/Shares/more_data |
|
||||
| Shares/textfile0.txt |
|
||||
| Shares/textfile1.txt |
|
||||
| Shares/my_data |
|
||||
| Shares/more_data |
|
||||
Then the HTTP status code should be "200"
|
||||
And the downloaded tar archive should contain these files:
|
||||
| name | content |
|
||||
@@ -156,7 +156,7 @@ Feature: download multiple resources bundled into an archive
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "more_data" synced
|
||||
When user "Brian" downloads the <archive-type> archive of "/home/Shares" using the resource path and setting these headers:
|
||||
When user "Brian" downloads the <archive-type> archive of "Shares" using the resource path and setting these headers:
|
||||
| header | value |
|
||||
| User-Agent | <user-agent> |
|
||||
Then the HTTP status code should be "200"
|
||||
|
||||
@@ -411,7 +411,7 @@ Feature: user GDPR (General Data Protection Regulation) report
|
||||
|
||||
|
||||
Scenario: generate a GDPR report after the admin updates the quota of personal space
|
||||
Given user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "10000"
|
||||
Given user "Admin" has changed the quota of space "Alice Hansen" to "10000"
|
||||
When user "Alice" exports her GDPR report to "/.personal_data_export.json" using the Graph API
|
||||
And user "Alice" downloads the content of GDPR report ".personal_data_export.json"
|
||||
Then the HTTP status code of responses on each endpoint should be "202, 200" respectively
|
||||
|
||||
@@ -37,7 +37,7 @@ Feature: edit user
|
||||
Examples:
|
||||
| action description | user | http-status-code | new-user |
|
||||
| change to a valid user name | Lionel | 200 | Lionel |
|
||||
| user name characters | a*!_+-& | 200 | a*!_+-& |
|
||||
| user name characters | a*!_-& | 200 | a*!_-& |
|
||||
| change to existing user name | Brian | 409 | Carol |
|
||||
| empty user name | | 400 | Carol |
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ Feature: lock files
|
||||
|
||||
Scenario Outline: lock a file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
When user "Alice" locks file "textfile.txt" using the WebDAV API setting the following properties
|
||||
| lockscope | exclusive |
|
||||
Then the HTTP status code should be "200"
|
||||
@@ -32,7 +32,7 @@ Feature: lock files
|
||||
|
||||
Scenario Outline: lock a file with a timeout
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
When user "Alice" locks file "textfile.txt" using the WebDAV API setting the following properties
|
||||
| lockscope | exclusive |
|
||||
| timeout | Second-5000 |
|
||||
@@ -54,7 +54,7 @@ Feature: lock files
|
||||
|
||||
Scenario: lock a file using file-id
|
||||
Given using spaces DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
When user "Alice" locks file "textfile.txt" using file-id "<<FILEID>>" using the WebDAV API setting the following properties
|
||||
| lockscope | exclusive |
|
||||
@@ -72,7 +72,7 @@ Feature: lock files
|
||||
|
||||
Scenario Outline: user cannot lock file twice
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has locked file "textfile.txt" setting the following properties
|
||||
| lockscope | exclusive |
|
||||
When user "Alice" tries to lock file "textfile.txt" using the WebDAV API setting the following properties
|
||||
@@ -163,7 +163,7 @@ Feature: lock files
|
||||
@issue-7599
|
||||
Scenario Outline: lock a file in the shares
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
@@ -189,7 +189,7 @@ Feature: lock files
|
||||
|
||||
Scenario: lock a file in the shares using file-id
|
||||
Given using spaces DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile.txt |
|
||||
@@ -213,7 +213,7 @@ Feature: lock files
|
||||
Scenario Outline: viewer cannot lock a file in the shares using file-id
|
||||
Given using spaces DAV path
|
||||
And the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile.txt |
|
||||
@@ -233,7 +233,7 @@ Feature: lock files
|
||||
|
||||
Scenario: sharee cannot lock a resource exclusively locked by a sharer
|
||||
Given using spaces DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile.txt |
|
||||
@@ -258,7 +258,7 @@ Feature: lock files
|
||||
|
||||
Scenario: sharer cannot lock a resource exclusively locked by a sharee
|
||||
Given using spaces DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile.txt |
|
||||
|
||||
@@ -249,7 +249,7 @@ Feature: unlock locked items
|
||||
|
||||
Scenario: unlock a file using file-id
|
||||
Given using spaces DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has locked file "textfile.txt" using file-id "<<FILEID>>" setting the following properties
|
||||
| lockscope | exclusive |
|
||||
@@ -278,7 +278,7 @@ Feature: unlock locked items
|
||||
Scenario: unlock a file in the shares using file-id
|
||||
Given user "Brian" has been created with default attributes
|
||||
And using spaces DAV path
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "textfile.txt"
|
||||
And we save it into "FILEID"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | textfile.txt |
|
||||
|
||||
@@ -1229,3 +1229,71 @@ Feature: an user shares resources using ScienceMesh application
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@issue-9926
|
||||
Scenario: federated user tries to update a shared file after local user updates role
|
||||
Given using spaces DAV path
|
||||
And using server "LOCAL"
|
||||
And "Alice" has created the federation share invitation
|
||||
And using server "REMOTE"
|
||||
And "Brian" has accepted invitation
|
||||
And using server "LOCAL"
|
||||
And user "Alice" has uploaded file with content "ocm test" to "/textfile.txt"
|
||||
And user "Alice" has sent the following resource share invitation to federated user:
|
||||
| resource | textfile.txt |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Alice" has updated the last resource share with the following properties:
|
||||
| permissionsRole | File Editor |
|
||||
| expirationDateTime | 2200-07-15T14:00:00.000Z |
|
||||
| space | Personal |
|
||||
| resource | textfile.txt |
|
||||
And using server "REMOTE"
|
||||
When user "Brian" updates the content of federated share "textfile.txt" with "this is a new content" using the WebDAV API
|
||||
Then the HTTP status code should be "500"
|
||||
And using server "LOCAL"
|
||||
And the content of file "textfile.txt" for user "Alice" should be "ocm test"
|
||||
|
||||
@issue-10689
|
||||
Scenario: federation user lists all the spaces
|
||||
Given using server "REMOTE"
|
||||
And "Brian" has created the federation share invitation
|
||||
And using server "LOCAL"
|
||||
And "Alice" has accepted invitation
|
||||
And user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has sent the following resource share invitation to federated user:
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And using server "REMOTE"
|
||||
When user "Brian" lists all available spaces via the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the json responded should not contain a space with name "folderToShare"
|
||||
|
||||
@issue-10213
|
||||
Scenario Outline: local user removes access of federated user from a resource
|
||||
Given using spaces DAV path
|
||||
And using server "REMOTE"
|
||||
And "Brian" has created the federation share invitation
|
||||
And using server "LOCAL"
|
||||
And "Alice" has accepted invitation
|
||||
And user "Alice" has created a folder "FOLDER" in space "Personal"
|
||||
And user "Alice" has sent the following resource share invitation to federated user:
|
||||
| resource | FOLDER |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissionsRole> |
|
||||
When user "Alice" removes the access of user "Brian" from resource "FOLDER" of space "Personal" using the Graph API
|
||||
Then the HTTP status code should be "204"
|
||||
And using server "REMOTE"
|
||||
And user "Brian" should not have a federated share "FOLDER" shared by user "Alice" from space "Personal"
|
||||
Examples:
|
||||
| permissionsRole |
|
||||
| Viewer |
|
||||
| Uploader |
|
||||
| Editor |
|
||||
@@ -3863,3 +3863,217 @@ Feature: resources shared by user
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@env-config
|
||||
Scenario Outline: sharer lists the shares shared with Secure Viewer after the role is disabled (Personal Space)
|
||||
Given the administrator has enabled the permissions role "Secure Viewer"
|
||||
And user "Alice" has uploaded file with content "some content" to "textfile.txt"
|
||||
And user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Secure Viewer |
|
||||
And user "Brian" has a share "<resource>" synced
|
||||
And the administrator has disabled the permissions role "Secure Viewer"
|
||||
When user "Alice" lists the shares shared by her using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should contain resource "<resource>" with the following data:
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"parentReference",
|
||||
"permissions",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@libre.graph.permissions.actions",
|
||||
"grantedToV2",
|
||||
"id",
|
||||
"invitation"
|
||||
],
|
||||
"properties": {
|
||||
"@libre.graph.permissions.actions": {
|
||||
"const": [
|
||||
"libre.graph/driveItem/path/read",
|
||||
"libre.graph/driveItem/children/read",
|
||||
"libre.graph/driveItem/basic/read"
|
||||
]
|
||||
},
|
||||
"roles": { "const": null }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
Examples:
|
||||
| resource |
|
||||
| textfile.txt |
|
||||
| folderToShare |
|
||||
|
||||
@env-config
|
||||
Scenario: sharer lists the shares shared with Denied after the role is disabled (Personal Space)
|
||||
Given the administrator has enabled the permissions role "Denied"
|
||||
And user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Denied |
|
||||
And the administrator has disabled the permissions role "Denied"
|
||||
When user "Alice" lists the shares shared by her using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should contain resource "folderToShare" with the following data:
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"parentReference",
|
||||
"permissions",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@libre.graph.permissions.actions",
|
||||
"grantedToV2",
|
||||
"id",
|
||||
"invitation"
|
||||
],
|
||||
"properties": {
|
||||
"@libre.graph.permissions.actions": {
|
||||
"const": ["none"]
|
||||
},
|
||||
"roles": { "const": null }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
|
||||
@env-config
|
||||
Scenario Outline: sharer lists the shares shared with Secure Viewer after the role is disabled (Project Space)
|
||||
Given using spaces DAV path
|
||||
And the administrator has enabled the permissions role "Secure Viewer"
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "new-space" with the default quota using the Graph API
|
||||
And user "Alice" has uploaded a file inside space "new-space" with content "some content" to "textfile.txt"
|
||||
And user "Alice" has created a folder "folderToShare" in space "new-space"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | <resource> |
|
||||
| space | new-space |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Secure Viewer |
|
||||
And user "Brian" has a share "<resource>" synced
|
||||
And the administrator has disabled the permissions role "Secure Viewer"
|
||||
When user "Alice" lists the shares shared by her using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should contain resource "<resource>" with the following data:
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"parentReference",
|
||||
"permissions",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@libre.graph.permissions.actions",
|
||||
"grantedToV2",
|
||||
"id",
|
||||
"invitation"
|
||||
],
|
||||
"properties": {
|
||||
"@libre.graph.permissions.actions": {
|
||||
"const": [
|
||||
"libre.graph/driveItem/path/read",
|
||||
"libre.graph/driveItem/children/read",
|
||||
"libre.graph/driveItem/basic/read"
|
||||
]
|
||||
},
|
||||
"roles": { "const": null }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
Examples:
|
||||
| resource |
|
||||
| textfile.txt |
|
||||
| folderToShare |
|
||||
|
||||
@env-config
|
||||
Scenario: sharer lists the shares shared with Denied after the role is disabled (Project Space)
|
||||
Given using spaces DAV path
|
||||
And the administrator has enabled the permissions role "Denied"
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "new-space" with the default quota using the Graph API
|
||||
And user "Alice" has created a folder "folderToShare" in space "new-space"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | folderToShare |
|
||||
| space | new-space |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Denied |
|
||||
And the administrator has disabled the permissions role "Denied"
|
||||
When user "Alice" lists the shares shared by her using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should contain resource "folderToShare" with the following data:
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"parentReference",
|
||||
"permissions",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"maxItems": 1,
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@libre.graph.permissions.actions",
|
||||
"grantedToV2",
|
||||
"id",
|
||||
"invitation"
|
||||
],
|
||||
"properties": {
|
||||
"@libre.graph.permissions.actions": {
|
||||
"const": ["none"]
|
||||
},
|
||||
"roles": { "const": null }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
@@ -5232,3 +5232,39 @@ Feature: an user gets the resources shared to them
|
||||
And the json response should contain the following shares:
|
||||
| textfile.txt |
|
||||
| FolderToShare |
|
||||
|
||||
@env-config
|
||||
Scenario: share a folder with denied permission role (Personal Space)
|
||||
Given using spaces DAV path
|
||||
And the administrator has enabled the permissions role "Denied"
|
||||
And user "Alice" has created folder "FolderToShare"
|
||||
And user "Alice" has uploaded file with content "hello world" to "FolderToShare/lorem.txt"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | FolderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Denied |
|
||||
When user "Brian" lists the shares shared with him using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And user "Brian" should not have a share "FolderToShare" shared by user "Alice" from space "Personal"
|
||||
And user "Brian" should not be able to download file "FolderToShare/lorem.txt" from space "Shares"
|
||||
|
||||
@env-config
|
||||
Scenario: share a folder with denied permission role (Project Space)
|
||||
Given using spaces DAV path
|
||||
And the administrator has enabled the permissions role "Denied"
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "NewSpace" with the default quota using the Graph API
|
||||
And user "Alice" has created a folder "FolderToShare" in space "NewSpace"
|
||||
And user "Alice" has uploaded a file inside space "NewSpace" with content "hello world" to "FolderToShare/lorem.txt"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | FolderToShare |
|
||||
| space | NewSpace |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Denied |
|
||||
When user "Brian" lists the shares shared with him using the Graph API
|
||||
Then the HTTP status code should be "200"
|
||||
And user "Brian" should not have a share "FolderToShare" shared by user "Alice" from space "NewSpace"
|
||||
And user "Brian" should not be able to download file "FolderToShare/lorem.txt" from space "Shares"
|
||||
+258
-12
@@ -19,7 +19,7 @@ Feature: Update permission of a share
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-14T14:00:00Z |
|
||||
When user "Alice" updates the last resource share with the following properties using the Graph API:
|
||||
| space | Personal |
|
||||
| resource | testfile.txt |
|
||||
@@ -91,7 +91,7 @@ Feature: Update permission of a share
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
When user "Alice" updates the last resource share with the following properties using the Graph API:
|
||||
| space | Personal |
|
||||
| resource | <resource> |
|
||||
@@ -394,7 +394,7 @@ Feature: Update permission of a share
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| permissionsRole | <new-permissions-role> |
|
||||
| space | NewSpace |
|
||||
@@ -474,7 +474,7 @@ Feature: Update permission of a share
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| expirationDateTime | |
|
||||
| space | NewSpace |
|
||||
@@ -554,7 +554,7 @@ Feature: Update permission of a share
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-14T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
| space | NewSpace |
|
||||
@@ -636,7 +636,7 @@ Feature: Update permission of a share
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| expirationDateTime | |
|
||||
| permissionsRole | <new-permissions-role> |
|
||||
@@ -717,7 +717,7 @@ Feature: Update permission of a share
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-14T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
| permissionsRole | <new-permissions-role> |
|
||||
@@ -799,7 +799,7 @@ Feature: Update permission of a share
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| permissionsRole | <new-permissions-role> |
|
||||
| space | NewSpace |
|
||||
@@ -875,7 +875,7 @@ Feature: Update permission of a share
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| expirationDateTime | |
|
||||
| space | NewSpace |
|
||||
@@ -951,7 +951,7 @@ Feature: Update permission of a share
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-14T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
| permissionsRole | <new-permissions-role> |
|
||||
@@ -1033,7 +1033,7 @@ Feature: Update permission of a share
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| expirationDateTime | |
|
||||
| permissionsRole | <new-permissions-role> |
|
||||
@@ -1110,7 +1110,7 @@ Feature: Update permission of a share
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
| expirationDateTime | 2025-07-15T14:00:00Z |
|
||||
| expirationDateTime | 2200-07-14T14:00:00Z |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| expirationDateTime | 2200-07-15T14:00:00Z |
|
||||
| permissionsRole | <new-permissions-role> |
|
||||
@@ -1181,3 +1181,249 @@ Feature: Update permission of a share
|
||||
| Space Editor | Manager |
|
||||
| Manager | Space Viewer |
|
||||
| Manager | Space Editor |
|
||||
|
||||
@issue-10768
|
||||
Scenario Outline: sharer updates share permissions role of a resource to Secure Viewer without enabling it
|
||||
Given user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has uploaded file with content "hello world" to "textfile.txt"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | <resource> |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
When user "Alice" updates the last resource share with the following properties using the Graph API:
|
||||
| permissionsRole | Secure Viewer |
|
||||
| space | Personal |
|
||||
| resource | <resource> |
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@libre.graph.permissions.actions",
|
||||
"grantedToV2",
|
||||
"id",
|
||||
"invitation"
|
||||
],
|
||||
"properties": {
|
||||
"@libre.graph.permissions.actions": {
|
||||
"const": [
|
||||
"libre.graph/driveItem/path/read",
|
||||
"libre.graph/driveItem/children/read",
|
||||
"libre.graph/driveItem/basic/read"
|
||||
]
|
||||
},
|
||||
"grantedToV2": {
|
||||
"type": "object",
|
||||
"required": ["user"],
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": ["displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Brian Murphy"
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^%user_id_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^%permissions_id_pattern%$"
|
||||
},
|
||||
"invitation": {
|
||||
"type": "object",
|
||||
"required": ["invitedBy"],
|
||||
"properties": {
|
||||
"invitedBy": {
|
||||
"type": "object",
|
||||
"required": ["user"],
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": ["displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Alice Hansen"
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^%user_id_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
Examples:
|
||||
| resource | permissions-role |
|
||||
| folderToShare | Uploader |
|
||||
| folderToShare | Editor |
|
||||
| folderToShare | Viewer |
|
||||
| textfile.txt | File Editor |
|
||||
| textfile.txt | Viewer |
|
||||
|
||||
@issue-10768
|
||||
Scenario Outline: sharer updates share permissions role of a resource to Denied without enabling it
|
||||
Given user "Alice" has created folder "folderToShare"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | folderToShare |
|
||||
| space | Personal |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
When user "Alice" updates the last resource share with the following properties using the Graph API:
|
||||
| permissionsRole | Denied |
|
||||
| space | Personal |
|
||||
| resource | folderToShare |
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@libre.graph.permissions.actions",
|
||||
"grantedToV2",
|
||||
"id",
|
||||
"invitation"
|
||||
],
|
||||
"properties": {
|
||||
"@libre.graph.permissions.actions": {
|
||||
"const": ["none"]
|
||||
},
|
||||
"grantedToV2": {
|
||||
"type": "object",
|
||||
"required": ["user"],
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": ["displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Brian Murphy"
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^%user_id_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^%permissions_id_pattern%$"
|
||||
},
|
||||
"invitation": {
|
||||
"type": "object",
|
||||
"required": ["invitedBy"],
|
||||
"properties": {
|
||||
"invitedBy": {
|
||||
"type": "object",
|
||||
"required": ["user"],
|
||||
"properties": {
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": ["displayName", "id"],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Alice Hansen"
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^%user_id_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
Examples:
|
||||
| permissions-role |
|
||||
| Uploader |
|
||||
| Editor |
|
||||
| Viewer |
|
||||
|
||||
@issue-10768
|
||||
Scenario Outline: sharer updates share permissions role of space to Space Editor Without Versions without enabling it
|
||||
Given using spaces DAV path
|
||||
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
|
||||
And user "Alice" has created a space "new-space" with the default quota using the Graph API
|
||||
And user "Alice" has sent the following space share invitation:
|
||||
| space | new-space |
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permissions-role> |
|
||||
When user "Alice" updates the last drive share with the following using root endpoint of the Graph API:
|
||||
| permissionsRole | Space Editor Without Versions |
|
||||
| space | new-space |
|
||||
| shareType | user |
|
||||
| sharee | Brian |
|
||||
Then the HTTP status code should be "200"
|
||||
And the JSON data of the response should match
|
||||
"""
|
||||
{
|
||||
"type": "object",
|
||||
"required": [
|
||||
"@libre.graph.permissions.actions",
|
||||
"grantedToV2",
|
||||
"id"
|
||||
],
|
||||
"properties": {
|
||||
"@libre.graph.permissions.actions": {
|
||||
"const": [
|
||||
"libre.graph/driveItem/children/create",
|
||||
"libre.graph/driveItem/standard/delete",
|
||||
"libre.graph/driveItem/path/read",
|
||||
"libre.graph/driveItem/quota/read",
|
||||
"libre.graph/driveItem/content/read",
|
||||
"libre.graph/driveItem/upload/create",
|
||||
"libre.graph/driveItem/permissions/read",
|
||||
"libre.graph/driveItem/children/read",
|
||||
"libre.graph/driveItem/deleted/read",
|
||||
"libre.graph/driveItem/path/update",
|
||||
"libre.graph/driveItem/deleted/update",
|
||||
"libre.graph/driveItem/basic/read"
|
||||
]
|
||||
},
|
||||
"grantedToV2": {
|
||||
"type": "object",
|
||||
"required": ["user"],
|
||||
"properties":{
|
||||
"user": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"displayName",
|
||||
"id"
|
||||
],
|
||||
"properties": {
|
||||
"displayName": {
|
||||
"const": "Brian Murphy"
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^%user_id_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"id": {
|
||||
"pattern": "^u:%user_id_pattern%$"
|
||||
}
|
||||
}
|
||||
}
|
||||
"""
|
||||
Examples:
|
||||
| permissions-role |
|
||||
| Space Viewer |
|
||||
| Space Editor |
|
||||
| Manager |
|
||||
@@ -519,7 +519,7 @@ Feature: Change data of space
|
||||
|
||||
Scenario Outline: user can't upload resource greater than set quota
|
||||
Given the administrator has assigned the role "<user-role>" to user "Alice" using the Graph API
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "15"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "15"
|
||||
When user "Alice" uploads a file inside space "Alice Hansen" with content "file is more than 15 bytes" to "file.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And for user "Alice" the space "Personal" should not contain these entries:
|
||||
|
||||
@@ -108,7 +108,7 @@ Feature: State of the quota
|
||||
|
||||
|
||||
Scenario Outline: check the relative amount of quota of personal space
|
||||
Given user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "10000"
|
||||
Given user "Admin" has changed the quota of space "Alice Hansen" to "10000"
|
||||
And user "Alice" has uploaded file "<file-upload>" to "/demo.txt"
|
||||
When the user "Alice" requests these endpoints with "GET" with basic auth
|
||||
| endpoint |
|
||||
@@ -141,7 +141,7 @@ Feature: State of the quota
|
||||
|
||||
|
||||
Scenario: user can restore a file version even if there is not enough quota to do so
|
||||
Given user "Admin" has changed the quota of the "Alice Hansen" space to "30"
|
||||
Given user "Admin" has changed the quota of space "Alice Hansen" to "30"
|
||||
And user "Alice" has uploaded file with content "file is less than 30 bytes" to "/file.txt"
|
||||
And user "Alice" has uploaded file with content "reduceContent" to "/file.txt"
|
||||
And user "Alice" has uploaded file with content "some content" to "newFile.txt"
|
||||
|
||||
@@ -57,7 +57,7 @@ Feature: Tag
|
||||
|
||||
Scenario: user creates tags for resources in the personal space
|
||||
Given user "Alice" has created a folder "folderMain" in space "Alice Hansen"
|
||||
And user "Alice" has uploaded a file inside space "Alice Hansen" with content "some content" to "file.txt"
|
||||
And user "Alice" has uploaded a file inside space "Personal" with content "some content" to "file.txt"
|
||||
When user "Alice" creates the following tags for folder "folderMain" of space "Alice Hansen":
|
||||
| my tag |
|
||||
| important |
|
||||
|
||||
@@ -331,7 +331,7 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "FOLDER" synced
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And as "Alice" file "/FOLDER/textfile.txt" should not exist
|
||||
@@ -348,7 +348,7 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "FOLDER" synced
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And as "Alice" file "/FOLDER/textfile.txt" should not exist
|
||||
@@ -363,7 +363,7 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissionsRole | Uploader |
|
||||
And user "Brian" has a share "FOLDER" synced
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new description" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And as "Alice" file "/FOLDER/textfile.txt" should not exist
|
||||
@@ -380,7 +380,7 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissionsRole | Uploader |
|
||||
And user "Brian" has a share "FOLDER" synced
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "10"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "10"
|
||||
When user "Brian" uploads a file inside space "Shares" with content "new descriptionfgshsywhhh" to "/FOLDER/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And as "Alice" file "/FOLDER/textfile.txt" should not exist
|
||||
|
||||
+24
-10
@@ -23,6 +23,7 @@ Feature: sharing
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | File Editor |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
And user "Brian" has moved file "/Shares/textfile0.txt" to "/Shares/anotherName.txt"
|
||||
When user "Alice" deletes the last share using the sharing API
|
||||
Then the OCS status code should be "<ocs-status-code>"
|
||||
@@ -45,6 +46,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
When user "Alice" deletes the last share using the sharing API
|
||||
Then the OCS status code should be "<ocs-status-code>"
|
||||
And the HTTP status code should be "200"
|
||||
@@ -67,6 +69,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "sub" synced
|
||||
When user "Alice" deletes folder "/common" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And as "Brian" folder "/Shares/sub" should not exist
|
||||
@@ -89,6 +92,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "shared" synced
|
||||
When user "Brian" deletes file "/Shares/shared/shared_file.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And as "Brian" file "/Shares/shared/shared_file.txt" should not exist
|
||||
@@ -114,6 +118,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "shared" synced
|
||||
When user "Brian" deletes folder "/Shares/shared/sub" using the WebDAV API
|
||||
Then the HTTP status code should be "204"
|
||||
And as "Brian" folder "/Shares/shared/sub" should not exist
|
||||
@@ -144,6 +149,7 @@ Feature: sharing
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "parent.txt" synced
|
||||
And user "Carol" has stored etag of element "/PARENT"
|
||||
And user "Brian" has stored etag of element "/"
|
||||
And user "Brian" has stored etag of element "/Shares"
|
||||
@@ -165,6 +171,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "shared" synced
|
||||
When user "Brian" deletes file "/Shares/shared/shared_file.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And as "Alice" file "/shared/shared_file.txt" should exist
|
||||
@@ -187,6 +194,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Uploader |
|
||||
And user "Brian" has a share "shared" synced
|
||||
When user "Brian" deletes file "/Shares/shared/shared_file.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
And as "Alice" file "/shared/shared_file.txt" should exist
|
||||
@@ -208,6 +216,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Uploader |
|
||||
And user "Brian" has a share "shared" synced
|
||||
And user "Brian" has uploaded file "filesForUpload/textfile.txt" to "/Shares/shared/textfile.txt"
|
||||
When user "Brian" deletes file "/Shares/shared/textfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "403"
|
||||
@@ -237,6 +246,7 @@ Feature: sharing
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | <permission-role> |
|
||||
And user "Brian" has a share "<shared-resource>" synced
|
||||
When user "Brian" deletes the last share of user "Alice" using the sharing API
|
||||
Then the OCS status code should be "996"
|
||||
And the HTTP status code should be "<http-status-code>"
|
||||
@@ -244,11 +254,11 @@ Feature: sharing
|
||||
And as "Brian" entry "<received-entry>" should exist
|
||||
And as "Carol" entry "<received-entry>" should exist
|
||||
Examples:
|
||||
| entry-to-share | permission-role | ocs-api-version | http-status-code | received-entry |
|
||||
| /shared/shared_file.txt | File Editor | 1 | 200 | /Shares/shared_file.txt |
|
||||
| /shared/shared_file.txt | File Editor | 2 | 500 | /Shares/shared_file.txt |
|
||||
| /shared | Editor | 1 | 200 | /Shares/shared |
|
||||
| /shared | Editor | 2 | 500 | /Shares/shared |
|
||||
| entry-to-share | permission-role | ocs-api-version | http-status-code | received-entry | shared-resource |
|
||||
| /shared/shared_file.txt | File Editor | 1 | 200 | /Shares/shared_file.txt | shared_file.txt |
|
||||
| /shared/shared_file.txt | File Editor | 2 | 500 | /Shares/shared_file.txt | shared_file.txt |
|
||||
| /shared | Editor | 1 | 200 | /Shares/shared | shared |
|
||||
| /shared | Editor | 2 | 500 | /Shares/shared | shared |
|
||||
|
||||
|
||||
Scenario Outline: individual share recipient tries to delete the share
|
||||
@@ -262,17 +272,18 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | <permission-role> |
|
||||
And user "Brian" has a share "<shared-resource>" synced
|
||||
When user "Brian" deletes the last share of user "Alice" using the sharing API
|
||||
Then the OCS status code should be "996"
|
||||
And the HTTP status code should be "<http-status-code>"
|
||||
And as "Alice" entry "<entry-to-share>" should exist
|
||||
And as "Brian" entry "<received-entry>" should exist
|
||||
Examples:
|
||||
| entry-to-share | permission-role | ocs-api-version | http-status-code | received-entry |
|
||||
| /shared/shared_file.txt | File Editor | 1 | 200 | /Shares/shared_file.txt |
|
||||
| /shared/shared_file.txt | File Editor | 2 | 500 | /Shares/shared_file.txt |
|
||||
| /shared | Editor | 1 | 200 | /Shares/shared |
|
||||
| /shared | Editor | 2 | 500 | /Shares/shared |
|
||||
| entry-to-share | permission-role | ocs-api-version | http-status-code | received-entry | shared-resource |
|
||||
| /shared/shared_file.txt | File Editor | 1 | 200 | /Shares/shared_file.txt | shared_file.txt |
|
||||
| /shared/shared_file.txt | File Editor | 2 | 500 | /Shares/shared_file.txt | shared_file.txt |
|
||||
| /shared | Editor | 1 | 200 | /Shares/shared | shared |
|
||||
| /shared | Editor | 2 | 500 | /Shares/shared | shared |
|
||||
|
||||
@issue-720
|
||||
Scenario Outline: request PROPFIND after sharer deletes the collaborator
|
||||
@@ -284,6 +295,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | File Editor |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
When user "Alice" deletes the last share using the sharing API
|
||||
Then the OCS status code should be "<ocs-status-code>"
|
||||
And the HTTP status code should be "200"
|
||||
@@ -304,6 +316,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | File Editor |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
When user "Brian" tries to delete the last share of user "Alice" using the sharing API
|
||||
Then the HTTP status code should be "<http-status-code>"
|
||||
And the OCS status code should be "996"
|
||||
@@ -321,6 +334,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | File Editor |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
When user "Alice" unshares file "textfile0.txt" shared to "Brian"
|
||||
Then the OCS status code should be "<ocs-status-code>"
|
||||
And the HTTP status code should be "200"
|
||||
|
||||
@@ -20,6 +20,7 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
And using SharingNG
|
||||
When user "Brian" gets all the shares shared with him using the sharing API
|
||||
Then the OCS status code should be "<ocs-status-code>"
|
||||
@@ -46,6 +47,8 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
And user "Brian" has a share "textfile1.txt" synced
|
||||
And using SharingNG
|
||||
When user "Brian" gets all the shares shared with him that are received as file "/Shares/textfile1.txt" using the provisioning API
|
||||
Then the OCS status code should be "<ocs-status-code>"
|
||||
@@ -72,6 +75,8 @@ Feature: sharing
|
||||
| sharee | Brian |
|
||||
| shareType | user |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
And user "Brian" has a share "textfile1.txt" synced
|
||||
And using SharingNG
|
||||
When user "Brian" gets all the shares shared with him that are received as file "/Shares/textfile0.txt" using the provisioning API
|
||||
Then the OCS status code should be "<ocs-status-code>"
|
||||
@@ -93,6 +98,7 @@ Feature: sharing
|
||||
| sharee | grp1 |
|
||||
| shareType | group |
|
||||
| permissionsRole | Viewer |
|
||||
And user "Brian" has a share "textfile0.txt" synced
|
||||
And using SharingNG
|
||||
When user "Brian" gets all the shares shared with him using the sharing API
|
||||
Then the OCS status code should be "<ocs-status-code>"
|
||||
|
||||
@@ -167,7 +167,7 @@ Feature: sharing
|
||||
Scenario Outline: check quota of owners parent directory of a shared file
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
And user "Admin" has changed the quota of the personal space of "Brian Murphy" space to "0"
|
||||
And user "Admin" has changed the quota of space "Brian Murphy" to "0"
|
||||
And user "Alice" has uploaded file "filesForUpload/lorem.txt" to "/myfile.txt"
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | myfile.txt |
|
||||
@@ -204,7 +204,7 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "FOLDER" synced
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When user "Brian" uploads file "filesForUpload/textfile.txt" to "/Shares/FOLDER/myfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And as "Alice" file "/FOLDER/myfile.txt" should not exist
|
||||
@@ -228,7 +228,7 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissionsRole | Editor |
|
||||
And user "Brian" has a share "FOLDER" synced
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When user "Brian" uploads file "filesForUpload/textfile.txt" to "/Shares/FOLDER/myfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And as "Alice" file "/FOLDER/myfile.txt" should not exist
|
||||
@@ -250,7 +250,7 @@ Feature: sharing
|
||||
| shareType | user |
|
||||
| permissionsRole | Uploader |
|
||||
And user "Brian" has a share "FOLDER" synced
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When user "Brian" uploads file "filesForUpload/textfile.txt" to "/Shares/FOLDER/myfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And as "Alice" file "/FOLDER/myfile.txt" should not exist
|
||||
@@ -274,7 +274,7 @@ Feature: sharing
|
||||
| shareType | group |
|
||||
| permissionsRole | Uploader |
|
||||
And user "Brian" has a share "FOLDER" synced
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When user "Brian" uploads file "filesForUpload/textfile.txt" to "/Shares/FOLDER/myfile.txt" using the WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
And as "Alice" file "/FOLDER/myfile.txt" should not exist
|
||||
|
||||
@@ -86,7 +86,7 @@ Feature: upload to a public link share
|
||||
| space | Personal |
|
||||
| permissionsRole | edit |
|
||||
| password | %public% |
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When the public uploads file "test.txt" with password "%public%" and content "test2" using the public WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
|
||||
@@ -98,7 +98,7 @@ Feature: upload to a public link share
|
||||
| space | Personal |
|
||||
| permissionsRole | createOnly |
|
||||
| password | %public% |
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "1"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "1"
|
||||
When the public uploads file "test.txt" with password "%public%" and content "test2" using the public WebDAV API
|
||||
Then the HTTP status code should be "507"
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ Feature: get quota
|
||||
Scenario Outline: retrieving folder quota of shared folder with quota when no quota is set for recipient
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "0"
|
||||
And user "Admin" has changed the quota of the personal space of "Brian Murphy" space to "10000"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "0"
|
||||
And user "Admin" has changed the quota of space "Brian Murphy" to "10000"
|
||||
And user "Brian" has created folder "/testquota"
|
||||
And user "Brian" has uploaded file "/testquota/Brian.txt" of size 1000 bytes
|
||||
And user "Brian" has sent the following resource share invitation:
|
||||
@@ -61,7 +61,7 @@ Feature: get quota
|
||||
@issue-8197
|
||||
Scenario Outline: retrieving folder quota when quota is set and a file was uploaded
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Admin" has changed the quota of the personal space of "Alice Hansen" space to "10000"
|
||||
And user "Admin" has changed the quota of space "Alice Hansen" to "10000"
|
||||
And user "Alice" has uploaded file "/prueba.txt" of size 1000 bytes
|
||||
When user "Alice" gets the following properties of folder "/" using the WebDAV API
|
||||
| propertyName |
|
||||
@@ -78,7 +78,7 @@ Feature: get quota
|
||||
Scenario Outline: retrieving folder quota when quota is set and a file was received
|
||||
Given using <dav-path-version> DAV path
|
||||
And user "Brian" has been created with default attributes
|
||||
And user "Admin" has changed the quota of the personal space of "Brian Murphy" space to "10000"
|
||||
And user "Admin" has changed the quota of space "Brian Murphy" to "10000"
|
||||
And user "Alice" has uploaded file "/Alice.txt" of size 93 bytes
|
||||
And user "Alice" has sent the following resource share invitation:
|
||||
| resource | Alice.txt |
|
||||
|
||||
@@ -261,10 +261,11 @@ function run_behat_tests() {
|
||||
FAILED_SCENARIO_PATHS_COLORED=`awk '/Failed scenarios:/',0 ${TEST_LOG_FILE} | grep -a feature`
|
||||
# There will be some ANSI escape codes for color in the FEATURE_COLORED var.
|
||||
# Strip them out so we can pass just the ordinary feature details to Behat.
|
||||
# Also strip everything after ".feature:XX", including text such as "(on line xx)" added by Behat indicating the failing step's line number.
|
||||
# Thanks to https://en.wikipedia.org/wiki/Tee_(command) and
|
||||
# https://stackoverflow.com/questions/23416278/how-to-strip-ansi-escape-sequences-from-a-variable
|
||||
# for ideas.
|
||||
FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS_COLORED}" | sed "s/\x1b[^m]*m//g")
|
||||
FAILED_SCENARIO_PATHS=$(echo "${FAILED_SCENARIO_PATHS_COLORED}" | sed "s/\x1b\[[0-9;]*m//g" | sed 's/\(\.feature:[0-9]\+\).*/\1/')
|
||||
|
||||
# If something else went wrong, and there were no failed scenarios,
|
||||
# then the awk, grep, sed command sequence above ends up with an empty string.
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
COMMIT_SHA_SHORT=${DRONE_COMMIT:0:8}
|
||||
BUILD_STATUS="✅ Success"
|
||||
ROOMID="!rnWsCVUmDHDJbiSPMM:matrix.org"
|
||||
|
||||
# helper functions
|
||||
log_error() {
|
||||
echo -e "\e[31m$1\e[0m"
|
||||
}
|
||||
|
||||
log_info() {
|
||||
echo -e "\e[37m$1\e[0m"
|
||||
}
|
||||
|
||||
log_success() {
|
||||
echo -e "\e[32m$1\e[0m"
|
||||
}
|
||||
|
||||
# Determine build source: nightly, tag or branch
|
||||
if [[ "$DRONE_BUILD_EVENT" == "cron" ]]; then
|
||||
BUILD_SOURCE="nightly-$DRONE_BRANCH"
|
||||
elif [[ "$DRONE_BUILD_EVENT" == "tag" ]]; then
|
||||
BUILD_SOURCE="tag $DRONE_TAG"
|
||||
else
|
||||
BUILD_SOURCE="$DRONE_BRANCH"
|
||||
fi
|
||||
|
||||
if [[ "$DRONE_BUILD_STATUS" == "failure" ]]; then
|
||||
BUILD_STATUS="❌️ Failure"
|
||||
fi
|
||||
|
||||
message_html='<b>'$BUILD_STATUS'</b> <a href="'${DRONE_BUILD_LINK}'">'${DRONE_REPO}'#'$COMMIT_SHA_SHORT'</a> ('${BUILD_SOURCE}') by <b>'${DRONE_COMMIT_AUTHOR}'</b>'
|
||||
message_html=$(echo "$message_html" | sed 's/\\/\\\\/g' | sed 's/"/\\"/g')
|
||||
|
||||
log_info "Sending report to the element chat...."
|
||||
|
||||
response=$(curl -s -o /dev/null -X PUT -w "%{http_code}" 'https://matrix.org/_matrix/client/v3/rooms/'$ROOMID'/send/m.room.message/'$(date +%s) \
|
||||
-H "Authorization: Bearer "$MATRIX_TOKEN \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{
|
||||
"msgtype": "m.text",
|
||||
"body": "'"$message_html"'",
|
||||
"format": "org.matrix.custom.html",
|
||||
"formatted_body": "'"$message_html"'"
|
||||
}')
|
||||
|
||||
if [[ "$response" != "200" ]]; then
|
||||
log_error "❌ Error: Failed to send notification to element. Expected status code 200, but got $response."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
log_success "✅ Notification successfully sent to Element chat (ownCloud Infinite Scale Alerts)"
|
||||
Reference in new issue
Block a user