From 325bf9a5ca8b9465ab05e274e9bae3bacbb74e2e Mon Sep 17 00:00:00 2001 From: Roman Perekhod Date: Mon, 23 Sep 2024 14:33:07 +0200 Subject: [PATCH] release-2.19.9 --- CHANGELOG.md | 72 ++++++++---- VERSION | 2 +- .../fix-micro-ocdav-registry.md | 0 .../fix-nats-encoding.md | 0 changelog/NOTE.md | 37 +++--- .../en/docs/changelog/2.19.9/_index.md | 39 +++++++ .../grpc/services/storageprovider/_index.md | 106 +++++++++--------- 7 files changed, 157 insertions(+), 99 deletions(-) rename changelog/{unreleased => 2.19.9_2024-09-23}/fix-micro-ocdav-registry.md (100%) rename changelog/{unreleased => 2.19.9_2024-09-23}/fix-nats-encoding.md (100%) create mode 100644 docs/content/en/docs/changelog/2.19.9/_index.md diff --git a/CHANGELOG.md b/CHANGELOG.md index c35ec041db..778fa9adbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,33 @@ +Changelog for reva 2.19.9 (2024-09-23) +======================================= + +The following sections list the changes in reva 2.19.9 relevant to +reva users. The changes are ordered by importance. + +Summary +------- + +* Fix #4842: Fix micro ocdav service init and registration +* Fix #4862: Fix nats encoding + +Details +------- + +* Bugfix #4842: Fix micro ocdav service init and registration + + We no longer call Init to configure default options because it was replacing the existing + options. + + https://github.com/cs3org/reva/pull/4842 + https://github.com/cs3org/reva/pull/4774 + +* Bugfix #4862: Fix nats encoding + + Encode nats-js-kv keys. This got lost by a dependency bump. + + https://github.com/cs3org/reva/pull/4862 + https://github.com/cs3org/reva/pull/4678 + Changelog for reva 2.19.8 (2024-09-23) ======================================= @@ -4526,27 +4556,6 @@ Details https://github.com/cs3org/reva/pull/2922 -Changelog for reva 2.4.1 (2022-05-24) -======================================= - -The following sections list the changes in reva 2.4.1 relevant to -reva users. The changes are ordered by importance. - -Summary -------- - -* Fix #2891: Add missing http status code - -Details -------- - -* Bugfix #2891: Add missing http status code - - This Fix adds a missing status code to the InsufficientStorage error in reva, to allow tus to - pass it through. - - https://github.com/cs3org/reva/pull/2891 - Changelog for reva 2.4.0 (2022-05-24) ======================================= @@ -4690,6 +4699,27 @@ Details https://github.com/cs3org/reva/pull/2792 +Changelog for reva 2.4.1 (2022-05-24) +======================================= + +The following sections list the changes in reva 2.4.1 relevant to +reva users. The changes are ordered by importance. + +Summary +------- + +* Fix #2891: Add missing http status code + +Details +------- + +* Bugfix #2891: Add missing http status code + + This Fix adds a missing status code to the InsufficientStorage error in reva, to allow tus to + pass it through. + + https://github.com/cs3org/reva/pull/2891 + Changelog for reva 2.3.1 (2022-05-08) ======================================= diff --git a/VERSION b/VERSION index e946730a60..6d877d1d09 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.19.8 \ No newline at end of file +2.19.9 \ No newline at end of file diff --git a/changelog/unreleased/fix-micro-ocdav-registry.md b/changelog/2.19.9_2024-09-23/fix-micro-ocdav-registry.md similarity index 100% rename from changelog/unreleased/fix-micro-ocdav-registry.md rename to changelog/2.19.9_2024-09-23/fix-micro-ocdav-registry.md diff --git a/changelog/unreleased/fix-nats-encoding.md b/changelog/2.19.9_2024-09-23/fix-nats-encoding.md similarity index 100% rename from changelog/unreleased/fix-nats-encoding.md rename to changelog/2.19.9_2024-09-23/fix-nats-encoding.md diff --git a/changelog/NOTE.md b/changelog/NOTE.md index 52d995fa2f..dcf6bd1b63 100644 --- a/changelog/NOTE.md +++ b/changelog/NOTE.md @@ -1,41 +1,30 @@ -Changelog for reva 2.19.8 (2024-09-23) +Changelog for reva 2.19.9 (2024-09-23) ======================================= -The following sections list the changes in reva 2.19.8 relevant to +The following sections list the changes in reva 2.19.9 relevant to reva users. The changes are ordered by importance. Summary ------- -* Fix #4761: Quotes in dav Content-Disposition header -* Fix #4853: Write upload session info atomically -* Enh #4701: Extend service account permissions +* Fix #4842: Fix micro ocdav service init and registration +* Fix #4862: Fix nats encoding Details ------- -* Bugfix #4761: Quotes in dav Content-Disposition header +* Bugfix #4842: Fix micro ocdav service init and registration - We've fixed the the quotes in the dav `Content-Disposition` header. They caused an issue where - certain browsers would decode the quotes and falsely prepend them to the filename. + We no longer call Init to configure default options because it was replacing the existing + options. - https://github.com/owncloud/web/issues/11031 - https://github.com/owncloud/web/issues/11169 - https://github.com/cs3org/reva/pull/4761 + https://github.com/cs3org/reva/pull/4842 + https://github.com/cs3org/reva/pull/4774 -* Bugfix #4853: Write upload session info atomically +* Bugfix #4862: Fix nats encoding - We now use a lock and atomic write on upload session metadata to prevent empty reads. A virus scan - event might cause the file to be truncated and then a finished event might try to read the file, - just getting an empty string. + Encode nats-js-kv keys. This got lost by a dependency bump. - Backport of https://github.com/cs3org/reva/pull/4850 - - https://github.com/cs3org/reva/pull/4853 - -* Enhancement #4701: Extend service account permissions - - Adds AddGrant permisson - - https://github.com/cs3org/reva/pull/4701 + https://github.com/cs3org/reva/pull/4862 + https://github.com/cs3org/reva/pull/4678 diff --git a/docs/content/en/docs/changelog/2.19.9/_index.md b/docs/content/en/docs/changelog/2.19.9/_index.md new file mode 100644 index 0000000000..80b6ebfa77 --- /dev/null +++ b/docs/content/en/docs/changelog/2.19.9/_index.md @@ -0,0 +1,39 @@ + +--- +title: "v2.19.9" +linkTitle: "v2.19.9" +weight: 40 +description: > + Changelog for Reva v2.19.9 (2024-09-23) +--- + +Changelog for reva 2.19.9 (2024-09-23) +======================================= + +The following sections list the changes in reva 2.19.9 relevant to +reva users. The changes are ordered by importance. + +Summary +------- + +* Fix #4842: Fix micro ocdav service init and registration +* Fix #4862: Fix nats encoding + +Details +------- + +* Bugfix #4842: Fix micro ocdav service init and registration + + We no longer call Init to configure default options because it was replacing the existing + options. + + https://github.com/cs3org/reva/pull/4842 + https://github.com/cs3org/reva/pull/4774 + +* Bugfix #4862: Fix nats encoding + + Encode nats-js-kv keys. This got lost by a dependency bump. + + https://github.com/cs3org/reva/pull/4862 + https://github.com/cs3org/reva/pull/4678 + 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 4fa5683f5c..fe6e717d5f 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#L75) +{{% 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#L63) {{< 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#L76) +{{% 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#L64) {{< 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#L77) +{{% 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#L65) {{< 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#L78) +{{% 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#L66) {{< 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#L79) +{{% 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#L67) {{< 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#L80) +{{% 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#L68) {{< 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#L81) +{{% 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#L70) {{< 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#L63) +{{% dir name="events" type="eventconfig" default=0 %}} +Event stream configuration [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L71) {{< 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#L64) -{{< 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#L75) +{{< 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#L65) +{{% 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#L76) {{< 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#L66) +{{% 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#L77) {{< 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#L67) +{{% 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#L78) {{< 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#L68) +{{% 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#L79) {{< 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#L70) +{{% dir name="nats_username" type="string" default="event stream username" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L80) {{< 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#L71) +{{% dir name="nats_password" type="string" default="event stream password" %}} + [[Ref]](https://github.com/cs3org/reva/tree/master/internal/grpc/services/storageprovider/storageprovider.go#L81) {{< highlight toml >}} [grpc.services.storageprovider] -events = 0 +nats_password = "event stream password" {{< /highlight >}} {{% /dir %}}