[Varnish] #1115: varnishncsa spuriously logs incorrect request URLs

Varnish varnish-bugs at varnish-cache.org
Mon Mar 26 07:56:07 CEST 2012


#1115: varnishncsa spuriously logs incorrect request URLs
-------------------+--------------------------------------------------------
 Reporter:  lampe  |        Type:  defect     
   Status:  new    |    Priority:  normal     
Milestone:         |   Component:  varnishncsa
  Version:  3.0.2  |    Severity:  minor      
 Keywords:         |  
-------------------+--------------------------------------------------------
 The URL appears to contain remnants of previously logged URLs, e.g.
 a request for .js could be logged as .jspg (jpg), .jsss (css), .jsif (gif)

 Example:
 {{{
     0 RxURL        c /css/img/icon_link.gif
 df_U :/css/img/icon_link.gifi:

     0 RxURL        c /js/efPageload.js
 df_U :/js/efPageload.jsvi:
 }}}


 {{{
 varnishncsa.c:
 ...
 collect_client()
 ...
         case SLT_RxURL:
 ...
                 qs = index(ptr, '?');
 (void)VSL_H_Print(stderr, tag, 0, len, spec, ptr, 0);
                 if (qs) {
                         lp->df_U = trimline(ptr, qs);
                         lp->df_q = trimline(qs, end);
                 } else {
                         lp->df_U = trimline(ptr, end);
                 }
 fprintf(stderr, "df_U :%s:\n", lp->df_U);
                 break;
 }}}

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1115>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list