? ? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
20 May 2021

After considerable debugging... like hours with xdebug and stepping through the code...

Rather than revert #33145 with PR #33993 for issue #32966 this PR will fix the already merged code so that RuntimeStorage is used (basically reverting PART of the PR), and along with the previous PR #33145 change to add the session.handler into the container, this fixes the issue reported in #32966 when deleting users.

The session.handler is needed because after deleting users using the CLI, plugins are triggered by the dispatcher, the onUserAfterDelete event is triggered in the plgUserJoomla class

In this class it attempts to "Fetch all session IDs for the user account so they can be destroyed". To do this it attempts to call the session.manager from the container, which doesnt exist ( issue #32966 )

#33145 has added a session.manager into the container, which the plugin needs to be there.

This PR simply changes the JoomlaStorage for the RuntimeStorage

@wilsonge

Testing Instructions

php cli/joomla.php  user:add
test
test
test@example.xom
6

php cli/joomla.php  user:delete
test
yes

avatar PhilETaylor PhilETaylor - open - 20 May 2021
avatar PhilETaylor PhilETaylor - change - 20 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 May 2021
Category Libraries
avatar richard67 richard67 - change - 20 May 2021
Title
[4][Release Blocker] use RuntimeStorage on CLI
[4] Use RuntimeStorage on CLI
avatar richard67 richard67 - edited - 20 May 2021
avatar richard67
richard67 - comment - 20 May 2021

@PhilETaylor So issue #32966 and PR #33993 can be closed?

avatar PhilETaylor
PhilETaylor - comment - 20 May 2021

Up to @wilsonge

avatar richard67
richard67 - comment - 20 May 2021

Up to @wilsonge

@PhilETaylor Maybe for the issue, but PR #33993 is up to you, or not?

avatar PhilETaylor
PhilETaylor - comment - 20 May 2021

I honestly dont know which of the two approaches satisfy @wilsonge (and Im waiting to see which are thumbed down by @SharkyKZ )

At the end of the day, the container needs session.handler else the plugin cannot run. The only other approach is the nasty catching of the exception and silently allowing it to fail, but I dont think that is graceful either.

avatar richard67
richard67 - comment - 20 May 2021

@PhilETaylor If both PR's would solve the issue and we just have to chose one, we should close the issue, but if there is something remaining unsolved from that issue we should leave it open. I just need to know if I can close the issue or not,

avatar richard67
richard67 - comment - 20 May 2021

@wilsonge Please check if you prefer this one here pr the other PR #33993 .

avatar PhilETaylor
PhilETaylor - comment - 20 May 2021

I have closed the issue as we have PRs that @wilsonge can choose from. Or submit his own. Ive done the research drastically cutting down the time he needed to take.

avatar richard67
richard67 - comment - 20 May 2021

Thanks.

avatar wilsonge
wilsonge - comment - 21 May 2021

If this works this would be my preferred candidate!

avatar PhilETaylor
PhilETaylor - comment - 21 May 2021

It works.

avatar alikon alikon - test_item - 22 May 2021 - Tested successfully
avatar alikon
alikon - comment - 22 May 2021

I have tested this item successfully on d17dbb2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34043.

avatar himanshu007-creator himanshu007-creator - test_item - 22 May 2021 - Tested successfully
avatar himanshu007-creator
himanshu007-creator - comment - 22 May 2021

I have tested this item successfully on d17dbb2


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34043.

avatar richard67 richard67 - change - 22 May 2021
Status Pending Ready to Commit
Labels Added: ?
avatar richard67
richard67 - comment - 22 May 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34043.

avatar wilsonge wilsonge - change - 22 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-22 21:55:48
Closed_By wilsonge
Labels Added: ? ?
avatar wilsonge wilsonge - close - 22 May 2021
avatar wilsonge wilsonge - merge - 22 May 2021
avatar wilsonge
wilsonge - comment - 22 May 2021

Thanks!

Add a Comment

Login with GitHub to post a comment