bug PR-5.2-dev Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
22 Mar 2024

Pull Request for Issue #42766, #27356 .

Summary of Changes

Right now, when the router is called to parse a URL, a failing parse always throws a 404 exception. This is actually not something that we want. This PR changes the router to only throw a 404 when the $setvars switch is set, since we do that only when we do the initial parsing. If parsing a URL fails without the switch, the returned array should be empty.

Testing Instructions

Codereview

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar Hackwar Hackwar - open - 22 Mar 2024
avatar Hackwar Hackwar - change - 22 Mar 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 22 Mar 2024
Category Libraries
avatar Hackwar Hackwar - change - 26 Mar 2024
Labels Added: bug PR-5.2-dev
avatar Hackwar Hackwar - change - 29 Mar 2024
The description was changed
avatar Hackwar Hackwar - edited - 29 Mar 2024
avatar Hackwar Hackwar - change - 3 Apr 2024
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2024-04-03 17:33:47
Closed_By Hackwar
avatar Hackwar
Hackwar - comment - 3 Apr 2024

After discussion in the CMS maintainer meeting, we decided that this is the wrong approach. I'm closing this PR. If you run the parse() method, you have to wrap this with a try-catch block.

avatar Hackwar Hackwar - close - 3 Apr 2024

Add a Comment

Login with GitHub to post a comment