No Code Attached Yet
avatar brianteeman
brianteeman
24 Feb 2025

I dont know if this is a faulty test or a joomla bug.

To replicate

  1. npx cypress run --spec '.\tests\System\integration\install\Installation.cy.js'
  2. npx cypress run --spec '.\tests\System\integration\site\components\com_users\Registration.cy.js'
  3. npx cypress run --spec '.\tests\System\integration\site\components\com_users\Login.cy.js'
  4. in your browser login to the admin (see screenshot)
  5. check your php error log

Image

[24-Feb-2025 17:51:11 UTC] PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in D:\repos\j51\administrator\modules\mod_logged\tmpl\default.php on line 36
[24-Feb-2025 17:51:11 UTC] PHP Deprecated:  htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in D:\repos\j51\administrator\modules\mod_logged\tmpl\default.php on line 37
PS D:\repos\j51> php -v
PHP 8.3.3 (cli) (built: Feb 13 2024 23:17:12) (ZTS Visual C++ 2019 x64)
Copyright (c) The PHP Group
Zend Engine v4.3.3, Copyright (c) Zend Technologies
PS D:\repos\j51> git status
On branch 5.3-dev-origin
Your branch is up to date with 'origin/5.3-dev'.

avatar brianteeman brianteeman - open - 24 Feb 2025
avatar joomla-cms-bot joomla-cms-bot - change - 24 Feb 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Feb 2025
avatar brianteeman brianteeman - change - 24 Feb 2025
The description was changed
avatar brianteeman brianteeman - edited - 24 Feb 2025
avatar brianteeman
brianteeman - comment - 24 Feb 2025

If I was to guess then the problem is that after these tests there is a db entry in the jos_session table with username=test but there is no user in the jos_users table

Perhaps the missing step is that when deleting the user in the cypress tests you also have to delete the associated entry in the session table

avatar alikon
alikon - comment - 24 Feb 2025

please check #45003

avatar alikon
alikon - comment - 24 Feb 2025

iirc the deletion on the session table follow different logic

avatar brianteeman
brianteeman - comment - 25 Feb 2025

#45003 is only a partial fix

avatar heelc29
heelc29 - comment - 2 Mar 2025

#45003 is only a partial fix

Please check #45059

avatar alikon alikon - change - 2 Mar 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-03-02 19:02:55
Closed_By alikon
avatar alikon alikon - close - 2 Mar 2025
avatar alikon
alikon - comment - 2 Mar 2025

fixed by #45059

Add a Comment

Login with GitHub to post a comment