From dcc29dafcf6300a8f7db4336f2530a9cb5036e59 Mon Sep 17 00:00:00 2001 From: David Christofas Date: Fri, 6 Aug 2021 16:12:12 +0200 Subject: [PATCH] correctly set the filetarget of accepted shares --- changelog/unreleased/fix-shares-file-target.md | 1 + .../owncloud/ocs/handlers/apps/sharing/shares/pending.go | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/changelog/unreleased/fix-shares-file-target.md b/changelog/unreleased/fix-shares-file-target.md index b237992e2b..a9aa27f3a9 100644 --- a/changelog/unreleased/fix-shares-file-target.md +++ b/changelog/unreleased/fix-shares-file-target.md @@ -3,3 +3,4 @@ Bugfix: Fix the file target of user and group shares In some cases the file target of user and group shares was not properly prefixed. https://github.com/cs3org/reva/pull/1965 +https://github.com/cs3org/reva/pull/1967 diff --git a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/pending.go b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/pending.go index 33636f3227..71b83b2389 100644 --- a/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/pending.go +++ b/internal/http/services/owncloud/ocs/handlers/apps/sharing/shares/pending.go @@ -101,7 +101,6 @@ func (h *Handler) updateReceivedShare(w http.ResponseWriter, r *http.Request, sh if data.State == ocsStateAccepted { // Needed because received shares can be jailed in a folder in the users home - data.FileTarget = path.Join(h.sharePrefix, path.Base(info.Path)) data.Path = path.Join(h.sharePrefix, path.Base(info.Path)) }