Details
Description
If you are viewing the admin page with an active contest (so that admin site is prefixed by the contest id in the URL) and you delete that contest, you get a 404 error afterwards instead of for example being taken into proper admin page without the contest prefix.
Activity
Field | Original Value | New Value |
---|---|---|
Labels | tag1 |
Labels | tag1 | easy |
Assignee | Andrzej Głuszak [ agluszak ] |
Assignee | Andrzej Głuszak [ agluszak ] |
Assignee | Andrzej Głuszak [ agluszak ] |
Status | New [ 10000 ] | Open [ 1 ] |
Status | Open [ 1 ] | Resolved [ 5 ] |
Assignee | Andrzej Głuszak [ agluszak ] | Szymon Acedański [ accek ] |
Resolution | Fixed [ 1 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
366d 16h 24m | 1 | Andrzej Głuszak | 2018-11-24 14:13 | |||||
|
1m 4s | 1 | Andrzej Głuszak | 2018-11-24 14:14 | |||||
|
122d 2h 23m | 1 | Szymon Acedański | 2019-03-26 16:37 |
http://localhost:8000/c/--CONTEST-ID--/admin/contests/contest/--CONTEST-ID--/delete/
it is deleted and the current contest is switched to the next available without a 404. However, if you delete contest from
http://localhost:8000/c/--CONTEST-ID--/admin/contests/contest/ by selecting it from the list and clicking "delete selected contests" it indeed results in a 404 error.