From df9c930581217cf36c9d7368c7daeb7653e15277 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 18 Jun 2020 18:40:33 +0100 Subject: [PATCH] dropbox: fix public link by removing expires parameter Adding the expires parameter gives settings_error/not_authorized/.. errors. The expires setting isn't in the documentation so this commit removes it for now. --- backend/dropbox/dropbox.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/backend/dropbox/dropbox.go b/backend/dropbox/dropbox.go index ca07db62d..02c7af30c 100755 --- a/backend/dropbox/dropbox.go +++ b/backend/dropbox/dropbox.go @@ -787,9 +787,12 @@ func (f *Fs) PublicLink(ctx context.Context, remote string, expire fs.Duration, fs.Debugf(f, "attempting to share '%s' (absolute path: %s)", remote, absPath) createArg := sharing.CreateSharedLinkWithSettingsArg{ Path: absPath, - Settings: &sharing.SharedLinkSettings{ - Expires: time.Now().Add(time.Duration(expire)), - }, + // FIXME this gives settings_error/not_authorized/.. errors + // and the expires setting isn't in the documentation so remove + // for now. + // Settings: &sharing.SharedLinkSettings{ + // Expires: time.Now().Add(time.Duration(expire)).UTC().Round(time.Second), + // }, } var linkRes sharing.IsSharedLinkMetadata err = f.pacer.Call(func() (bool, error) {