There is an open issue about it. I would not call it a bug – I added the “rotate action” to the API because of this – before we got Exif support. Now we could do “auto orientation”, but nobody has gotten around to it, yet.
There are threads on here with a workaround. Someone may chime in if they are better with the search than me.