You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function getReaderSize(reader io.Reader) (size int64, err error) from api-put-object.go returns the wrong size for non regular files on linux systems.
The text was updated successfully, but these errors were encountered:
xxorde
changed the title
getReaderSize() returns wring size for non regular files
getReaderSize() returns wrong size for non regular files
Nov 15, 2016
The function
getReaderSize(reader io.Reader) (size int64, err error)
fromapi-put-object.go
returns the wrong size for non regular files on linux systems.The problem can be demonstrated with pipes.
A full demonstration can be found here: https://github.com/xxorde/minio-go-bug
An ugly hotfix can be found here: xxorde@a0e2ffa
Thanks to @harshavardhana and @vadmeste for discussing the problem (https://gitter.im/minio/minio).
The text was updated successfully, but these errors were encountered: