volume type allows name with only white spaces

Bug #1357586 reported by Gloria Gu
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Wishlist
Zhenguo Niu

Bug Description

When create volume type, it allows name field with only white spaces.

How to reproduce:

go to admin -> volume to create a volume type with only white spaces as a name, the volume type shows up in the volume table an empty name.

Expect:

form should not allow empty name when create volume type

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Looks similar to https://bugs.launchpad.net/horizon/+bug/1291414. This seems to be a common problem in dialogs that prompt for a name.

Changed in horizon:
status: New → Confirmed
importance: Undecided → Wishlist
Gloria Gu (gloria-gu)
Changed in horizon:
assignee: nobody → Gloria Gu (gloria-gu)
Gloria Gu (gloria-gu)
summary: - volume volume type create/edit allow name with only white spaces
+ volume volume type snapshot create/edit allow name with only white
+ spaces
description: updated
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/115064

Changed in horizon:
status: Confirmed → In Progress
Gloria Gu (gloria-gu)
summary: - volume volume type snapshot create/edit allow name with only white
+ volume volume type snapshot create/edit allows name with only white
spaces
Revision history for this message
Gloria Gu (gloria-gu) wrote : Re: volume volume type snapshot create/edit allows name with only white spaces

there is a similar bug in cinder...https://bugs.launchpad.net/cinder/+bug/1206396

Revision history for this message
Gloria Gu (gloria-gu) wrote :

volume type 's name is required field in cinder, while volume name and snapshot name are display-name in cinder. So I will separate the bug to reflect that fact.

summary: - volume volume type snapshot create/edit allows name with only white
- spaces
+ volume type allows name with only white spaces
description: updated
Revision history for this message
Gloria Gu (gloria-gu) wrote :
Revision history for this message
Gloria Gu (gloria-gu) wrote :

Well , from UI world, if empty spaces cause issues, it would be better prevent it which is a common practice. However openstack folks don't agree. It is a trivial issue so it is not worth to push it.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (master)

Change abandoned by Gloria Gu (<email address hidden>) on branch: master
Review: https://review.openstack.org/115064
Reason: In the UI world, if it would be better prevent user entering empty spaces if they cause issues. It is a common practice. However openstack folks don't agree. It is a trivial issue so it is not worth to push it.

Revision history for this message
Gary W. Smith (gary-w-smith) wrote :

Changing status per comment #7

Changed in horizon:
status: In Progress → Won't Fix
Revision history for this message
Zhenguo Niu (niu-zglinux) wrote :

As there's a restrict on cinder side now: https://github.com/openstack/cinder/blob/master/cinder/api/contrib/types_manage.py#L65

I will takeover this and resubmit a new patch.

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/181027

Changed in horizon:
assignee: Gloria Gu (gloria-gu) → Zhenguo Niu (niu-zglinux)
status: Won't Fix → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/181027
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=0c70bf420490130117455f4da9e0b4da0678273b
Submitter: Jenkins
Branch: master

commit 0c70bf420490130117455f4da9e0b4da0678273b
Author: Zhenguo Niu <email address hidden>
Date: Thu May 7 22:44:53 2015 +0800

    Add empty name check to volume types

    As cinder doesn't allow creating volume types with empty name, so
    add a check for that on horizon.

    Change-Id: Ie795e54952e92dd9a198306306ffead0cc84ca99
    Closes-Bug: #1357586

Changed in horizon:
status: In Progress → Fix Committed
Changed in horizon:
milestone: none → liberty-1
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-1 → 8.0.0
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.