Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: TAG 2021/22 Summer Sprint 1
    • Fix Version/s: None
    • Component/s: OIOIOI
    • Labels:
      None
    • Sprint:
      TAG 2021/22 Summer Sprint 1

      Description

      Due to changes in Django 2.2.26 some tests fail.

      Cause:
      - changes for dictsort usage in templates: https://docs.djangoproject.com/en/4.0/releases/2.2.26/#cve-2021-45116-potential-information-disclosure-in-dictsort-template-filter

      How to reproduce:
      - pip3 install -U django==2.2.26
      - docker-compose -f docker-compose-dev.yml -f extra/docker/docker-compose-dev-noserver.yml exec "web" ../oioioi/test3.sh -v oioioi/problems/tests/test_task_archive.py

      affected template:

      +++ b/oioioi/problems/templates/problems/task-archive-problemgroup.html
          {% for value, subdict in problems.subnodes.items|dictsort:"0.order" %}

      affected view:

      task_archive_tag_view


      code
      ```
      problems.subnodes.items|dictsort:"0.order"
      ```
      sorts tuples (subnodes.items()) by value of order attribute of first element of tuple (key)

        Activity

        Connect your code to JIRA

        Link every code change to JIRA just by adding an issue keys in commit messages. Bridge the gap back to your source and know which changes fixed which JIRA issues.

        Git & Mercurial in the cloud

        Collaborate across unlimited private code repositories.

        Git behind the firewall

        Manage and collaborate on Git repositories behind a firewall.

        Browse and search code

        Browse, search, and track source code repositories.

          People

          • Assignee:
            Aleksander Tudruj
            Reporter:
            Tomek Waleń
            TAG Developer:
            Aleksander Tudruj
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile