I just tried to import the team information from icpc.global. I generated a web token, went to the import screen, and entered the Southern-California-2018 contest and token. When I went to import the teams I received this error:
error: Error decoding JSON data '<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700" rel="stylesheet"><title>The ICPC International Collegiate Programming Contest</title><script src="https://www.google.com/recaptcha/api.js" async defer="defer"></script><link href="/static/css/main.f25ca146.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.ee9a0359.js"></script></body></html>': Syntax error
I do not know if this is a DOMjudge problem, or an icpc.global problem. I'll fall back to importing from files.
Marc
Hi Marc,
I'm sorry that this is broken.
It seems the URL has changed with the update to cm5.
If you still want to use the import try changing the ICPCWSCLICS URL in https://github.com/DOMjudge/domjudge/blob/master/www/jury/impexp_baylor.php to https://icpc.baylor.edu/cm5-contest-rest/rest/contest/export/CLICS/CONTEST
But there may be other changes required. I'll test this weekend. See https://github.com/DOMjudge/domjudge/issues/451
Tobi
Marc Furon marcf@dslextreme.com schrieb am Fr., 9. Nov. 2018, 05:39:
I just tried to import the team information from icpc.global. I generated a web token, went to the import screen, and entered the Southern-California-2018 contest and token. When I went to import the teams I received this error:
error: Error decoding JSON data '<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="manifest" href="/manifest.json"><link rel="shortcut icon" href="/favicon.ico"><link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet"><link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700" rel="stylesheet"><title>The ICPC International Collegiate Programming Contest</title><script src="https://www.google.com/recaptcha/api.js" async defer="defer"></script><link href="/static/css/main.f25ca146.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.ee9a0359.js"></script></body></html>': Syntax error
I do not know if this is a DOMjudge problem, or an icpc.global problem. I'll fall back to importing from files.
Marc
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Tobias Werth wrote:
It seems the URL has changed with the update to cm5.
If you still want to use the import try changing the ICPCWSCLICS URL in https://github.com/DOMjudge/domjudge/blob/master/www/jury/impexp_baylor.php to https://icpc.baylor.edu/cm5-contest-rest/rest/contest/export/CLICS/CONTEST
But there may be other changes required. I'll test this weekend. See https://github.com/DOMjudge/domjudge/issues/451
I'll give this a try. I also created a standalone teams.tsv file, and it created the teams, but all the affiliations went to the first institution in the list...
Marc
Tobias Werth wrote:
It seems the URL has changed with the update to cm5.
If you still want to use the import try changing the ICPCWSCLICS URL in https://github.com/DOMjudge/domjudge/blob/master/www/jury/impexp_baylor.php to https://icpc.baylor.edu/cm5-contest-rest/rest/contest/export/CLICS/CONTEST
I made that change in impexp_baylor.php. Now I get a message that says I don't have the permission to do that. I used an "export" web token that I created. Perhaps that is a Jeff question...
But there may be other changes required. I'll test this weekend. See https://github.com/DOMjudge/domjudge/issues/451
That will be too late for my immediate needs, as I am importing things tonight and tomorrow for a Saturday contest.
As a work-around, I exported the files from the new contest management software as CLICS. I imported the groups.tsv, no problem. I can import the teams.tsv, but I got an error that says "eventlog: API ID not specified or inferred from data" and all the teams came in with the affiliation of the first team. I can correct this manually, of course, but it will take a little time.
Marc
Hi Marc,
Normally you should import teams2.tsv instead of teams.tsv. I am not 100% sure if that will fix everything (I made some code changes on master for the import), but give it a try.
Nicky
On 9 Nov 2018, at 09:09, Marc Furon marcf@dslextreme.com wrote:
Tobias Werth wrote:
It seems the URL has changed with the update to cm5. If you still want to use the import try changing the ICPCWSCLICS URL in https://github.com/DOMjudge/domjudge/blob/master/www/jury/impexp_baylor.php to https://icpc.baylor.edu/cm5-contest-rest/rest/contest/export/CLICS/CONTEST
I made that change in impexp_baylor.php. Now I get a message that says I don't have the permission to do that. I used an "export" web token that I created. Perhaps that is a Jeff question...
But there may be other changes required. I'll test this weekend. See https://github.com/DOMjudge/domjudge/issues/451
That will be too late for my immediate needs, as I am importing things tonight and tomorrow for a Saturday contest.
As a work-around, I exported the files from the new contest management software as CLICS. I imported the groups.tsv, no problem. I can import the teams.tsv, but I got an error that says "eventlog: API ID not specified or inferred from data" and all the teams came in with the affiliation of the first team. I can correct this manually, of course, but it will take a little time.
Marc
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Nicky Gerritsen wrote:
Normally you should import teams2.tsv instead of teams.tsv. I am not 100% sure if that will fix everything (I made some code changes on master for the import), but give it a try.
I just deleted the 109 teams that were imported by using phpMyAdmin on the teams table. I also deleted the one institution that was automatically created from the affiliation table.
When I went to import teams2.tsv I get a "500: Internal Server Error" message. :-(
Marc
On 9 Nov 2018, at 09:39, Marc Furon marcf@dslextreme.com wrote:
Nicky Gerritsen wrote:
Normally you should import teams2.tsv instead of teams.tsv. I am not 100% sure if that will fix everything (I made some code changes on master for the import), but give it a try.
I just deleted the 109 teams that were imported by using phpMyAdmin on the teams table. I also deleted the one institution that was automatically created from the affiliation table.
When I went to import teams2.tsv I get a "500: Internal Server Error" message. :-(
:( Can you see what the error is? (probably in webapp/var/log/prod.log). As I said this import might be kinda-broken on 6.0 but probably we can figure out how to get it working. Or you can set the affiliations manually of course.
Nicky
Marc
This commit contains the fix for the import after the API change on the Baylor site: https://github.com/DOMjudge/domjudge/commit/b9bbfd91ed1243db1bd388c17c3af76b...
However that's only download, not upload.
Nicky Gerritsen nickygerritsen@me.com schrieb am Fr., 9. Nov. 2018 um 09:48 Uhr:
On 9 Nov 2018, at 09:39, Marc Furon marcf@dslextreme.com wrote:
Nicky Gerritsen wrote:
Normally you should import teams2.tsv instead of teams.tsv. I am not
100% sure if that will fix everything (I made some code changes on master for the import), but give it a try.
I just deleted the 109 teams that were imported by using phpMyAdmin on the teams table. I also deleted the one institution that was automatically created from the affiliation table.
When I went to import teams2.tsv I get a "500: Internal Server Error" message. :-(
:( Can you see what the error is? (probably in webapp/var/log/prod.log). As I said this import might be kinda-broken on 6.0 but probably we can figure out how to get it working. Or you can set the affiliations manually of course.
Nicky
Marc
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel