Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 61585 invoked from network); 28 Oct 2008 15:43:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Oct 2008 15:43:27 -0000 Received: (qmail 30982 invoked by uid 500); 28 Oct 2008 15:43:31 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 30729 invoked by uid 500); 28 Oct 2008 15:43:29 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 30718 invoked by uid 99); 28 Oct 2008 15:43:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 08:43:29 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Oct 2008 15:42:15 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Kuqic-0000KJ-HE for users@jackrabbit.apache.org; Tue, 28 Oct 2008 08:42:54 -0700 Message-ID: <20209404.post@talk.nabble.com> Date: Tue, 28 Oct 2008 08:42:54 -0700 (PDT) From: Dave Fried To: users@jackrabbit.apache.org Subject: Re: GET webdav method - bad http content type In-Reply-To: <4905CE76.4020903@sib.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: dfried@phoenix-int.com References: <4905CE76.4020903@sib.fr> X-Virus-Checked: Checked by ClamAV on apache.org I have seen this happen with Slide when the content type property of the fi= le was not set correctly on upload. Do you know if your client sends the appropriate client type on a PUT/POST request? If it is a bad content-type= , one of the following MAY be the problem: * the client is sending the wrong content-type * the client is not sending any content-type and the server is mis-interpreting the type * the client is not sending any content-type and the server does not recognize the file type, so it is defaulting to text/html * same as previous, but the server isn't sending anything at all, so the web browser defaults to text/html Make sure your build contains the properties file "mimetypes.properties", which contains mappings for file extensions to MIME types. This is require= d for the server to interpret file types when the client does not send the type. I see that .doc, .rtf, etc. are already listed in the default versio= n of the file, so your build may just not be loading it properly. If you want to know whether it's a default value being provided by the server or browser, you can edit config.xml to enable the "" element, then set something random for "". If this shows up in the browser, then it's falling back to the default. Not sure if that will help, but hopefully it will. THIBAULT Joseph wrote: >=20 > We try to use jackarabbit webdav server to store several document format= =20 > (word, rtf, excel, txt ...). > When we send a GET HTTP webdav request to these documents (from ie for=20 > instance), jackrabbit return the document with HTTP header content-type= =20 > value =E2=80=9Ctext/html=E2=80=9D and not a content-type value text/rtf o= r=20 > application/msword or text/plain or =E2=80=A6 > As a result, ie doesn=E2=80=99t display correctly some documents like exc= el or=20 > rtf. It displays the binary and doesn=E2=80=99t call correct editor like = excel=20 > or word for rtf. > Is it a jackrabbit 1.4 bug or a bad use? >=20 > Joseph >=20 >=20 --=20 View this message in context: http://www.nabble.com/GET-webdav-method---bad= -http-content-type-tp20188808p20209404.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.