Skip to content

Commit

Permalink
Repair downloading of the DebugPackage
Browse files Browse the repository at this point in the history
We couldn't translate the provided parameter to the exiting DebugPackage.
  • Loading branch information
Michael Vasseur committed Oct 27, 2024
1 parent a918852 commit d02a6cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions webapp/src/Controller/Jury/SubmissionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
use Doctrine\ORM\NonUniqueResultException;
use Doctrine\ORM\NoResultException;
use Doctrine\ORM\Query\Expr\Join;
use Symfony\Bridge\Doctrine\Attribute\MapEntity;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
Expand Down Expand Up @@ -636,8 +637,9 @@ public function requestFullDebug(Request $request, Judging $jid): RedirectRespon
}

#[Route(path: '/download-full-debug/{debug_package_id}', name: 'download_full_debug')]
public function downloadFullDebug(DebugPackage $debugPackage): StreamedResponse
{
public function downloadFullDebug(
#[MapEntity(id: 'debug_package_id')] DebugPackage $debugPackage
): StreamedResponse {
$name = 'debug_package.j' . $debugPackage->getJudging()->getJudgingid()
. '.db' . $debugPackage->getDebugPackageId()
. '.jh' . $debugPackage->getJudgehost()->getJudgehostid()
Expand Down

0 comments on commit d02a6cd

Please sign in to comment.