The SIO2 project
  1. The SIO2 project
  2. SIO-1743

Deleting submissions sometimes fails with UnicodeDecodeError

    Details

    • Type: Task Task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:

      Description

      Internal Server Error: /c/matura3bc-staly/admin/contests/submission/
      Traceback (most recent call last):
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
          response = wrapped_callback(request, *callback_args, **callback_kwargs)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 145, in inner
          return func(*args, **kwargs)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 618, in wrapper
          return self.admin_site.admin_view(view)(*args, **kwargs)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
          response = view_func(request, *args, **kwargs)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
          response = view_func(request, *args, **kwargs)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 233, in inner
          return view(request, *args, **kwargs)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 34, in _wrapper
          return bound_func(*args, **kwargs)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
          response = view_func(request, *args, **kwargs)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 30, in bound_func
          return func.__get__(self, type(self))(*args2, **kwargs2)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1592, in changelist_view
          response = self.response_action(request, queryset=cl.get_queryset(request))
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 1335, in response_action
          response = func(self, request, queryset)
        File "/home/users/sio2/sio2/venv/src/oioioi/oioioi/base/admin.py", line 148, in delete_selected
          collect_deleted_objects(modeladmin, request, queryset)
        File "/home/users/sio2/sio2/venv/src/oioioi/oioioi/base/admin.py", line 240, in collect_deleted_objects
          to_delete = collector.nested(format_callback)
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/contrib/admin/utils.py", line 213, in nested
          roots.extend(self._nested(root, seen, format_callback))
        File "/home/users/sio2/sio2/venv/local/lib/python2.7/site-packages/django/contrib/admin/utils.py", line 198, in _nested
          ret = [format_callback(obj)]
        File "/home/users/sio2/sio2/venv/src/oioioi/oioioi/base/admin.py", line 237, in format_callback
          force_text(obj))
      UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 in position 2: ordinal not in range(128)

      <WSGIRequest
      path:/c/matura3bc-staly/admin/contests/submission/,
      GET:<QueryDict: {u'user': [u'3922']}>,
      POST:<QueryDict: {u'action': [u'delete_selected'], u'_selected_action': [u'297076', u'297074'], u'csrfmiddlewaretoken': [u'hefqQaJBvHr1YEhaa3XHNzMAUQcAe4ii'], u'select_across': [u'0']}>,

        Issue Links

          Activity

          Connect your code to JIRA

          Link every code change to JIRA just by adding an issue keys in commit messages. Bridge the gap back to your source and know which changes fixed which JIRA issues.

          Git & Mercurial in the cloud

          Collaborate across unlimited private code repositories.

          Git behind the firewall

          Manage and collaborate on Git repositories behind a firewall.

          Browse and search code

          Browse, search, and track source code repositories.

            People

            • Assignee:
              Szymon Acedański
              Reporter:
              Szymon Acedański
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: