Skip to content

Commit

Permalink
Revert "Malformed CIDs do not pass URL validation of nginx."
Browse files Browse the repository at this point in the history
This reverts commit 33a5dff.
  • Loading branch information
vmcj committed Jan 24, 2022
1 parent dde4652 commit 2f92863
Show file tree
Hide file tree
Showing 17 changed files with 4 additions and 17 deletions.
1 change: 0 additions & 1 deletion webapp/src/Controller/API/AwardsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class AwardsController extends AbstractRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/BalloonController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
* @Security("is_granted('ROLE_JURY') or is_granted('ROLE_API_READER') or is_granted('ROLE_BALLOON')")
*/
class BalloonController extends AbstractRestController
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/ClarificationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class ClarificationController extends AbstractRestController
{
Expand Down
5 changes: 4 additions & 1 deletion webapp/src/Controller/API/ContestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
* @OA\Tag(name="Contests")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class ContestController extends AbstractRestController
{
Expand Down Expand Up @@ -333,6 +332,10 @@ public function setBannerAction(Request $request, string $id, ValidatorInterface
* description="Contest start time changed successfully",
* )
* @OA\Response(
* response="400",
* description="Invalid input data"
* )
* @OA\Response(
* response="403",
* description="Changing start time not allowed"
* )
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/GeneralInfoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

/**
* @OA\Tag(name="General")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class GeneralInfoController extends AbstractFOSRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/GroupController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class GroupController extends AbstractRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/JudgehostController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
/**
* @Rest\Route("/judgehosts")
* @OA\Tag(name="Judgehosts")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class JudgehostController extends AbstractFOSRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/JudgementController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class JudgementController extends AbstractRestController implements QueryObjectTransformer
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/JudgementTypeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
/**
* @Rest\Route("/contests/{cid}/judgement-types")
* @OA\Tag(name="Judgement types")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class JudgementTypeController extends AbstractRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/LanguageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class LanguageController extends AbstractRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/OrganizationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class OrganizationController extends AbstractRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/ProblemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class ProblemController extends AbstractRestController implements QueryObjectTransformer
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/RunController.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class RunController extends AbstractRestController implements QueryObjectTransformer
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/ScoreboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class ScoreboardController extends AbstractRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/SubmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class SubmissionController extends AbstractRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/TeamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
* @OA\Parameter(ref="#/components/parameters/cid")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class TeamController extends AbstractRestController
{
Expand Down
1 change: 0 additions & 1 deletion webapp/src/Controller/API/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
* @OA\Tag(name="Users")
* @OA\Response(response="404", ref="#/components/responses/NotFound")
* @OA\Response(response="401", ref="#/components/responses/Unauthorized")
* @OA\Response(response="400", ref="#/components/responses/InvalidResponse")
*/
class UserController extends AbstractRestController
{
Expand Down

0 comments on commit 2f92863

Please sign in to comment.