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

mime-type problem 2.

From: Péter <peter_kovari_at_yahoo.com>
Date: 2003-12-05 16:43:12 CET

I tried the svn command line client, it works great. I set the svn:mime-type property and the content came up fine in the format i want to.
My problem is that i cannot use any command line client or any API, my client is Mozilla and uses WebDAV PUT to add/update files (HTML) to subversion via APACHE2.
 
When the file arrives to SVN through APACHE2, using the svn module, the module simply does not care about the global config settings (/etc/subversion/config).
I think it is not correct. In this case the APACHE2 svn module is the client, it should use client config settings, or at least the global config settings.
 
Is there a way to tell the APACHE2 svn module to use a certain config file ? or to use the global config ?
 
 
I have no svn:mime-type property defined for the files by default, the svn module assumes that the files are text/plain for some reason.
 
Is there a way to get the APACHE svn module to fall back to APACHE's mime-type module if such a property is not defined ? instead of returning everything in text/plain ?

Péter Kõvári <peter_kovari@yahoo.com> wrote:
Date: Thu, 4 Dec 2003 15:17:21 -0800 (PST)
From: "Péter" "Kõvári"

To: users@subversion.tigris.org
Subject: mime-type problem

I am trying to maintain HTML documents in Subversion. I use Mozilla Composer to publish the documents using WebDAV PUT. The AutoVersioning is turned on. Everything looks OK with the publishing.

When i open a document on the Web server (Apache) browsing the repository index, the HTML pages come up as plain text (text/plain).

I have tried to use the ForceType directive with text/html in the Location, but it did not work - is it a bug or it works as designed ?

I have tried to use the mime_magic_module with the correct configuration, but it did not work - is it a bug or it works as designed ?

Is there a way i can make any of these working ? or any other way to tell SVN to fallback to Apache's mime-type module ?

I know there is a property for the files i can set, svn:mime-type, but i do not use a proper svn client to add/update the files, so i cannot use this. I have tried the config file under the /etc/subversion/config to enable auto-props, then set every *.html file to text/html mime version, but it did not work. BTW there is a problem with the documentation, is says: svn:mime-type and the sample config file uses svn:mimetype (no dash).

Did i miss something ? why is the global config not working ? any ideas ?

My configuration is:

RedHat 8.0

SVN 0.33-1 (with all the Apache stuff)

httpd.conf:

<Location /svntest>

DAV svn

ForceType text/html

SVNPath /var/www/svntest

AuthType Basic

AuthName "Subversion"

AuthUserFile /etc/svn-auth-file

Require valid-user

SVNAutoversioning On

</Location>

---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
Received on Fri Dec 5 16:44:00 2003

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

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