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

          Przemysław Jakub Kozłowski made changes -
          Field Original Value New Value
          Link This issue duplicates SIO-1991 [ SIO-1991 ]
          Przemysław Jakub Kozłowski made changes -
          Link This issue is duplicated by SIO-1991 [ SIO-1991 ]
          Przemysław Jakub Kozłowski made changes -
          Assignee Przemysław Jakub Kozłowski [ przemekkoz ]
          Przemysław Jakub Kozłowski made changes -
          Status New [ 10000 ] Resolved [ 5 ]
          Assignee Przemysław Jakub Kozłowski [ przemekkoz ] Szymon Acedański [ accek ]
          Resolution Fixed [ 1 ]
          Szymon Acedański made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          New New Resolved Resolved
          473d 19h 2m 1 Przemysław Jakub Kozłowski 2017-06-6 11:47
          Resolved Resolved Closed Closed
          658d 5h 53m 1 Szymon Acedański 2019-03-26 16:41

            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: