← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1551142] [NEW] User can't change locale in horizon on 29 february

 

Public bug reported:

Steps to reproduce:

1. Wait for Feb 29
2. Log in to Horizon
3. Change locale in "Settings" / "User Settings" to something different that current locale

Environment:

Icehouse(Ubuntu), Kilo(RDO), but seems that trunk is affected too.

Expected result:

Locale changed successfully.

Actual result:

"Something went wrong" page, locale not changed.

Exception in log:

Internal Server Error: /horizon/settings/
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 171, in post
    return self.form_valid(form)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/settings/user/views.py", line 40, in form_valid
    return form.handle(self.request, form.cleaned_data)
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/settings/user/forms.py", line 89, in handle
    expires=_one_year())
  File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/settings/user/forms.py", line 33, in _one_year
    now.minute, now.second, now.microsecond, now.tzinfo)
ValueError: day is out of range for month

** Affects: horizon
     Importance: Undecided
         Status: New

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

Title:
  User can't change locale in horizon on 29 february

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  Steps to reproduce:

  1. Wait for Feb 29
  2. Log in to Horizon
  3. Change locale in "Settings" / "User Settings" to something different that current locale

  Environment:

  Icehouse(Ubuntu), Kilo(RDO), but seems that trunk is affected too.

  Expected result:

  Locale changed successfully.

  Actual result:

  "Something went wrong" page, locale not changed.

  Exception in log:

  Internal Server Error: /horizon/settings/
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 112, in get_response
      response = wrapped_callback(request, *callback_args, **callback_kwargs)
    File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
      return view_func(request, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 54, in dec
      return view_func(request, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/horizon/decorators.py", line 38, in dec
      return view_func(request, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 69, in view
      return self.dispatch(request, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py", line 87, in dispatch
      return handler(request, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/django/views/generic/edit.py", line 171, in post
      return self.form_valid(form)
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/settings/user/views.py", line 40, in form_valid
      return form.handle(self.request, form.cleaned_data)
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/settings/user/forms.py", line 89, in handle
      expires=_one_year())
    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/dashboards/settings/user/forms.py", line 33, in _one_year
      now.minute, now.second, now.microsecond, now.tzinfo)
  ValueError: day is out of range for month

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