View Issue Details

IDProjectCategoryView StatusLast Update
0000411WackoWikihandlerpublic2015-02-26 09:40
ReportermiqrogrooveAssigned Toadministrator 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version4.3.0 
Target Version5.0.0Fixed in Version5.0.0 
Summary0000411: Soft 404 With DoesNotExists
DescriptionWhen I hit a random URL on a wiki, such as /zzzz the response begins with status 200. I think this is bad for search engines. Such pages should respond with status 404.
Additional InformationIn handlers/page/show.php

if (function_exists("virtual")) header("HTTP/1.0 404 Not Found");
print(str_replace("%1",$this->href("edit","","",1),$this->GetResourceValue("DoesNotExists")));

This appears to be incorrect! I can get the desired behavior by changing to:

if (!headers_sent()) header("HTTP/1.0 404 Not Found");
print(str_replace("%1",$this->href("edit","","",1),$this->GetResourceValue("DoesNotExists")));

Also note, the desired behavior only occurs with "cache" => "0". Otherwise, it seems to cache the DoesNotExists response and then it uses status 200 again on the second hit.
TagsNo tags attached.

Relationships

related to 0000264 resolvedTann San header("HTTP/1.0 403 Forbidden"); seems not to work  
related to 0000364 acknowledged Default error 403 and 404 pages should be customisable as any other Wiki-pages 

Activities

administrator

2012-02-04 09:23

administrator   ~0000842

I'll fix it for the R4.3.x branch too.

administrator

2012-02-04 19:01

administrator   ~0000843

Last edited: 2012-02-04 19:08

View 2 revisions

Fixed: http://wackowiki.hg.sourceforge.net/hgweb/wackowiki/dev/rev/153ee3418cb0

I just applied the provided patch.

Issue History

Date Modified Username Field Change
2012-02-04 06:42 miqrogroove New Issue
2012-02-04 08:06 administrator Assigned To => administrator
2012-02-04 08:06 administrator Status new => acknowledged
2012-02-04 08:06 administrator Target Version => 5.0.0
2012-02-04 09:22 administrator Relationship added related to 0000264
2012-02-04 09:23 administrator Note Added: 0000842
2012-02-04 19:01 administrator Note Added: 0000843
2012-02-04 19:01 administrator Status acknowledged => resolved
2012-02-04 19:01 administrator Resolution open => fixed
2012-02-04 19:01 administrator Fixed in Version => 4.3.x
2012-02-04 19:01 administrator Target Version 5.0.0 => 4.3.x
2012-02-04 19:02 administrator Relationship added related to 0000364
2012-02-04 19:08 administrator Note Edited: 0000843 View Revisions
2015-02-26 09:40 administrator Fixed in Version 4.3.x => 5.0.0
2015-02-26 09:40 administrator Target Version 4.3.x => 5.0.0