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

When submitting a testrun, if the input file name ends with .zip, but is not a zip at all, a 500 error occurs.

    Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Obsolete
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:

      Description

      https://sentry.io/share/issue/7615199e8d7045588582f8077a5ecc5f/

      {code}
      BadZipfile: File is not a zip file
        File "oioioi/base/utils/archive.py", line 189, in __init__
          self._archive = zipfile.ZipFile(file)
        File "oioioi/base/utils/archive.py", line 66, in __init__
          self._archive = self._archive_cls(file, ext=ext)(file)
        File "oioioi/testrun/controllers.py", line 128, in validate_zip
          archive = Archive(file, '.zip')
        File "oioioi/contests/forms.py", line 234, in is_valid
          return forms.Form.is_valid(self)
        File "oioioi/testrun/views.py", line 30, in testrun_submit_view
          if form.is_valid():
      ...
      (14 additional frame(s) were not displayed)

      BadZipfile: File is not a zip file
      {code}

        Activity

        Hide
        Szymon Acedański added a comment -
        This issue has been automatically closed as Obsolete due to no activity for 365 days.

        Feel free to reopen it or create a new one if it's still relevant.
        Show
        Szymon Acedański added a comment - This issue has been automatically closed as Obsolete due to no activity for 365 days. Feel free to reopen it or create a new one if it's still relevant.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: