Snapshot name maxlength is only 20 characters instead of 255 as that of image name

Bug #1146030 reported by Balamurugan V G
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Low
Lin Hua Cheng

Bug Description

I am running Folsom 2012.2.2 and in Horizon, while creating a snapshot the max character length allowed is only 20 characters which is way too small for general use. Refer to the HTML snippet from the 'Create Snapshot' form.

<input type="text" maxlength="20" name="name" id="id_name" data-original-title="">

This is also inconsistent with the max characters of 255 allowed for image names. Refer to the HTML snippet from the 'Create an Image' form.

<input type="text" maxlength="255" name="name" id="id_name" data-original-title="">

The 255 character limit seems reasonable.

This can be fixed in the file /usr/share/pyshared/horizon/dashboards/nova/images_and_snapshots/snapshots/forms.py by changing the maxlength from 20 to 255.

Regards,
Balu

Changed in horizon:
assignee: nobody → Lin Hua Cheng (lin-hua-cheng)
Changed in horizon:
status: New → Confirmed
tags: added: low-hanging-fruit
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

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

Changed in horizon:
status: Confirmed → In Progress
Changed in horizon:
importance: Undecided → Low
milestone: none → grizzly-rc1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/23763
Committed: http://github.com/openstack/horizon/commit/20b2008a0b70d0b55e6e3e66fcf101f4f02b2f6d
Submitter: Jenkins
Branch: master

commit 20b2008a0b70d0b55e6e3e66fcf101f4f02b2f6d
Author: Lin Hua Cheng <email address hidden>
Date: Wed Mar 6 15:14:17 2013 -0800

    Increase maxlength of Snapshot Name to 255.

    Fixes bug 1146030

    Change-Id: I28ec0c594b7a6b52d3f3d47003184253303785cd

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: grizzly-rc1 → 2013.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.