Neutron network tags should not be empty string

Bug #1603292 reported by shihanzhang
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
M V P Nitesh

Bug Description

Now neutron network tags can be empty string, but I think there is no use case for a empty string tag, so we should add a check for tags.

root@server201:~# neutron tag-add --resource-type network --resource test --tag 'test_tag'
root@server201:~# neutron tag-add --resource-type network --resource test --tag ' '
root@server201:~# neutron net-show test
+---------------------------+--------------------------------------+
| Field | Value |
+---------------------------+--------------------------------------+
| admin_state_up | True |
| availability_zone_hints | |
| availability_zones | |
| created_at | 2016-07-15T01:45:51 |
| description | |
| id | f1060382-c7fa-43d5-a214-e8525184e7f0 |
| ipv4_address_scope | |
| ipv6_address_scope | |
| mtu | 1450 |
| name | test |
| port_security_enabled | True |
| provider:network_type | vxlan |
| provider:physical_network | |
| provider:segmentation_id | 26 |
| router:external | False |
| shared | False |
| status | ACTIVE |
| subnets | |
| tags | |
| | test_tag |
| tenant_id | 9e211e5ad3c0407aaf6c5803dc307c27 |
| updated_at | 2016-07-15T01:45:51 |
+---------------------------+--------------------------------------+

Changed in neutron:
assignee: nobody → shihanzhang (shihanzhang)
Changed in neutron:
status: New → Confirmed
importance: Undecided → Medium
etscript (etscript)
Changed in neutron:
assignee: shihanzhang (shihanzhang) → etscript (etscript)
assignee: etscript (etscript) → nobody
etscript (etscript)
Changed in neutron:
assignee: nobody → etscript (etscript)
assignee: etscript (etscript) → nobody
etscript (etscript)
Changed in neutron:
assignee: nobody → etscript (etscript)
information type: Public → Public Security
etscript (etscript)
Changed in neutron:
assignee: etscript (etscript) → nobody
Changed in neutron:
assignee: nobody → Anindita Das (anindita-das)
M V P Nitesh (m-nitesh)
Changed in neutron:
assignee: Anindita Das (anindita-das) → M V P Nitesh (m-nitesh)
Revision history for this message
Tristan Cacqueray (tristan-cacqueray) wrote :

Is there a reason why this has been switched to Public Security?

Revision history for this message
Jeremy Stanley (fungi) wrote :

This looks like it was probably switched from Public to Public Security on accident, so I'm setting it back to Public now.

In the future, if switching a bug from Public to Public Security (indicating that it represents a report of a suspected security vulnerability), please accompany that with an explanation of the security risks represented... ideally along with a reasonable attack scenario.

information type: Public Security → Public
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/python-neutronclient 6.3.0

This issue was fixed in the openstack/python-neutronclient 6.3.0 release.

Revision history for this message
M V P Nitesh (m-nitesh) wrote :
Changed in neutron:
status: Confirmed → Fix Committed
Changed in neutron:
status: Fix Committed → Fix Released
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.