mirror of https://github.com/minio/minio.git
fix: honor renamePart's PathNotFound (#21378)
VulnCheck / Analysis (push) Has been cancelled
Details
VulnCheck / Analysis (push) Has been cancelled
Details
This commit is contained in:
parent
e1fcaebc77
commit
a6c538c5a1
|
@ -2976,7 +2976,7 @@ func (s *xlStorage) RenamePart(ctx context.Context, srcVolume, srcPath, dstVolum
|
|||
return errFileAccessDenied
|
||||
}
|
||||
err = osErrToFileErr(err)
|
||||
if errors.Is(err, errFileNotFound) {
|
||||
if errors.Is(err, errFileNotFound) || errors.Is(err, errFileAccessDenied) {
|
||||
return errUploadIDNotFound
|
||||
}
|
||||
return err
|
||||
|
|
Loading…
Reference in New Issue