Project

General

Profile

Bug #9080

Downloading and uploading all marks does not work

Added by Ilja Zakharov about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Immediate
Category:
Bridge
Target version:
Start date:
07/09/2018
Due date:
% Done:

0%

Estimated time:
Detected in build:
svn
Platform:
Published in build:

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

Marks--9-7-2018.zip (305 KB) Marks--9-7-2018.zip Ilja Zakharov, 07/09/2018 08:04 PM

History

#1

Updated by Ilja Zakharov about 1 year ago

An example of archive with marks.

#2

Updated by Ilja Zakharov about 1 year ago

  • Description updated (diff)
#3

Updated by Evgeny Novikov about 1 year ago

  • Priority changed from Urgent to Immediate

This is one more crucial regression introduced in Klever 1.0. It should be fixed ASAP.

#4

Updated by Evgeny Novikov about 1 year ago

  • Assignee changed from Vladimir Gratinskiy to Evgeny Novikov
  • Status changed from New to Closed

I trivially fixed the issue in 51483dbd to master and backported the bug fix to branch v1.0-stable.

Also available in: Atom PDF