Supplied image size should be verified against actual size

Bug #1092584 reported by Eoghan Glynn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Medium
Eoghan Glynn
Folsom
Fix Released
Medium
Eoghan Glynn
Grizzly
Fix Released
Medium
Eoghan Glynn

Bug Description

Currently a supplied checksum is verified against the actual checksum calculated by the backend store, and the image is killed on mismatch.

However we do not similarly verify the supplied image size, if provided.

Eoghan Glynn (eglynn)
Changed in glance:
milestone: none → grizzly-2
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.openstack.org/18485

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.openstack.org/18485
Committed: http://github.com/openstack/glance/commit/f958b1eeaa58f0c4090185348d70632f81902e9c
Submitter: Jenkins
Branch: master

commit f958b1eeaa58f0c4090185348d70632f81902e9c
Author: Eoghan Glynn <email address hidden>
Date: Thu Dec 20 15:33:56 2012 +0000

    Verify size in addition to checksum of uploaded image

    Fixes bug 1092584

    Previously only the supplied checksum was verified against the actual
    checksum calculated by the backend store, with the image being killed
    on mismatch.

    Now we also similarly verify the supplied image size, if provided.

    Change-Id: I87fa3ff77715111f1095f3ebe64cd699776ec27e

Changed in glance:
status: In Progress → Fix Committed
Eoghan Glynn (eglynn)
tags: added: folsom-backport-potential
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (stable/folsom)

Fix proposed to branch: stable/folsom
Review: https://review.openstack.org/18873

Thierry Carrez (ttx)
Changed in glance:
status: Fix Committed → Fix Released
Brian Waldon (bcwaldon)
Changed in glance:
assignee: nobody → Eoghan Glynn (eglynn)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (stable/folsom)

Reviewed: https://review.openstack.org/18873
Committed: http://github.com/openstack/glance/commit/5e5e722d353e0670d2aa06cbac8e138617c10806
Submitter: Jenkins
Branch: stable/folsom

commit 5e5e722d353e0670d2aa06cbac8e138617c10806
Author: Eoghan Glynn <email address hidden>
Date: Thu Dec 20 15:33:56 2012 +0000

    Verify size in addition to checksum of uploaded image

    Fixes bug 1092584

    Previously only the supplied checksum was verified against the actual
    checksum calculated by the backend store, with the image being killed
    on mismatch.

    Now we also similarly verify the supplied image size, if provided.

    Change-Id: I87fa3ff77715111f1095f3ebe64cd699776ec27e

tags: added: in-stable-folsom
Mark McLoughlin (markmc)
tags: removed: folsom-backport-potential in-stable-folsom
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.