No Code Attached Yet bug
avatar Chaosxmk
Chaosxmk
30 Aug 2022

Steps to reproduce the issue

  1. Perform an action that passes through Joomla\CMS\MVC\Controller\BaseController::checkToken() or Joomla\CMS\Session\Session::checkToken()

Expected result

Token is verified as valid or invalid

Actual result

Occasionally, token is becomes trapped inside if ($app->getSession()->isNew()) {, never generating a new token nor validating it.

Additional comments

This is quite possibly the most aggravating bug I keep inducing accidentally. I have no idea what it is exactly that I'm doing to trip it, but after a lot of debugging I've noted that in Joomla\CMS\Session\Session::checkToken(), I always fall into if ($app->getSession()->isNew()) {, then when retrying to check the token, it repeats itself. The only solution I've found to "fix" the session is completely empty the session table in the database and delete all cookies/session variables and refresh the page.

I don't expect anyone could solve this considering I can't narrow down a reproduce-able list of steps to take, but I'm reporting it just in case someone can.

avatar Chaosxmk Chaosxmk - open - 30 Aug 2022
avatar joomla-cms-bot joomla-cms-bot - change - 30 Aug 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Aug 2022
avatar Chaosxmk Chaosxmk - edited - 30 Aug 2022
avatar Hackwar Hackwar - change - 17 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 17 Feb 2023
avatar Hackwar
Hackwar - comment - 28 Mar 2024

Do you still have this issue? I went through the code and can't see an issue there. ☹️

avatar Hackwar Hackwar - change - 28 Mar 2024
Labels Added: Information Required
avatar Hackwar Hackwar - labeled - 28 Mar 2024
avatar Chaosxmk
Chaosxmk - comment - 4 Apr 2024

On very rare occasions, I've had the bug recur, but I'm never able to properly reproduce the issue intentionally, nor am I able to diagnose the issue further that what I noted in the initial issue.

avatar Quy Quy - change - 9 Apr 2024
Labels Removed: Information Required
avatar Quy Quy - unlabeled - 9 Apr 2024

Add a Comment

Login with GitHub to post a comment