Skip to content

Commit 332e9c5

Browse files
authored
getNsMatch in eosfs should return a cleaned path (#5496)
1 parent 6b762d3 commit 332e9c5

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Bugfix: getNsMatch in eosfs should return a cleaned path
2+
3+
https://github.com/cs3org/reva/pull/5496

pkg/storage/utils/eosfs/eosfs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ func (fs *Eosfs) getNsMatch(internal string, nss []string) (string, error) {
319319
return "", errtypes.NotFound(fmt.Sprintf("eosfs: path is outside namespaces: path=%s namespaces=%+v", internal, nss))
320320
}
321321

322-
return match, nil
322+
return path.Clean(match), nil
323323
}
324324

325325
func (fs *Eosfs) unwrapInternal(ctx context.Context, ns, np string) (string, error) {

0 commit comments

Comments
 (0)