Details

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

      Description

      Uploading package with API does not work.
      Steps to reproduce:
      ```
      curl -v \
          --form contest_id=contest-id\
          --form round_name=round-name \
          --form package_file=@/path/to/file/abc.zip \
          --header 'Authorization: Token XXX-XXX-XXX-XXX' \
          https://sio2.mimuw.edu.pl/api/problems/package_upload/
      ```

      Error code: 403
      Returned JSON: `{"message":"Permission denied."}`

      Tested on SIO and Szkopuł by different users with permissions.


      PS (to person fixing)
      It would be nice, if uploading packed would return problem_id needed by package_reupload, if that doesn't now.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        New New Resolved Resolved
        4d 15h 46m 1 Wojciech Dubiel 2020-04-10 9:49

          People

          • Assignee:
            Szymon Acedański
            Reporter:
            Dominik Klemba
          • Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: