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 existing DebugPackage.
  • Loading branch information
Michael Vasseur committed Nov 14, 2024
1 parent 635d497 commit eb0092d
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 @@ -639,8 +640,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 eb0092d

Please sign in to comment.