Problem/Motivation
After upgrading a client which merrily ran 1.2 on D9 to D10 && 1.3, calling the OCI punchout as
https://example.com/oci/logon?username=name@example.com&password=xxxxxxx
yields WSOD. The following message gets logged:
InvalidArgumentException: The controller for URI "/oci/logon" is not callable. in Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition() (line 53 in /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/Controller/ControllerResolver.php).
Steps to reproduce
I upgraded to 1.3 with D9 still installed, and then migrated the site to 10.2
Same also happened with a testing site, with only commerce (latest version) being installed.
The error stack reads like this, but it leaves me without a clue as what is failing here -- it seems "/oci/logon" doesn't resolve:
#0 /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/Controller/ControllerResolver.php(65): Drupal\Core\Controller\ControllerResolver->getControllerFromDefinition('\\Drupal\\commerc...', '/oci/logon')
#1 /var/www/web29/htdocs/10/vendor/symfony/http-kernel/HttpKernel.php(164): Drupal\Core\Controller\ControllerResolver->getController(Object(Symfony\Component\HttpFoundation\Request))
#2 /var/www/web29/htdocs/10/vendor/symfony/http-kernel/HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#3 /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/StackMiddleware/Session.php(58): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#4 /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(48): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#5 /var/www/web29/htdocs/10/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#6 /var/www/web29/htdocs/10/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#7 /var/www/web29/htdocs/10/web/core/modules/ban/src/BanMiddleware.php(50): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#8 /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(48): Drupal\ban\BanMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#9 /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(51): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#10 /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/StackMiddleware/AjaxPageState.php(36): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#11 /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/StackMiddleware/StackedHttpKernel.php(51): Drupal\Core\StackMiddleware\AjaxPageState->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#12 /var/www/web29/htdocs/10/web/core/lib/Drupal/Core/DrupalKernel.php(704): Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#13 /var/www/web29/htdocs/10/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#14 {main}