Hi,

OS.o is still sending the wrong content type header. See the difference
between the Content-Type headers for an ODP file from sun.com and OS.o.

I know the app OS.o has been modified, but it still doesn't seem quite
right.

Sun.com:
[EMAIL PROTECTED]:~:> wget --save-headers -O -
http://www.sun.com/aboutsun/comm_invest/giving/so8/docs/Presentation_Example.odp
 


--2008-05-31 10:02:47--
http://www.sun.com/aboutsun/comm_invest/giving/so8/docs/Presentation_Example.odp
Resolving www.sun.com... 72.5.124.61
Connecting to www.sun.com|72.5.124.61|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 392382 (383K) [application/vnd.oasis.opendocument.presentation]
Saving to: `STDOUT'

  0% [

] 0           --.-K/s             HTTP/1.1 200 OK
Server: Sun-Java-System-Web-Server/6.1
Date: Sat, 31 May 2008 14:02:33 GMT
Content-length: 392382
Content-type: application/vnd.oasis.opendocument.presentation
......
====

OS.o:

[EMAIL PROTECTED]:~:> wget --save-headers -O -
http://opensolaris.org/os/community/edu/chap3.1VirtualMemorySystem.odp |
more
--2008-05-31 10:06:19--
http://opensolaris.org/os/community/edu/chap3.1VirtualMemorySystem.odp
Resolving opensolaris.org... 72.5.123.5
Connecting to opensolaris.org|72.5.123.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 445956 (436K) [text/plain]
Saving to: `STDOUT'

  0% [

] 0           --.-K/s             HTTP/1.1 200 OK
Date: Sat, 31 May 2008 14:06:04 GMT
Server: Apache/2.0.58 (Unix) mod_ssl/2.0.58 OpenSSL/0.9.8a DAV/2
proxy_html/2.5 mod_jk/1.2.15
Connection: Keep-Alive, Keep-Alive
ETag: W/"445956-1152107739000"
Keep-Alive: timeout=15, max=100
Last-Modified: Wed, 05 Jul 2006 13:55:39 GMT
Content-Length: 445956
Content-Type: text/plain;charset=utf-8


~mm

Derek Cicero wrote:
> Alan Burlison wrote:
>> Michael Monaghan wrote:
>>
>>> Yes the mime.types file should have something like:
>>>
>>> type=application/vnd.sun.xml.impress             exts=sxi,odp
>> The MIME types for attachments comes from the database, not the Apache 
>> mime.types file (don't ask...).  I've checked all the .odp attachments 
>> and they are a mix of:
>>
>> application/x-vnd.oasis.opendocument.presentation
>> application/vnd.oasis.opendocument.presentation
>>
>> there are no attachments with the type=application/vnd.sun.xml.impress 
>> MIME type.
>>
> 
> Looking at just the case of odp (for now)
> 
> The database says
> 
>   application/vnd.oasis.opendocument.presentation
> 
> and the link you sent (which is actually the info I used to set it up in 
> the first place) says:
> 
>   application/vnd.oasis.opendocument.presentation
> 
> so it should work, yes?
> 
> btw - the second item
> 
>   application/x-vnd.oasis.opendocument.presentation
> 
> was an artifact of my testing and should no longer be assigned to any of 
> the odp files.
> 
> Derek
> 
>> The lookup table used for determining a file's MIME type from its 
>> extension contains the following StarOffice/OpenOffice types:
>>
>> +------------+---------------------------------------------------+----------------------------------------------------------+
>> | extensions | encoding                                          | 
>> description                                              |
>> +------------+---------------------------------------------------+----------------------------------------------------------+
>> | ode        | application/x-vnd.oasis.opendocument.presentation | 
>> OpenOffice/StarOffice OpenDocument (Ver 2) Presentation  |
>> | odp        | application/vnd.oasis.opendocument.presentation   | 
>> OpenDocument Presentation                                |
>> | ods        | application/vnd.oasis.opendocument.spreadsheet    | 
>> OpenOffice/StarOffice OpenDocument Spreadsheet           |
>> | odw,odt    | application/vnd.oasis.opendocument.text           | 
>> OpenOffice Writer File                                   |
>> | std        | application/vnd.sun.xml.draw.template             | File 
>>                                                      |
>> | sti        | application/vnd.sun.xml.impress.template          | Preso 
>> Template                                           |
>> | stw        | application/vnd.sun.xml.writer.template           | 
>> Document Template                                        |
>> | sxc        | application/vnd.sun.xml.calc                      | 
>> Spreadsheet                                              |
>> | sxd        | application/vnd.sun.xml.draw                      | File 
>>                                                      |
>> | sxg        | application/vnd.sun.xml.writer.global             | File 
>>                                                      |
>> | sxi        | application/vnd.sun.xml.impress                   | Preso 
>>                                                     |
>> | sxm        | application/vnd.sun.xml.math                      | File 
>>                                                      |
>> | sxw        | application/vnd.sun.xml.writer                    | 
>> Document                                                 |
>> +------------+---------------------------------------------------+----------------------------------------------------------+
>>
>> Which looks both incomplete and incorrect.  I believe the definitive 
>> source of MIME types used by OpenOffice is 
>> http://framework.openoffice.org/documentation/mimetypes/mimetypes.html
>>
> 
> 

_______________________________________________
website-discuss mailing list
[email protected]

Reply via email to