Re: Tomcat strips CRLFs from the generated page

2014-01-15 Thread Asok Chattopadhyay
On Wed, Jan 15, 2014 at 4:15 PM, André Warnier wrote: > >> On Wed, Jan 15, 2014 at 7:34 AM, André Warnier wrote: >> >> Asok Chattopadhyay wrote: >>> >>> It looks like, the problem may be caused due to some scripts being >>>> inse

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread Asok Chattopadhyay
me. Regards On Wed, Jan 15, 2014 at 7:34 AM, André Warnier wrote: > Asok Chattopadhyay wrote: > >> It looks like, the problem may be caused due to some scripts being >> inserted >> into the page by an external domain. I am investigating farther on that >> line.

Re: Tomcat strips CRLFs from the generated page

2014-01-14 Thread Asok Chattopadhyay
GP SIGNED MESSAGE- > Hash: SHA256 > > André, > > On 1/13/14, 9:36 AM, André Warnier wrote: > > Asok Chattopadhyay wrote: > >> Hi, > >> > >> My servlet generates a page containing embedded JavaScript and > >> sometimes the page received in the

Re: Tomcat strips CRLFs from the generated page

2014-01-13 Thread Asok Chattopadhyay
: who is stripping the CRLF from the text? Is it Tomcat or the browser? Is Tomcat doing any validation of the text before sending it out to the client? Thanks and regards. On Tue, Jan 14, 2014 at 5:16 AM, Mark Eggers wrote: > On 1/13/2014 9:40 AM, Asok Chattopadhyay wrote: > >> Hi, &g

Re: Tomcat strips CRLFs from the generated page

2014-01-13 Thread Asok Chattopadhyay
Andre: I changed the out.println(s) to out.print(s), but that did not make any difference. Regards. On Tue, Jan 14, 2014 at 1:40 AM, Asok Chattopadhyay wrote: > Hi, > Sorry about that. > Here are the locations of the two files: > > (1) http://workshop.dreamapps.com/da/docs/Test.

Re: Tomcat strips CRLFs from the generated page

2014-01-13 Thread Asok Chattopadhyay
Hi, Sorry about that. Here are the locations of the two files: (1) http://workshop.dreamapps.com/da/docs/Test.java (2) http://workshop.dreamapps.com/da/docs/test.html Thanks. On Tue, Jan 14, 2014 at 12:39 AM, Konstantin Preißer wrote: > Hi, > > > -Original Message- &g

Re: Tomcat strips CRLFs from the generated page

2014-01-13 Thread Asok Chattopadhyay
You can see the test servlet working at http://workshop.dreamapps.com/da/test Thanks again On Mon, Jan 13, 2014 at 11:36 PM, Asok Chattopadhyay wrote: > I am attaching the Test servlet and the text file that contains the page. > The Test servlet simply reads the file and sends out

Re: Tomcat strips CRLFs from the generated page

2014-01-13 Thread Asok Chattopadhyay
I am attaching the Test servlet and the text file that contains the page. The Test servlet simply reads the file and sends out to the browser. When I run this servlet, it strips all CRLFs from line 153 onward. Thanks. On Mon, Jan 13, 2014 at 9:57 PM, Asok Chattopadhyay wrote: > No, I do

Re: Tomcat strips CRLFs from the generated page

2014-01-13 Thread Asok Chattopadhyay
It is quite possible for a servlet Filter to modify > what you're writing to the output stream. Does your application have any > filters in place? > > Also, can you provide a demo servlet that replicates this behavior? > > Thanks > > Dan > >> >&g

Re: Tomcat strips CRLFs from the generated page

2014-01-13 Thread Asok Chattopadhyay
And the log shows no change. Obviously it looks like whatever is happening is happening in out.println. Sent from my iPhone On 13 Jan, 2014, at 8:48 PM, Daniel Mikusa wrote: > On Jan 13, 2014, at 6:09 AM, Asok Chattopadhyay wrote: > >> Hi, >> >> My servlet generat

Tomcat strips CRLFs from the generated page

2014-01-13 Thread Asok Chattopadhyay
Hi, My servlet generates a page containing embedded JavaScript and sometimes the page received in the browser comes with CRLFs stripped from the text, starting at some point in the text. This creates a big problem if the script contains CRLF as statement separator instead of semi-colon. It's stran