← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1680506] [NEW] Edit consistency group form has an exception

 

Public bug reported:

Env: devstack master branch

If old description is empty and submit edit consistency group form,it
will throws an exception.

Exception info:
[06/Apr/2017 15:16:58] "GET /project/cgroups/671779c1-81de-4354-ac8c-db123f835afa/update/ HTTP/1.1" 200 2175
Internal Server Error: /project/cgroups/671779c1-81de-4354-ac8c-db123f835afa/update/
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/opt/stack/horizon/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py", line 214, in post
    if form.is_valid():
  File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 184, in is_valid
    return self.is_bound and not self.errors
  File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 176, in errors
    self.full_clean()
  File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 393, in full_clean
    self._clean_form()
  File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 417, in _clean_form
    cleaned_data = self.clean()
  File "/opt/stack/horizon/openstack_dashboard/dashboards/project/cgroups/forms.py", line 35, in clean
    if len(old_desc):
TypeError: object of type 'NoneType' has no len()

** Affects: horizon
     Importance: Undecided
     Assignee: wei.ying (wei.yy)
         Status: New

** Changed in: horizon
     Assignee: (unassigned) => wei.ying (wei.yy)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1680506

Title:
  Edit consistency group form has an exception

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Env: devstack master branch

  If old description is empty and submit edit consistency group form,it
  will throws an exception.

  Exception info:
  [06/Apr/2017 15:16:58] "GET /project/cgroups/671779c1-81de-4354-ac8c-db123f835afa/update/ HTTP/1.1" 200 2175
  Internal Server Error: /project/cgroups/671779c1-81de-4354-ac8c-db123f835afa/update/
  Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 132, in get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
      return view_func(request, *args, **kwargs)
    File "/opt/stack/horizon/horizon/decorators.py", line 52, in dec
      return view_func(request, *args, **kwargs)
    File "/opt/stack/horizon/horizon/decorators.py", line 36, in dec
      return view_func(request, *args, **kwargs)
    File "/opt/stack/horizon/horizon/decorators.py", line 84, in dec
      return view_func(request, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 71, in view
      return self.dispatch(request, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py", line 89, in dispatch
      return handler(request, *args, **kwargs)
    File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py", line 214, in post
      if form.is_valid():
    File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 184, in is_valid
      return self.is_bound and not self.errors
    File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 176, in errors
      self.full_clean()
    File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 393, in full_clean
      self._clean_form()
    File "/usr/local/lib/python2.7/dist-packages/django/forms/forms.py", line 417, in _clean_form
      cleaned_data = self.clean()
    File "/opt/stack/horizon/openstack_dashboard/dashboards/project/cgroups/forms.py", line 35, in clean
      if len(old_desc):
  TypeError: object of type 'NoneType' has no len()

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1680506/+subscriptions


Follow ups