Bug #9080
closedDownloading and uploading all marks does not work
0%
Description
Currently in Klever 1.0 I cannot download all marks and upload all marks as a manager user. There is an exception that asks something from /tmp directory and also prints other strange problems:
[Errno 2] No such file or directory: '/tmp/tmpfzlguix3'
Traceback (most recent call last):
File "/work/zakharov/src/klever/bridge/bridge/CustomViews.py", line 61, in dispatch
return getattr(super(), 'dispatch')(request, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/django/views/generic/base.py", line 89, in dispatch
return handler(request, *args, **kwargs)
File "/work/zakharov/src/klever/bridge/bridge/CustomViews.py", line 94, in post
return JsonResponse(self.get_context_data())
File "/work/zakharov/src/klever/bridge/marks/views.py", line 368, in get_context_data
bool(int(self.request.POST.get('delete', 0)))
File "/work/zakharov/src/klever/bridge/marks/Download.py", line 237, in init
self.__upload_all(marks_dir)
File "/work/zakharov/src/klever/bridge/marks/Download.py", line 244, in __upload_all
for file_name in os.listdir(marks_dir):
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpfzlguix3'
Files
Updated by Ilja Zakharov over 6 years ago
- File Marks--9-7-2018.zip Marks--9-7-2018.zip added
An example of archive with marks.
Updated by Evgeny Novikov over 6 years ago
- Priority changed from Urgent to Immediate
This is one more crucial regression introduced in Klever 1.0. It should be fixed ASAP.
Updated by Evgeny Novikov over 6 years ago
- Status changed from New to Closed
- Assignee changed from Vladimir Gratinskiy to Evgeny Novikov
I trivially fixed the issue in 51483dbd to master and backported the bug fix to branch v1.0-stable.