?
avatar Hackwar
Hackwar
7 Apr 2014

This is copied over from Joomlacode, since the bug is still present. http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_id=8103&tracker_item_id=31557

How to reproduce the problem and/or test the patch:: Install Joomla, enable mod_rewrite SEF, have the homepage be a featured view from com_content, look up a random article id in the backend, type the URL

http://domain.tld/-blarg

You don't get a 404 and instead a valid site with the homepage itemid and the article with the article id.

When Joomla receives a request with a non-existant URL, it should properly throw a 404 error. Right now, this is not the case.
If you call Joomla with an invalid URL that starts with a number followed by a dash and then some giberish and the number corresponds to an existing article, you get a 200 response with the article with the ID that is corresponding to the number at the beginning of the URL. That site has the Itemid of the homepage.
This means that right now we have at least 3 different URLs for accessing an article with different Itemids.
This bug is present both in 2.5 and 3.1.
I actually don't really want to look through the router any further and find all the current bugs. If there is an interest, I would provide a rewrite of the router for the core components based on the routers from 1.6 for the 2.5 development line. That would also include the HelperRoute classes mentioned in the other bug reports. For 3.x, I'd still like to advocate a complete rewrite of the routing system.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar Hackwar Hackwar - open - 7 Apr 2014
avatar Hackwar Hackwar - change - 7 Apr 2014
The description was changed
avatar RCheesley
RCheesley - comment - 30 Jul 2014

Just discovered this, it's the same problem as http://issues.joomla.org/tracker/joomla-cms/4034
(#4034)

avatar RCheesley
RCheesley - comment - 30 Jul 2014

@test Able to reproduce in current 2.x and 3.x versions
You may blame the J!Tracker Application for transmitting this comment.

avatar brianteeman brianteeman - change - 30 Jul 2014
The description was changed
Status New Pending
avatar brianteeman brianteeman - change - 2 Sep 2014
Category SEF
avatar Hackwar
Hackwar - comment - 4 Dec 2014

Since I'm working on this and the reported bug is very general, I'm going to close this. I know the issues and will solve them. :wink:

avatar Hackwar Hackwar - change - 4 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-04 10:52:25
avatar Hackwar Hackwar - close - 4 Dec 2014
avatar zero-24 zero-24 - close - 4 Dec 2014
avatar zero-24 zero-24 - change - 7 Jul 2015
Labels Added: ?

Add a Comment

Login with GitHub to post a comment