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

Re: Bad MIMETYPE configuration for .htm files accessed via SVN HTTP

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Wed, 25 Nov 2009 07:45:26 -0600

On Nov 25, 2009, at 07:19, vishwanath ramachandran_at_honeywell.com wrote:

> When accessing an .htm file stored in subversion, the server sends back the content with the text/plain MIMETYPE. The browser is then showing the .htm file as a plain/text file. If I open the same link in IE, it will work as expected, but in Firefox. Actually, it is not a problem with Firefox. The MIMETYPE that is sent by the HTTP server clearly specifies to the browser that it should decode the sent content (the htm file in this case) as a plain text, which Firefox does. IE apparently overrides the HTTP MIMETYPEs with a mimetype contained in the file itself. According to W3C HTTP standards, the HTTP requests mimetypes shall always take precedence.
> However, I expect that without this MIMETYPE specified in the request, Firefox would then use the mimetype contained in the file to decide upon how to decode it.
>
> The problem comes from the SVN HTTP frontend: there should be a mapping table in one of the frontend configuration files, that maps known file extensions to appropriate mimetype such as *.jpg -> mimetype/image-jpeg. Apparently, the *.htm and *.html entries are either missing, either put as text/plain.

As you already know, you need to set the svn:mime-type property of every .htm and .html file in your repository to text/html for this to work as you want. See my reply to your previous email on this subject.

> I have added the svn-mime type to video file e.g. (abc.html) svn:mime-type application/x-shockwave-flash, but it still it does not play. When I don’t embed as an object controller (video will be played continuously, we can’t stop, pause, there is no option to stop, pause), the file plays in Firefox

If you've set the file's svn:mime-type property correctly, and committed that to the repository, I don't know why it wouldn't work.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2424248

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-11-25 14:46:56 CET

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.