Details
-
Type: Bug
-
Status: New
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: TAG 2019/20 Sprint 1
-
Fix Version/s: None
-
Component/s: Evaluation Engine / Workers, OIOIOI
-
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
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
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).