Adding remote image when cache enabled results in image having size of 0
Bug #900959 reported by
Brian Waldon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Critical
|
Eoghan Glynn |
Bug Description
To reproduce the issue:
1) Add an image without specifying the size
2) Enable caching
3) Get image data. This will succeed because the Content-Length is pulled from the remote store (i.e. swift). At this point, the image will be properly cached.
4) Get image data again. This will fail with no image data returned, since the value for size in the registry will be used for Content-Length.
I expect an image to be accessible no matter what, whether it's stored in the cache or not.
Changed in glance: | |
status: | Confirmed → In Progress |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | essex-3 → 2012.1 |
To post a comment you must log in.
Actually, I think the approach here is to say images shouldn't ever end up in the db with a size of 0. Maybe we don't need to fix this bug so much as reject remote images without a size... thoughts?