Any action always cause error ( in kilo)

Bug #1488443 reported by Kevin Tibi
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Richard Jones

Bug Description

When I use French language in Horizon I have this trace :

2015-08-25 09:35:23,185 1024 ERROR django.request Internal Server Error: /dashboard/project/instances/
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 52, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 36, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/decorators.py", line 84, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/generic/base.py", line 89, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 223, in post
    return self.get(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 159, in get
    handled = self.construct_tables()
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 150, in construct_tables
    handled = self.handle_table(table)
  File "/usr/lib/python2.7/site-packages/horizon/tables/views.py", line 125, in handle_table
    handled = self._tables[name].maybe_handle()
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1640, in maybe_handle
    return self.take_action(action_name, obj_id)
  File "/usr/lib/python2.7/site-packages/horizon/tables/base.py", line 1482, in take_action
    response = action.multiple(self, self.request, obj_ids)
  File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 302, in multiple
    return self.handle(data_table, request, object_ids)
  File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 827, in handle
    exceptions.handle(request, ignore=ignore)
  File "/usr/lib/python2.7/site-packages/horizon/exceptions.py", line 364, in handle
    six.reraise(exc_type, exc_value, exc_traceback)
  File "/usr/lib/python2.7/site-packages/horizon/tables/actions.py", line 817, in handle
    (self._get_action_name(past=True), datum_display))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 9: ordinal not in range(128)

I have already applied this patch : https://review.openstack.org/#/c/196637/

But no works. No pb with english.

Django error :

The string that could not be encoded/decoded was: ance ��tein

Kevin Tibi (ktibi)
description: updated
Matthias Runge (mrunge)
Changed in horizon:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Matthias Runge (mrunge)
tags: added: kilo-backport-potential
Kevin Tibi (ktibi)
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/216712

Changed in horizon:
status: Confirmed → In Progress
Revision history for this message
Kevin Tibi (ktibi) wrote :

Fix works

David Lyle (david-lyle)
Changed in horizon:
milestone: none → liberty-rc1
Kevin Tibi (ktibi)
Changed in horizon:
status: In Progress → Fix Committed
status: Fix Committed → In Progress
Changed in horizon:
assignee: Matthias Runge (mrunge) → Richard Jones (r1chardj0n3s)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/216712
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=6a8361de947dfb4a941336a14a5275640835780a
Submitter: Jenkins
Branch: master

commit 6a8361de947dfb4a941336a14a5275640835780a
Author: Matthias Runge <email address hidden>
Date: Tue Aug 25 15:09:55 2015 +0200

    Fix UTF-8 handling in tables

    Previous fix was not complete.

    Altered the transform for sequence comparison to use str
    instead of repr for greater py2/py3 compatibility in the
    face of unicode.

    Closes-Bug: #1488443
    Related-Bug: #1464461
    Co-Authored-By: Richard Jones <email address hidden>
    Change-Id: I6b2c554350399f97f639e4c1e8d1ac8a34c9d046

Changed in horizon:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/kilo)

Fix proposed to branch: stable/kilo
Review: https://review.openstack.org/227143

Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: liberty-rc1 → 8.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on horizon (stable/kilo)

Change abandoned by Dave Walker (<email address hidden>) on branch: stable/kilo
Review: https://review.openstack.org/227143
Reason: Kilo is now approaching EOL. We are in freeze pending the final release and no freeze exception has been raised. Therefore I am abandoning this change, if it is required in the release - please restore and raise a request. Thanks

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.