Project

General

Profile

Actions

Bug #75281

closed

Inconsistence on Handling eID requests

Added by Petra Arentzen over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-03-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.6
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

If I set a class as eid configuration, an exception in EidRequestHandler is thrown: 'Registered eID has invalid script path.'

$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['myeidid'] = \My\AjaxController::class; // Worked in 7.4.0, but not in 7.6.4

But later in TYPO3\CMS\Core\Http\Dispatcher::getCallableFromTarget() the case case where only a class is set would be handled:

// ...
        // Only a class name is given
        if (is_string($target) && strpos($target, ':') === false) {
            $targetObject = GeneralUtility::makeInstance($target);
            if (!method_exists($targetObject, '__invoke')) {
                throw new \InvalidArgumentException('Object "' . $target . '" doesn\'t implement an __invoke() method and cannot be used as target.', 1442431631);
            }
            return $targetObject;
        }
/// ...
Actions

Also available in: Atom PDF