From c7d8ec1466e67fa7018217631b39cf72b752a50c Mon Sep 17 00:00:00 2001 From: Benedikt Kulmann Date: Tue, 8 Dec 2020 15:23:59 +0100 Subject: [PATCH] Disable public link expiration by default --- changelog/unreleased/storage-public-link-expiration.md | 8 ++++++++ storage/pkg/command/frontend.go | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 changelog/unreleased/storage-public-link-expiration.md diff --git a/changelog/unreleased/storage-public-link-expiration.md b/changelog/unreleased/storage-public-link-expiration.md new file mode 100644 index 000000000..199974948 --- /dev/null +++ b/changelog/unreleased/storage-public-link-expiration.md @@ -0,0 +1,8 @@ +Bugfix: Disable public link expiration by default + +Tags: storage + +The public link expiration was enabled by default and didn't have a default expiration span by default, which resulted in already expired public links coming from the public link quick action. We fixed this by disabling the public link expiration by default. + +https://github.com/owncloud/ocis/issues/987 +https://github.com/owncloud/ocis/pull/1035 diff --git a/storage/pkg/command/frontend.go b/storage/pkg/command/frontend.go index fa41ee7fa..60455238f 100644 --- a/storage/pkg/command/frontend.go +++ b/storage/pkg/command/frontend.go @@ -139,7 +139,7 @@ func Frontend(cfg *config.Config) *cli.Command { }, "ocs": map[string]interface{}{ "share_prefix": cfg.Reva.Frontend.OCSSharePrefix, - "prefix": cfg.Reva.Frontend.OCSPrefix, + "prefix": cfg.Reva.Frontend.OCSPrefix, "config": map[string]interface{}{ "version": "1.8", "website": "reva", @@ -196,7 +196,7 @@ func Frontend(cfg *config.Config) *cli.Command { }, }, "expire_date": map[string]interface{}{ - "enabled": true, + "enabled": false, }, }, "user": map[string]interface{}{