-
Notifications
You must be signed in to change notification settings - Fork 376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't download source from tests with grader because the link to the file has the wrong extension #1179
Comments
The immediate problem should be fixed in dbd6645 by @ranaldmiao. Note, however, that I couldn't reproduce the HTTP 500 status with CMS master. Out of interest, which Anyway, applying the above patch should fix the problem in any case. You can test the patch with your installation. |
Thank you.
$ sudo pip3 freeze | grep xdg
pyxdg==0.25 (I have CMS installed system-wide) |
@CristianCantoro Were you able to test the patch with your installation? Does it work? |
@andreyv said:
Yes, I confirm that I was able to patch my installation and it works. Thank you, @andreyv. |
Issue template
Description:
Downloading the source code from tests with grader fails with Error 500 because they have the wrong extension,
task.%25l
instead oftask.cpp
. Note that changing manually the extension to the correct one (%25l
->.cpp
) the file is downloaded.Steps to reproduce:
ìnput.txt
,task.cpp
,grader.cpp
.Expected:
The source code of the test (
task.cpp
) is downloaded.Actual:
The server responds with a 500 error because the link is incorrect. In the example:
instead of:
Changing the link works and the file is downloaded:
Logs
From
/var/local/log/cms/ContestWebServer-0
: 2021-05-15-00-04-07.logSystem Information
CMS version: [master, or a specific version]
Was CMS installed: yes, system-wide
Using a virtualenv: no
Postgres version: not relevant
Distribution and version: Ubuntu 20.04.2 LTS
The text was updated successfully, but these errors were encountered: