From 30600cf5c219c4c8725ef7fbdb343f51c849a581 Mon Sep 17 00:00:00 2001 From: Roman Perekhod Date: Wed, 20 Nov 2024 13:14:34 +0100 Subject: [PATCH] release-2.26.7 --- CHANGELOG.md | 106 +++++++++++------- RELEASE_DATE | 2 +- VERSION | 2 +- .../fix-approvider-error.md | 0 changelog/NOTE.md | 85 ++------------ .../en/docs/changelog/2.26.7/_index.md | 30 +++++ .../grpc/services/storageprovider/_index.md | 106 +++++++++--------- 7 files changed, 156 insertions(+), 175 deletions(-) rename changelog/{unreleased => 2.26.7_2024-11-20}/fix-approvider-error.md (100%) create mode 100644 docs/content/en/docs/changelog/2.26.7/_index.md diff --git a/CHANGELOG.md b/CHANGELOG.md index fa5eae2522..ab703dcdbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,24 @@ +Changelog for reva 2.26.7 (2024-11-20) +======================================= + +The following sections list the changes in reva 2.26.7 relevant to +reva users. The changes are ordered by importance. + +Summary +------- + +* Fix #4964: Fix a wrong error code when approvider creates a new file + +Details +------- + +* Bugfix #4964: Fix a wrong error code when approvider creates a new file + + We fixed a problem where the approvider would return a 500 error instead of 403 when trying to + create a new file in a read-only share. + + https://github.com/cs3org/reva/pull/4964 + Changelog for reva 2.26.6 (2024-11-19) ======================================= @@ -12,11 +33,11 @@ Summary * Fix #4953: Avoid gateway panics * Fix #4959: Fix missing file touched event * Fix #4933: Fix federated sharing when using an external identity provider +* Fix #4956: Improve posixfs error handling and logging * Fix #4935: Enable datatx log * Fix #4936: Do not delete mlock files -* Fix #4954: Prevent a panic when logging an error -* Fix #4956: Improve posixfs error handling and logging * Fix #4951: Pass the initialized logger down the stack +* Fix #4954: Prevent a panic when logging an error Details ------- @@ -57,6 +78,12 @@ Details https://github.com/cs3org/reva/pull/4933 +* Bugfix #4956: Improve posixfs error handling and logging + + We improved error handling and logging in the posixfs storage driver. + + https://github.com/cs3org/reva/pull/4956 + * Bugfix #4935: Enable datatx log We now pass a properly initialized logger to the datatx implementations, allowing the tus @@ -72,18 +99,6 @@ Details https://github.com/cs3org/reva/pull/4936 https://github.com/cs3org/reva/pull/4924 -* Bugfix #4954: Prevent a panic when logging an error - - We fixed a panic when constructing a path failed to get the parent for a node. - - https://github.com/cs3org/reva/pull/4954 - -* Bugfix #4956: Improve posixfs error handling and logging - - We improved error handling and logging in the posixfs storage driver. - - https://github.com/cs3org/reva/pull/4956 - * Bugfix #4951: Pass the initialized logger down the stack We now make the initialized logger available to grpc services and storage drivers, which @@ -91,6 +106,12 @@ Details https://github.com/cs3org/reva/pull/4951 +* Bugfix #4954: Prevent a panic when logging an error + + We fixed a panic when constructing a path failed to get the parent for a node. + + https://github.com/cs3org/reva/pull/4954 + Changelog for reva 2.26.5 (2024-11-12) ======================================= @@ -5159,6 +5180,34 @@ Details https://github.com/cs3org/reva/pull/3083 +Changelog for reva 2.7.1 (2022-07-15) +======================================= + +The following sections list the changes in reva 2.7.1 relevant to +reva users. The changes are ordered by importance. + +Summary +------- + +* Fix #3080: Make dataproviders return more headers +* Enh #3046: Add user filter + +Details +------- + +* Bugfix #3080: Make dataproviders return more headers + + Instead of ocdav doing an additional Stat request we now rely on the dataprovider to return the + necessary metadata information as headers. + + https://github.com/owncloud/reva/issues/3080 + +* Enhancement #3046: Add user filter + + This PR adds the ability to filter spaces by user-id + + https://github.com/cs3org/reva/pull/3046 + Changelog for reva 2.7.0 (2022-07-15) ======================================= @@ -5291,34 +5340,6 @@ Details https://github.com/owncloud/ocis/issues/3073 https://github.com/cs3org/reva/pull/2977 -Changelog for reva 2.7.1 (2022-07-15) -======================================= - -The following sections list the changes in reva 2.7.1 relevant to -reva users. The changes are ordered by importance. - -Summary -------- - -* Fix #3080: Make dataproviders return more headers -* Enh #3046: Add user filter - -Details -------- - -* Bugfix #3080: Make dataproviders return more headers - - Instead of ocdav doing an additional Stat request we now rely on the dataprovider to return the - necessary metadata information as headers. - - https://github.com/owncloud/reva/issues/3080 - -* Enhancement #3046: Add user filter - - This PR adds the ability to filter spaces by user-id - - https://github.com/cs3org/reva/pull/3046 - Changelog for reva 2.6.1 (2022-06-27) ======================================= @@ -11571,3 +11592,4 @@ Details from Drone into Github pages. https://github.com/cs3org/reva/pull/334 + diff --git a/RELEASE_DATE b/RELEASE_DATE index ae87a9fe77..0a5877fa56 100644 --- a/RELEASE_DATE +++ b/RELEASE_DATE @@ -1 +1 @@ -2024-11-19 \ No newline at end of file +2024-11-20 \ No newline at end of file diff --git a/VERSION b/VERSION index 06994f8fbe..95bac8a8bc 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.26.6 \ No newline at end of file +2.26.7 \ No newline at end of file diff --git a/changelog/unreleased/fix-approvider-error.md b/changelog/2.26.7_2024-11-20/fix-approvider-error.md similarity index 100% rename from changelog/unreleased/fix-approvider-error.md rename to changelog/2.26.7_2024-11-20/fix-approvider-error.md diff --git a/changelog/NOTE.md b/changelog/NOTE.md index f158652834..9c06b7434b 100644 --- a/changelog/NOTE.md +++ b/changelog/NOTE.md @@ -1,92 +1,21 @@ -Changelog for reva 2.26.6 (2024-11-19) +Changelog for reva 2.26.7 (2024-11-20) ======================================= -The following sections list the changes in reva 2.26.6 relevant to +The following sections list the changes in reva 2.26.7 relevant to reva users. The changes are ordered by importance. Summary ------- -* Fix #4955: Allow small clock skew in reva token validation -* Fix #4929: Fix flaky posixfs integration tests -* Fix #4953: Avoid gateway panics -* Fix #4959: Fix missing file touched event -* Fix #4933: Fix federated sharing when using an external identity provider -* Fix #4935: Enable datatx log -* Fix #4936: Do not delete mlock files -* Fix #4954: Prevent a panic when logging an error -* Fix #4956: Improve posixfs error handling and logging -* Fix #4951: Pass the initialized logger down the stack +* Fix #4964: Fix a wrong error code when approvider creates a new file Details ------- -* Bugfix #4955: Allow small clock skew in reva token validation +* Bugfix #4964: Fix a wrong error code when approvider creates a new file - Allow for a small clock skew (3 seconds by default) when validating reva tokens as the different - services might be running on different machines. + We fixed a problem where the approvider would return a 500 error instead of 403 when trying to + create a new file in a read-only share. - https://github.com/cs3org/reva/issues/4952 - https://github.com/cs3org/reva/pull/4955 + https://github.com/cs3org/reva/pull/4964 -* Bugfix #4929: Fix flaky posixfs integration tests - - We fixed a problem with the posixfs integration tests where the in-memory id cache sometimes - hadn't caught up with the cleanup between test runs leading to flaky failures. - - https://github.com/cs3org/reva/pull/4929 - -* Bugfix #4953: Avoid gateway panics - - The gateway would panic if there is a missing user in the context. Now it errors instead. - - https://github.com/cs3org/reva/issues/4953 - -* Bugfix #4959: Fix missing file touched event - - We have fixed an issue where the `file touched` event was not being triggered when an office - document was created. - - https://github.com/owncloud/ocis/issues/8950 - https://github.com/cs3org/reva/pull/4959 - -* Bugfix #4933: Fix federated sharing when using an external identity provider - - We fixes and issue that caused federated sharing to fail when the identity provider url did not - match the federation provider url. - - https://github.com/cs3org/reva/pull/4933 - -* Bugfix #4935: Enable datatx log - - We now pass a properly initialized logger to the datatx implementations, allowing the tus - handler to log with the same level as the rest of reva. - - https://github.com/cs3org/reva/pull/4935 - -* Bugfix #4936: Do not delete mlock files - - To prevent stale NFS file handles we no longer delete empty mlock files after updating the - metadata. - - https://github.com/cs3org/reva/pull/4936 - https://github.com/cs3org/reva/pull/4924 - -* Bugfix #4954: Prevent a panic when logging an error - - We fixed a panic when constructing a path failed to get the parent for a node. - - https://github.com/cs3org/reva/pull/4954 - -* Bugfix #4956: Improve posixfs error handling and logging - - We improved error handling and logging in the posixfs storage driver. - - https://github.com/cs3org/reva/pull/4956 - -* Bugfix #4951: Pass the initialized logger down the stack - - We now make the initialized logger available to grpc services and storage drivers, which - allows for easier and more uniform logging. - - https://github.com/cs3org/reva/pull/4951 diff --git a/docs/content/en/docs/changelog/2.26.7/_index.md b/docs/content/en/docs/changelog/2.26.7/_index.md new file mode 100644 index 0000000000..75ffd6feea --- /dev/null +++ b/docs/content/en/docs/changelog/2.26.7/_index.md @@ -0,0 +1,30 @@ + +--- +title: "v2.26.7" +linkTitle: "v2.26.7" +weight: 40 +description: > + Changelog for Reva v2.26.7 (2024-11-20) +--- + +Changelog for reva 2.26.7 (2024-11-20) +======================================= + +The following sections list the changes in reva 2.26.7 relevant to +reva users. The changes are ordered by importance. + +Summary +------- + +* Fix #4964: Fix a wrong error code when approvider creates a new file + +Details +------- + +* Bugfix #4964: Fix a wrong error code when approvider creates a new file + + We fixed a problem where the approvider would return a 500 error instead of 403 when trying to + create a new file in a read-only share. + + https://github.com/cs3org/reva/pull/4964 + diff --git a/docs/content/en/docs/config/grpc/services/storageprovider/_index.md b/docs/content/en/docs/config/grpc/services/storageprovider/_index.md index 1a6eb0ea7f..11dc5e468a 100644 --- a/docs/content/en/docs/config/grpc/services/storageprovider/_index.md +++ b/docs/content/en/docs/config/grpc/services/storageprovider/_index.md @@ -6,130 +6,130 @@ description: > Configuration for the storageprovider service --- -# _struct: eventconfig_ +# _struct: config_ -{{% dir name="nats_address" type="string" default="address of the nats server" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L77) +{{% dir name="driver" type="string" default="localhome" %}} +The storage driver to be used. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L65) {{< highlight toml >}} [grpc.services.storageprovider] -nats_address = "address of the nats server" +driver = "localhome" {{< /highlight >}} {{% /dir %}} -{{% dir name="nats_clusterid" type="string" default="clusterid of the nats server" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L78) +{{% dir name="drivers" type="map[string]map[string]interface{}" default="localhome" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L66) {{< highlight toml >}} -[grpc.services.storageprovider] -nats_clusterid = "clusterid of the nats server" +[grpc.services.storageprovider.drivers.localhome] +root = "/var/tmp/reva/" +share_folder = "/MyShares" +user_layout = "{{.Username}}" + {{< /highlight >}} {{% /dir %}} -{{% dir name="tls_insecure" type="bool" default=Whether to verify the server TLS certificates. %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L79) +{{% dir name="data_server_url" type="string" default="http://localhost/data" %}} +The URL for the data server. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L67) {{< highlight toml >}} [grpc.services.storageprovider] -tls_insecure = Whether to verify the server TLS certificates. +data_server_url = "http://localhost/data" {{< /highlight >}} {{% /dir %}} -{{% dir name="tls_root_ca_cert" type="string" default="The root CA certificate used to validate the server's TLS certificate." %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L80) +{{% dir name="expose_data_server" type="bool" default=false %}} +Whether to expose data server. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L68) {{< highlight toml >}} [grpc.services.storageprovider] -tls_root_ca_cert = "The root CA certificate used to validate the server's TLS certificate." +expose_data_server = false {{< /highlight >}} {{% /dir %}} -{{% dir name="nats_enable_tls" type="bool" default=events tls switch %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L81) +{{% dir name="available_checksums" type="map[string]uint32" default=nil %}} +List of available checksums. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L69) {{< highlight toml >}} [grpc.services.storageprovider] -nats_enable_tls = events tls switch +available_checksums = nil {{< /highlight >}} {{% /dir %}} -{{% dir name="nats_username" type="string" default="event stream username" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L82) +{{% dir name="custom_mimetypes_json" type="string" default="nil" %}} +An optional mapping file with the list of supported custom file extensions and corresponding mime types. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L70) {{< highlight toml >}} [grpc.services.storageprovider] -nats_username = "event stream username" +custom_mimetypes_json = "nil" {{< /highlight >}} {{% /dir %}} -{{% dir name="nats_password" type="string" default="event stream password" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L83) +{{% dir name="upload_expiration" type="int64" default=0 %}} +Duration for how long uploads will be valid. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L72) {{< highlight toml >}} [grpc.services.storageprovider] -nats_password = "event stream password" +upload_expiration = 0 {{< /highlight >}} {{% /dir %}} -# _struct: config_ - -{{% dir name="driver" type="string" default="localhome" %}} -The storage driver to be used. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L65) +{{% dir name="events" type="eventconfig" default=0 %}} +Event stream configuration [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L73) {{< highlight toml >}} [grpc.services.storageprovider] -driver = "localhome" +events = 0 {{< /highlight >}} {{% /dir %}} -{{% dir name="drivers" type="map[string]map[string]interface{}" default="localhome" %}} - [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L66) -{{< highlight toml >}} -[grpc.services.storageprovider.drivers.localhome] -root = "/var/tmp/reva/" -share_folder = "/MyShares" -user_layout = "{{.Username}}" +# _struct: eventconfig_ +{{% dir name="nats_address" type="string" default="address of the nats server" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L77) +{{< highlight toml >}} +[grpc.services.storageprovider] +nats_address = "address of the nats server" {{< /highlight >}} {{% /dir %}} -{{% dir name="data_server_url" type="string" default="http://localhost/data" %}} -The URL for the data server. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L67) +{{% dir name="nats_clusterid" type="string" default="clusterid of the nats server" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L78) {{< highlight toml >}} [grpc.services.storageprovider] -data_server_url = "http://localhost/data" +nats_clusterid = "clusterid of the nats server" {{< /highlight >}} {{% /dir %}} -{{% dir name="expose_data_server" type="bool" default=false %}} -Whether to expose data server. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L68) +{{% dir name="tls_insecure" type="bool" default=Whether to verify the server TLS certificates. %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L79) {{< highlight toml >}} [grpc.services.storageprovider] -expose_data_server = false +tls_insecure = Whether to verify the server TLS certificates. {{< /highlight >}} {{% /dir %}} -{{% dir name="available_checksums" type="map[string]uint32" default=nil %}} -List of available checksums. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L69) +{{% dir name="tls_root_ca_cert" type="string" default="The root CA certificate used to validate the server's TLS certificate." %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L80) {{< highlight toml >}} [grpc.services.storageprovider] -available_checksums = nil +tls_root_ca_cert = "The root CA certificate used to validate the server's TLS certificate." {{< /highlight >}} {{% /dir %}} -{{% dir name="custom_mimetypes_json" type="string" default="nil" %}} -An optional mapping file with the list of supported custom file extensions and corresponding mime types. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L70) +{{% dir name="nats_enable_tls" type="bool" default=events tls switch %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L81) {{< highlight toml >}} [grpc.services.storageprovider] -custom_mimetypes_json = "nil" +nats_enable_tls = events tls switch {{< /highlight >}} {{% /dir %}} -{{% dir name="upload_expiration" type="int64" default=0 %}} -Duration for how long uploads will be valid. [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L72) +{{% dir name="nats_username" type="string" default="event stream username" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L82) {{< highlight toml >}} [grpc.services.storageprovider] -upload_expiration = 0 +nats_username = "event stream username" {{< /highlight >}} {{% /dir %}} -{{% dir name="events" type="eventconfig" default=0 %}} -Event stream configuration [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L73) +{{% dir name="nats_password" type="string" default="event stream password" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L83) {{< highlight toml >}} [grpc.services.storageprovider] -events = 0 +nats_password = "event stream password" {{< /highlight >}} {{% /dir %}}