[wp-trac] [WordPress Trac] #17047: Not following spec for REQUEST_URI

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 5 03:03:23 UTC 2011


#17047: Not following spec for REQUEST_URI
---------------------------+------------------------------
 Reporter:  sterlo         |       Owner:  sterlo
     Type:  defect (bug)   |      Status:  reviewing
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  3.1
 Severity:  normal         |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------------------
Changes (by sterlo):

 * owner:   => sterlo
 * status:  new => reviewing


Comment:

 Here's a test prior to the patch:
 {{{
 [grok at jutsu:~] $ curl -sv -x 209.20.77.244:80
 "http://subdomain.mysite.com/"
 * About to connect() to proxy 209.20.77.244 port 80 (#0)
 *   Trying 209.20.77.244... connected
 * Connected to 209.20.77.244 (209.20.77.244) port 80 (#0)
 > GET http://subdomain.mysite.com/ HTTP/1.1
 > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7
 OpenSSL/0.9.8l zlib/1.2.3
 > Host: slice37.dealertrend.com
 > Accept: */*
 > Proxy-Connection: Keep-Alive
 >
 < HTTP/1.1 301 Moved Permanently
 < Date: Tue, 05 Apr 2011 02:59:30 GMT
 < Server: Apache/2.2.14 (Ubuntu)
 < X-Powered-By: PHP/5.3.2-1ubuntu4.7
 < X-Pingback: http://subdomain.mysite.com/xmlrpc.php
 < Location: http://subdomain.mysite.comhttp/subdomain.mysite.com/
 < Vary: Accept-Encoding
 < Content-Length: 0
 < Content-Type: text/html; charset=UTF-8
 <
 * Connection #0 to host 209.20.77.244 left intact
 * Closing connection #0
 }}}

 After the patch:
 {{{
 [grok at jutsu:~] $ curl -sv -x 209.20.77.244:80
 "http://subdomain.mysite.com/" -o /dev/null
 * About to connect() to proxy 209.20.77.244 port 80 (#0)
 *   Trying 209.20.77.244... connected
 * Connected to 209.20.77.244 (209.20.77.244) port 80 (#0)
 > GET http://subdomain.mysite.com/ HTTP/1.1
 > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7
 OpenSSL/0.9.8l zlib/1.2.3
 > Host: subdomain.mysite.com
 > Accept: */*
 > Proxy-Connection: Keep-Alive
 >
 < HTTP/1.1 200 OK
 < Date: Tue, 05 Apr 2011 03:01:49 GMT
 < Server: Apache/2.2.14 (Ubuntu)
 < X-Powered-By: PHP/5.3.2-1ubuntu4.7
 < X-Pingback: http://subdomain.mysite.com/xmlrpc.php
 < Vary: Accept-Encoding
 < Content-Length: 6407
 < Content-Type: text/html; charset=UTF-8
 <
 { [data not shown]
 * Connection #0 to host 209.20.77.244 left intact
 * Closing connection #0
 }}}

 Prior to the patch - it caused issues with proxies.

 After the patch - there is no problem. The assumptions previously in place
 are just enforced.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17047#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list