hquxmu / ai-contest

Automatically exported from code.google.com/p/ai-contest
0 stars 0 forks source link

Going to http://ai-contest.com/check_submit.php clears submission #211

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Login
2. Go to http://ai-contest.com/check_submit.php

What is the expected output? What do you see instead?
Nothing should happen. You see an error stating that the upload failed, this is 
fine but when you look at your profile you'll see "error receiving submission 
file". This wipes out your previous submission leaving you with nothing and a 
cleared history.

The danger here being I could send people to this link and ruin their rankings. 
If I wrap it up in a short url service too they will most likely not realise 
until its too late (assuming they are logged in).

I'd suggest either checking that a file was uploaded before doing anything or 
only replacing the current submission if the new one is successfully uploaded.

Original issue reported on code.google.com by douga...@gmail.com on 16 Nov 2010 at 6:40

GoogleCodeExporter commented 8 years ago
I found the issue. check_submit doesn't look for errors until after it's 
modified the user. Should have a fix soon.

Original comment by jokeserver on 18 Nov 2010 at 4:50

GoogleCodeExporter commented 8 years ago

Original comment by jokeserver on 18 Nov 2010 at 4:51

GoogleCodeExporter commented 8 years ago

Original comment by jokeserver on 18 Nov 2010 at 7:08