Skip to content

Commit eb82c25

Browse files
committed
Revert "Fix public link paths for file shares (cs3org#2297)"
This reverts commit 29826a3.
1 parent dec87e1 commit eb82c25

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

changelog/unreleased/fix-public-share-paths.md

-3
This file was deleted.

internal/grpc/services/publicstorageprovider/publicstorageprovider.go

+1-6
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,7 @@ func (s *service) translatePublicRefToCS3Ref(ctx context.Context, ref *provider.
154154
return nil, "", nil, st, nil
155155
}
156156

157-
p := shareInfo.Path
158-
if shareInfo.Type != provider.ResourceType_RESOURCE_TYPE_FILE {
159-
p = path.Join("/", shareInfo.Path, relativePath)
160-
}
161-
cs3Ref := &provider.Reference{Path: p}
162-
157+
cs3Ref := &provider.Reference{Path: path.Join("/", shareInfo.Path, relativePath)}
163158
log.Debug().
164159
Interface("sourceRef", ref).
165160
Interface("cs3Ref", cs3Ref).

0 commit comments

Comments
 (0)