bug PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
23 Sep 2023

Enable debug and then trigger a 404 on the frontend

Instead of the regular 404 page we get a 404 and a 500

This is caused by the line commented out in this PR.

That line was added by #35655

Sorry I can't contribute a real solution as I don't understand the code. I was just able to locate the source and provide this PR to showcase the problem

image

avatar joomla-cms-bot joomla-cms-bot - change - 23 Sep 2023
Category Front End Plugins
avatar brianteeman brianteeman - open - 23 Sep 2023
avatar brianteeman brianteeman - change - 23 Sep 2023
Status New Pending
avatar richard67
richard67 - comment - 23 Sep 2023

So I understand right that this PR is not a fix but just for demonstrating the issue? If yes: Maybe it would have been safer to use an issue and describe the code change for the test in that issue?

avatar Fedik
Fedik - comment - 23 Sep 2023

@brianteeman Please remove these 2 lines, and we will call it a fix, and please make it to 4.4-dev (it comes from there)
the plugin should not manipulate the session.

// Close session to collect possible session-related queries.
$this->getApplication()->getSession()->close();

avatar HLeithner
HLeithner - comment - 23 Sep 2023

maybe @Denitz can explain the reason behind these 2 lines? #35655

avatar brianteeman
brianteeman - comment - 23 Sep 2023

maybe @Denitz can explain the reason behind these 2 lines? #35655

thats why I did not make a real pr as i didnt understand the reason.

in this case making the pr here was a better way to show the problem imho than a regular issue

avatar Denitz
Denitz - comment - 23 Sep 2023

@brianteeman I will take a look in 1h, we close the session in debug plugin in order to collect the queries related to session close.

avatar Fedik
Fedik - comment - 23 Sep 2023

@Denitz plugin should not close session, it is wrong to me

avatar Denitz
Denitz - comment - 23 Sep 2023

@brianteeman @Fedik If we don't close the session, we won't see the queries from the session handler.

I've create PR for 4.4-dev, please check #41893

avatar brianteeman brianteeman - change - 23 Sep 2023
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2023-09-23 14:38:02
Closed_By brianteeman
Labels Added: bug PR-5.0-dev
avatar brianteeman brianteeman - close - 23 Sep 2023

Add a Comment

Login with GitHub to post a comment