The SIO2 project
  1. The SIO2 project
  2. SIO-2045

Page not found error after deleting a contest

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: Current Version
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:

      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

        Hide
        Andrzej Głuszak added a comment - - edited
        If you try to delete current contest by going to
        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.
        Show
        Andrzej Głuszak added a comment - - edited If you try to delete current contest by going to 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.
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~Ie1be299d45e883181c9e4f2ec0d80ca554685b59, patchset 1
        https://gerrit.sio2project.mimuw.edu.pl/3101

        SIO-2045 Page not found error after deleting a contest

        Redirect to contest-unprefixed url of contests list after calling delete_selected for contests

        Change-Id: Ie1be299d45e883181c9e4f2ec0d80ca554685b59
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~Ie1be299d45e883181c9e4f2ec0d80ca554685b59, patchset 1 https://gerrit.sio2project.mimuw.edu.pl/3101 SIO-2045 Page not found error after deleting a contest Redirect to contest-unprefixed url of contests list after calling delete_selected for contests Change-Id: Ie1be299d45e883181c9e4f2ec0d80ca554685b59
        Hide
        Gerrit Gerrit added a comment -
        Change oioioi~master~Ie1be299d45e883181c9e4f2ec0d80ca554685b59, patchset 2
        https://gerrit.sio2project.mimuw.edu.pl/3101

        SIO-2045 Page not found error after deleting a contest

        Redirect to contest-unprefixed url of contests list after calling delete_selected for contests

        Change-Id: Ie1be299d45e883181c9e4f2ec0d80ca554685b59
        Show
        Gerrit Gerrit added a comment - Change oioioi~master~Ie1be299d45e883181c9e4f2ec0d80ca554685b59, patchset 2 https://gerrit.sio2project.mimuw.edu.pl/3101 SIO-2045 Page not found error after deleting a contest Redirect to contest-unprefixed url of contests list after calling delete_selected for contests Change-Id: Ie1be299d45e883181c9e4f2ec0d80ca554685b59

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Radosław Waśko
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: