No Code Attached Yet bug
avatar Flowman
Flowman
19 Jul 2024

Steps to reproduce the issue

If calling the function Mfa::getConfigurationInterface from a 3-party component it throws an asset error.

There is no "com_users.two-factor-list" asset of a "script" type in the registry.

Expected result

No error should be thrown.

Actual result

Asset error.

System information (as much as possible)

dbserver: mysql
dbversion: 8.0.21-12.1
phpversion: 8.3.8
server: nginx/1.25.4
version: Joomla! 5.1.1 Stable [ Kudumisha ] 28-May-2024 16:00 GMT

Additional comments

The issues is here.

if (!$app->getInput()->getCmd('option', '') === 'com_users') {

if (!$app->getInput()->getCmd('option', '') === 'com_users') {

should be

if (!($app->getInput()->getCmd('option', '') === 'com_users')) {

or

if ($app->getInput()->getCmd('option', '') !== 'com_users') {
avatar Flowman Flowman - open - 19 Jul 2024
avatar joomla-cms-bot joomla-cms-bot - change - 19 Jul 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 19 Jul 2024
avatar Quy Quy - change - 19 Jul 2024
Labels Added: bug
avatar Quy Quy - labeled - 19 Jul 2024
avatar Quy Quy - close - 21 Jul 2024
avatar Quy
Quy - comment - 21 Jul 2024

Thanks for the report. Please test #43818 for v4.4 to be upmerged.

avatar Quy Quy - change - 21 Jul 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-07-21 00:01:07
Closed_By Quy

Add a Comment

Login with GitHub to post a comment