View Issue Details

IDProjectCategoryView StatusLast Update
0000264WackoWikicorepublic2012-02-04 09:22
Reporteradministrator Assigned ToTann San  
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Product Version5.0.0 
Target Version5.0.betaFixed in Version5.0.beta 
Summary0000264: header("HTTP/1.0 403 Forbidden"); seems not to work
Descriptionit seems that the function like

if (function_exists("virtual")) header("HTTP/1.0 403 Forbidden");
    print($this->GetResourceValue("ReadAccessDenied"));

won't take effect ?
-> got a HTTP Status Code: HTTP/1.1 200 OK

how can I find out that the header works
same issue with function Redirect

Steps To Reproducetest the header output of the show handler for instance on cases like
if (function_exists("virtual")) header("HTTP/1.0 403 Forbidden");
if (function_exists("virtual")) header("HTTP/1.0 404 Not Found");

or

function Redirect($url, $permanent = false)
{
    if($permanent)
    {
        header('HTTP/1.1 301 Moved Permanently');
    }
    header("Location: $url"); exit;
}
Additional InformationA "must-have" for search engine optimization, especially for verifying 301 and 302 redirects.
TagsNo tags attached.

Relationships

related to 0000411 resolvedadministrator Soft 404 With DoesNotExists 

Activities

administrator

2009-01-22 15:44

administrator   ~0000565

ebal:
for checking headers i use this :
https://addons.mozilla.org/en-US/firefox/addon/3829

Tann San

2009-04-09 16:02

manager   ~0000626

The "virtual" function only exists on CGI installs of PHP which means the headers only worked with PHP in a CGI config. I removed the conditional about that so it always performas the header change.

Issue History

Date Modified Username Field Change
2009-01-21 23:46 administrator New Issue
2009-01-21 23:52 administrator Assigned To => Tann San
2009-01-21 23:52 administrator Status new => feedback
2009-01-21 23:52 administrator Summary header("HTTP/1.0 403 Forbidden"); seems not to work -> got a HTTP Status Code: HTTP/1.1 200 OK => header("HTTP/1.0 403 Forbidden"); seems not to work
2009-01-21 23:52 administrator Description Updated
2009-01-21 23:52 administrator Steps to Reproduce Updated
2009-01-22 15:42 administrator Steps to Reproduce Updated
2009-01-22 15:42 administrator Additional Information Updated
2009-01-22 15:44 administrator Note Added: 0000565
2009-04-09 16:02 Tann San Note Added: 0000626
2009-04-09 16:02 Tann San Status feedback => resolved
2009-04-09 16:02 Tann San Fixed in Version => 5.4.0
2009-04-09 16:02 Tann San Resolution open => fixed
2009-04-11 01:54 Tann San Product Version 4.2 => 5.0.0
2009-04-11 01:54 Tann San Fixed in Version 5.4.0 => 5.0.0
2009-04-11 01:54 Tann San Target Version => 5.0.0
2009-10-13 15:58 administrator Target Version 5.0.0 => 5.0.beta
2009-10-13 16:03 administrator Fixed in Version 5.0.0 => 5.0.beta
2010-03-08 10:12 administrator Category Core => core
2012-02-04 09:22 administrator Relationship added related to 0000411