mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fs: fix a regression allow reading of existing files (#5889)
This commit is contained in:
parent
2ecc976950
commit
c98d8cb1c7
@ -480,7 +480,7 @@ func (fs *FSObjects) getObject(ctx context.Context, bucket, object string, offse
|
||||
}
|
||||
}
|
||||
|
||||
if etag != "" {
|
||||
if etag != "" && etag != defaultEtag {
|
||||
objEtag, perr := fs.getObjectETag(ctx, bucket, object, lock)
|
||||
if perr != nil {
|
||||
return toObjectErr(perr, bucket, object)
|
||||
|
Loading…
Reference in New Issue
Block a user