Skip to content
Snippets Groups Projects
Commit 3adb7533 authored by Benjamin Franzke's avatar Benjamin Franzke Committed by Frank Naegler
Browse files

[BUGFIX] Convert eID null return values to a NullResponse

An eID script (like FileDumpController) might return null.
We need to convert that to a NullResponse in order to be
propagatable back through the middleware stack.

Change-Id: I75dde1a019a9925fd70ab36bd2dddc6efb110d4c
Releases: master
Resolves: #83854
Reviewed-on: https://review.typo3.org/55671


Reviewed-by: default avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarMathias Brodala <mbrodala@pagemachine.de>
Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: default avatarFrank Naegler <frank.naegler@typo3.org>
parent c71c09ad
Branches
Tags
No related merge requests found
......@@ -63,7 +63,7 @@ class EidHandler implements MiddlewareInterface
/** @var Dispatcher $dispatcher */
$dispatcher = GeneralUtility::makeInstance(Dispatcher::class);
$request = $request->withAttribute('target', $configuration);
return $dispatcher->dispatch($request, $response);
return $dispatcher->dispatch($request, $response) ?? new NullResponse();
}
$scriptPath = GeneralUtility::getFileAbsFileName($configuration);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment