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

Bug #966240 reported by Unmesh Gurjar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
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
description: updated
description: updated
Changed in glance:
assignee: nobody → Unmesh Gurjar (unmesh-gurjar)
Brian Waldon (bcwaldon)
Changed in glance:
milestone: none → essex-rc2
importance: Undecided → Low
status: New → Triaged
Brian Waldon (bcwaldon)
Changed in glance:
assignee: Unmesh Gurjar (unmesh-gurjar) → Brian Waldon (bcwaldon)
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/5962

Changed in glance:
assignee: Brian Waldon (bcwaldon) → Eoghan Glynn (eglynn)
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (milestone-proposed)

Fix proposed to branch: milestone-proposed
Review: https://review.openstack.org/5965

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

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)
Changed in glance:
milestone: essex-rc2 → 2012.1
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.