Details

    • Type: Bug Bug
    • Status: New New
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: TAG 2019/20 Sprint 1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

      Web browser: FireFox, Chrome

      Description

      Cannot check a test run submission details due to an "AttributeError".

      Steps to reproduce:
      - submit test run(as admin)
      - go to My submissions
      - click the submission date(to show details of the submission)
      - Error: "AttributeError"

      Other details:
      * Manual installation(https://github.com/sio2project/oioioi/blob/master/INSTALL.rst)
      * Supervisor is running and is reporting a few errors(see supervisor output)
      * I haven't tested this issue as a user
      1. runserver_output.txt
        4 kB
        Cezary Chodun
      2. supervisor_output.txt
        119 kB
        Cezary Chodun
      1. screen.png
        177 kB

        Activity

        Hide
        Szymon Acedański added a comment -
        Adding here what I remember from when we debugged it for a moment:

        sbm_testrun.input_file is an object which comes from filetracker (of type _FileLikeFromResponse).
        is_zipfile requires seek, which is not provided (and looks like it should not be relied upon).
        Probably it's better to just check the extension (sbm_testrun.input_file is an instance of Django FieldFile, therefore it has name and hopefully it has the original extension).
        Show
        Szymon Acedański added a comment - Adding here what I remember from when we debugged it for a moment: sbm_testrun.input_file is an object which comes from filetracker (of type _FileLikeFromResponse). is_zipfile requires seek, which is not provided (and looks like it should not be relied upon). Probably it's better to just check the extension (sbm_testrun.input_file is an instance of Django FieldFile, therefore it has name and hopefully it has the original extension).

          People

          • Assignee:
            Unassigned
            Reporter:
            Cezary Chodun
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: