OpenStack Image Registry and Delivery Service (Glance)

Image can be registered even though the length of the name exceeds 255 characters

Reported by Unmesh Gurjar on 2012-03-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Low
Eoghan Glynn

Bug Description

Scenario: Add an image to Glance using the 'glance add' command specifying the image name more than 255 characters in length.

Expected Result: The Glance CLI must return a 400 BadRequest specifying the image name length should not exceed 255 characters.
Actual Result: New image gets added and the image ID is returned. Name is truncated to 255 characters.

Branch: master

Glance API should validate the name length and return a 400 BadRequest response to the CLI.

Tags: ntt Edit Tag help
description: updated
description: updated
Changed in glance:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
Brian Waldon (bcwaldon) on 2012-03-27
Changed in glance:
milestone: none → essex-rc2
importance: Undecided → Low
status: New → Triaged
Brian Waldon (bcwaldon) on 2012-03-29
Changed in glance:
assignee: Unmesh Gurjar (unmesh-gurjar) → Brian Waldon (bcwaldon)

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

Changed in glance:
assignee: Brian Waldon (bcwaldon) → Eoghan Glynn (eglynn)
status: Triaged → In Progress

Reviewed: https://review.openstack.org/5962
Committed: http://github.com/openstack/glance/commit/8b7a830c047e112b3004f4949a5b857371368508
Submitter: Jenkins
Branch: master

commit 8b7a830c047e112b3004f4949a5b857371368508
Author: Eoghan Glynn <email address hidden>
Date: Thu Mar 29 17:39:11 2012 +0100

    Reject excessively long image names.

    Fixes bug 966240

    Image names longer than 255 characters are rejected with 400 BadRequest
    on creation or update.

    Change-Id: I460ffee547496829cbf198b50bca564978abe7f3

Changed in glance:
status: In Progress → Fix Committed

Reviewed: https://review.openstack.org/5965
Committed: http://github.com/openstack/glance/commit/d21cf6b96d5e5dac4c2092711b353a2b382b5399
Submitter: Jenkins
Branch: milestone-proposed

commit d21cf6b96d5e5dac4c2092711b353a2b382b5399
Author: Eoghan Glynn <email address hidden>
Date: Thu Mar 29 17:39:11 2012 +0100

    Reject excessively long image names.

    Fixes bug 966240

    Image names longer than 255 characters are rejected with 400 BadRequest
    on creation or update.

    Change-Id: I460ffee547496829cbf198b50bca564978abe7f3

Changed in glance:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in glance:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers