#99439Exception thrown when using Extbase repository via commands
Description
Using an Extbase repository in a command throws the following exception in v12.1.3:
Uncaught TYPO3 Exception Call to a member function getAttribute() on null thrown in file /var/www/html/vendor/typo3/cms-extbase/Classes/Configuration/BackendConfigurationManager.php in line 218
Obviously correct, as the request object is not available on CLI. The request variable is set as fallback to null which then leads to the error when getting the site attribute (which is then used to retrieve the TypoScript configuration).
The repository is called with a findBy… method(), the call to $this->createQuery() then creates the error.
In TYPO3 v11.5 the command workes as expected.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.