Last modified: 2013-01-23 13:35:36 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T41005, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39005 - Varnish 2.x doesn't like full urls in PURGE requests
Varnish 2.x doesn't like full urls in PURGE requests
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.20.x
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mediawiki.org/wiki/Thread:...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-03 12:56 UTC by Bawolff (Brian Wolff)
Modified: 2013-01-23 13:35 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Bawolff (Brian Wolff) 2012-08-03 12:56:22 UTC
According to http://www.mediawiki.org/wiki/Thread:Project:Support_desk/Varnish_purging_not_working_since_Varnish_2.x Varnish 2.x expects HTTP purge's to be of the form

PURGE foo HTTP/1.0
host: http://somewhere.com

instead of what we do which is:

PURGE http://somewhere.com/foo HTTP/1.0


We should investigate if this is true, and if so either change our SquidPurgeClient to do what varnish likes, or put in a config variable
Comment 1 Daniel Friesen 2012-08-03 13:20:27 UTC
I already wrote the code to fix this and tried to submit it:
https://gerrit.wikimedia.org/r/#/c/4065/

But then it was rejected.
Comment 2 Bawolff (Brian Wolff) 2012-08-03 13:46:26 UTC
cc'ing hashar since he commented on that change in gerrit.
-----

So just to clarify, we rejected the patch because we don't like the way another product interpreted the HTTP standard?
Comment 3 Antoine "hashar" Musso (WMF) 2012-08-27 13:54:44 UTC
PURGE is not part of the HTTP standard. I am pretty sure Squid does not support virtual host for purge command and expect a full URL.

So we want a new class such as VarnishPurgeClient or something similar.
Comment 4 Tim Starling 2012-10-04 07:55:02 UTC
Squid supports the Host header in PURGE requests as long as reverse-proxy mode (i.e. http_port ... accel) is enabled, which it always should be if it is in $wgSquidServers. I've confirmed this back to Squid 2.6 in both vhost and defaultsite mode. So the Host header can be sent unconditionally, there's no need for a secret "make this work in Varnish" configuration variable.
Comment 5 db [inactive,noenotif] 2012-11-24 21:35:23 UTC
(In reply to comment #1)
> https://gerrit.wikimedia.org/r/#/c/4065/

Status Merged, bug resolved?
Comment 6 Andre Klapper 2012-12-31 15:08:35 UTC
(In reply to comment #5)
> > https://gerrit.wikimedia.org/r/#/c/4065/
> 
> Status Merged, bug resolved?

No feedback => assuming it's fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links