[Varnish] #769: Vcl_error not respecting set obj.status in vcl_error

Varnish varnish-bugs at varnish-cache.org
Sat Sep 4 10:55:47 CEST 2010


#769: Vcl_error not respecting set obj.status in vcl_error
------------------------+---------------------------------------------------
 Reporter:  stewsnooze  |        Type:  defect
   Status:  new         |    Priority:  normal
Milestone:              |   Component:  build 
  Version:  2.1.3       |    Severity:  normal
 Keywords:              |  
------------------------+---------------------------------------------------
 I've noticed that in a setup that does something along the lines of:

  sub vcl_recv {
   ...
   if (something) {
     error 798;
   }
  }

  sub vcl_error {
    if (obj.status == 798) {
      set obj.status = 404;
      synthetic {"Oh no, a "} obj.status {" occurred!"};
    }
  }

 The actual HTTP response code will be correct (404), but the text
 returned in the response will say the status was 798.

-- 
Ticket URL: <http://varnish-cache.org/ticket/769>
Varnish <http://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list