From 9e4854955c3f58c43690d3a2a9b8f2a6eab182c1 Mon Sep 17 00:00:00 2001 From: Erik van Velzen Date: Fri, 6 May 2022 03:51:48 +0200 Subject: [PATCH] storj: fix put The "relative" argument was missing when Put'ing a file. This sets an incorrect object entry in the cache, leading to the file being unreadable when using mount functionality. Fixes #6151 --- backend/storj/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/storj/fs.go b/backend/storj/fs.go index da37748b5..95146edbf 100644 --- a/backend/storj/fs.go +++ b/backend/storj/fs.go @@ -579,7 +579,7 @@ func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options . return nil, err } - return newObjectFromUplink(f, "", upload.Info()), nil + return newObjectFromUplink(f, src.Remote(), upload.Info()), nil } // PutStream uploads to the remote path with the modTime given of indeterminate