You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by P�ter K�v�ri <pe...@yahoo.com> on 2003/12/04 23:17:21 UTC
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>
PETER
---------------------------------
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
Re: mime-type problem
Posted by John Szakmeister <jo...@szakmeister.net>.
On Thursday 04 December 2003 18:17, Péter wrote:
> 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 can't comment on the Apache stuff, but I can comment on the following.
> 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 ?
/etc/subversion/config is used by subversion clients, and since you don't have
one, they won't look at it. Can you log into the machine that hosts the
repository? I imagine if it has the server, it probably has the command line
client.
As for the documentation, you're correct. Someone recently posted a patch for
that and has been fixed in trunk/.
> My configuration is:
>
> RedHat 8.0
>
> SVN 0.33-1 (with all the Apache stuff)
It looks like you probably have the command line client. You should give it a
try.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: mime-type problem
Posted by nakamoto <hi...@borndigital.co.jp>.
It used to work ( svn 0.31/apache 2.0.47 ), but now it doesn't ( svn
0.34/apache 2.0.48) .
I set svn:mime-type to "text/xml" and "svn propget svn:mime-type" still
returns "text/xml",
but the same file returns "text/plain" when invoked by a web browser.
Hiroshi Nakamoto
----------------------------
>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>
>
>PETER
>
>
>Do you Yahoo!?
><http://us.rd.yahoo.com/slv/mailtag/*http://companion.yahoo.com/>Free
>Pop-Up Blocker - Get it now
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: mime-type problem
Posted by Branko Čibej <br...@xbc.nu>.
PXter KXvXri wrote:
> 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 ?
>
It works as designed. You must set the svn:mime-type property on the files.
--
Brane Čibej <br...@xbc.nu> http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org