[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: mod_mime passthrough for svn repository resources

From: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-09-14 06:54:13 CEST

dorian taylor <dorian@foobarsystems.com> [2004-08-12 17:30:17]:
> with my particular application of subversion, i find it advantageous
> to have the mime types of the resources divined by apache, should
> they not be explicitly set by svn:mime-type. however, mod_mime
> returns DECLINED unless there is an r->filename present. the technique
> i used was to first modify mod_dav_svn's repos.c, then create a
> mod_perl header parser handler to supplant the bogus filename. the
> filename can be anything, as long as it ends with the name of the
> resource, as mod_mime does on actual operations on any files, but
> simply parses the extensions out of the name. now, there are security
> implications of passing in a path that stands the chance of actually
> existing elsewhere on the filesystem, so i took the original value
> (at this stage, the value of the <Location> block from which the
> dav module was invoked) and concatenated it to r->uri with a !, as
> i've seen occur elsewhere in svn code.

Thanks for the patch, I've filed it as issue #2049:
http://subversion.tigris.org/issues/show_bug.cgi?id=2049

-- 
Michael W Thelen
It is a mistake to think you can solve any major problems just with potatoes.
                -- Douglas Adams
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Sep 14 06:55:12 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.