logo       

Re: bug report: incorrect content type in DwrServlet: msg#00190

java.dwr.user

Subject: Re: bug report: incorrect content type in DwrServlet


As noted elsewhere, I noticed some places where mimetypes were being set wrongly.
They are now fixed, See the results in rc3 - which I'm hoping to get out very soon.

Joe.

On 2/23/07, Thomas Manson <dev.mansonthomas-Re5JQEeQqe8AvxtiuMwx3w@xxxxxxxxxxxxxxxx> wrote:
Hi,
 
I've add the same type of issue.
 
I've an application with 2 webapp, dwr called are tunneled from one webapp to the other in order to share the http session via a ServletFilter.
 
With DWR M2, it was working fine.
Since, M4 it was not working any more. I've went in debug mode in the DWR code and the content Type IS set to text/_javascript_ but it has no effect.
(adding a watch that get the content Type just after it was set, returns null).

So In my servlet filter I manually set the content type.
 
I've asked joe what could have change between M2 and M4 so that it breaks my code... but I didn't have an answer yet. (I guess Joe has a lot of thing to do, i'm taking no offense)
 
 
So maybe you can add a servletfilter that add the content type like I did...
 
Regards,
Manson Thomas.
On 2/20/07, Jens Nixdorf <Jens.Nixdorf@xxxxxxxxxx > wrote:

Hello!

My name is Jens Nixdorf. I am with a German IT Consulting company .

Since almost a year I am working in project to provide a briefing software

for pilots of Virgin Atlantic Airways and other customers.

The solution consists of two parts. A swing-based cockpit solution an d

an ajaxified JSF web solution which should behave similar to the cockpit

solution.

We discovered a bug related with Internet Explorer version 6 and below

which is not able to handle decompress zipped text files. Furthermore

the network environment of the ground solution inactivate the compressing

feature if the content type of the response is set to "text/_javascript_ " .

We make use of DWR 2.0 RC 2. Unfortunately there is a bug in the

DwrServlet, which does not always set the content type of generated

_javascript_ code to "text/_javascript_ ". See the server log.

 

It would be kind if you would inform us if you fix this bug.

2007-02-20 15:12:02,097 ERROR [STDERR] DWR: requested url: /web-efb-mainmenu/dwr/engine.js
2007-02-20 15:12:02,106 ERROR [STDERR] DWR: content type: text/_javascript_;charset=ISO-8859-1
2007-02-20 15:12:02,156 ERROR [STDERR] DWR: requested url: /web-efb-mainmenu/dwr/util.js
2007-02-20 15:12:02,162 ERROR [STDERR] DWR: content type: text/_javascript_;charset=ISO-8859-1
2007-02-20 15:12:02,204 ERROR [STDERR] DWR: requested url: /web-efb-mainmenu/dwr/interface/serverConnector.js
2007-02-20 15:12:02,244 ERROR [STDERR] DWR: content type:
text/plain;charset=ISO-8859-1


Kind regards

 

Jens Nixdorf
Senior IT Consultant / Software Architect

 

PRODYNA GmbH
information architects
Eschborner Landstrasse 42-50
60489 Frankfurt

 

jens.nixdorf-jlt72GXzuM2ELgA04lAiVw@xxxxxxxxxxxxxxxx
http://www.prodyna.de

 

Tel +49 (69) 78 70 34 0
Fax +49 (69) 78 70 34 11

 

USt-ID: DE 122113119

 

Sitz: Frankfurt am Main
Amtsgericht: Frankfurt am Main HRB 45777
Geschäftsführer: Hüseyin Cifci

 

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

 

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise