mirror of
https://github.com/minio/minio.git
synced 2025-02-23 03:22:30 -05:00
Existing code ``` { if os.IsNotExist(e) { e = os.MkdirAll(objectDir, 0700) if e != nil { return "", probe.NewError(e) } } return "", probe.NewError(e) ---> Error was here. } ``` For a successful 'MkdirAll' it would still return an empty uploadID, but the 'error' would be nil. This would succeed the request but client would fail. Fix is to re-arrange the logic. Thanks to Alexander Neumann @fd0, for reporting this problem.