bgarrels / textpattern

Automatically exported from code.google.com/p/textpattern
0 stars 0 forks source link

No 404 for non existent categories #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use messy URLs
2. Call a not existing category

Example: http://advokathamburg.de./index.php?c=enenemuh

What is the expected output? What do you see instead?
A 404 is expected.
Instead the category list page is called and delivers empty output.

What version of the product are you using? On what operating system?
4.4.1

Please provide any additional information below.

Excerpt from the forum entry 
(http://forum.textpattern.com/viewtopic.php?id=37100):

I managed to get clean URLs working but the error still exists when using the 
messy URL.

* TXP throws a correct 404 for non existent sections.
* TXP doesn’t throw a 404 for non existent categories.
** I did not check which other URL parameters are not caught with a 404.
** Note: The txp:if_category which I use is called (photos in the right 
sidebar) and delivers an empty category page with status 200. I’d prefer the 
404 :)

In clean URL mode on another website TXP delivers a correct 404 for non 
existent categories.

Original issue reported on code.google.com by merzmar...@gmail.com on 10 Nov 2011 at 3:18

GoogleCodeExporter commented 9 years ago
Sorry for the dot (which btw delivers the same page). Correct is:

Example: http://advokathamburg.de/index.php?c=enenemuh

Original comment by merzmar...@gmail.com on 10 Nov 2011 at 3:20

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r3870.

Original comment by r.wetzlmayr on 29 Jun 2012 at 10:05