RE: [Simpleweb-Support] Chunked encoding changes
Brought to you by:
niallg
From: Marc N. <ma...@ke...> - 2004-05-20 19:35:40
|
That fixed it! Thanks Niall for your quick response. One quick note: the simple-2.4.2.tar.gz contains an old JAR file in the = jar directory. I rebuilt the new one in Ant but you may want to include = the 2.4.2 JAR in that directory for those who don't want to build it. Thanks again, Marc -----Original Message----- From: Niall Gallagher [mailto:ni...@em...]=20 Sent: Thursday, May 20, 2004 11:28 AM To: sim...@li... Subject: Re: [Simpleweb-Support] Chunked encoding changes Hi, I have fixed the problem with the ChunkedOutputStream. The source can be = downloaded from the following URL: http://simpleweb.sourceforge.net/download/2.4.2/ P.S If you notice that this does not work let me know, although I have = run several tests to make sure it correctly encodes content I may have = missed something. Regards, Niall ----- Original Message ----- From: "Niall Gallagher" <ni...@em...> Date: Thu, 20 May 2004 09:22:54 -0500 To: sim...@li... Subject: Re: [Simpleweb-Support] Chunked encoding changes > Hi, >=20 > Thanks for this bug report. I think the reason this is happening is = that I changed the MonitoredOutputStream to use the = MonitoredOutputStream.flushBytes() method instead of the = OutputStream.flush(). In fixing this bug I must have introduced a new = one. Ill have to run a few tests to see where the problem is, but you = can be sure that I will release an update (2.4.2) as soon as I find it. >=20 > Thanks for the feedback! > Niall >=20 > ----- Original Message ----- > From: "Marc Novakowski"=20 > Date: Mon, 17 May 2004 11:47:23 -0700 > To:=20 > Subject: [Simpleweb-Support] Chunked encoding changes >=20 >=20 > I've noticed a bit of a difference between 2.4 and 2.4.1 in the = generation of chunked-encoded responses.=A0 I have a SOAP handler that = uses Axis to generate SOAP responses, WSDL, etc. which worked fine in = 2.4.=A0 However when I upgraded to 2.4.1 I noticed that Internet = Explorer could not longer download the generated WSDL file that Axis = writes to the simpleweb Response output stream. > =A0 > Upon closer inspection of the data written to the client, it appears = that the last chunk in the response contains some extra CRLF = characters.=A0 Specifically, there are 2 extra CRLF's before the "0" = indicating last chunk. > =A0 > For example, here is what the last two chunks looked like in 2.4 = (which works fine): > =A0 > 12b > ervices" use=3D"literal"/> > =A0=A0=A0=A0=A0 </wsdl:output> > =A0=A0=A0 </wsdl:operation> > =A0 </wsdl:binding> > =A0 <wsdl:service name=3D"EnsService"> > =A0=A0=A0 <wsdl:port binding=3D"impl:ensSoapBinding" name=3D"ens"> > =A0=A0=A0=A0=A0 <wsdlsoap:address location=3D"http://transport.url"/> > =A0=A0=A0 </wsdl:port> > =A0 </wsdl:service> > </wsdl:definitions> > 0 > =A0 > =A0 > And this is what the same file looks like when using 2.4.1: > =A0 > 12b > ervices" use=3D"literal"/> > =A0=A0=A0=A0=A0 </wsdl:output> > =A0=A0=A0 </wsdl:operation> > =A0 </wsdl:binding> > =A0 <wsdl:service name=3D"EnsService"> > =A0=A0=A0 <wsdl:port binding=3D"impl:ensSoapBinding" name=3D"ens"> > =A0=A0=A0=A0=A0 <wsdlsoap:address location=3D"http://transport.url"/> > =A0=A0=A0 </wsdl:port> > =A0 </wsdl:service> > </wsdl:definitions> > =A0 > =A0 > 0 > =A0 > =A0 > In both cases the 0 has two CRLF's after it (which is correct = according to the spec) however in the 2.4.1 case it has two extra CRLF's = before the "0" (for a total of 3).=A0 I don't think this is correct, and = Internet Explorer seems to agree (it keeps "spinning" the globe, as if = it's waiting for more bytes). > =A0 > I tried going through the files in CVS to see where this might have = been broken, but it looks like everything in there is about 9 months = old, so I'm not sure where the "2.4.1" source code lives (other than in = the released tar.gz file). > =A0 > I've tried modifying ChunkedOutputStream.doClose() to remove the = "doControl()" before writing the "0", but that only removed one of the = CRLF's before the 0.=A0 I'm not quite sure where the other one is being = written. > =A0 > Any help you can provide would be appreciated! > =A0 > Thanks, > Marc Novakowski > --=20 > ___________________________________________________________ > Sign-up for Ads Free at Mail.com > http://promo.mail.com/adsfreejump.htm >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle = 10g.=20 > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick > _______________________________________________ > Simpleweb-Support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpleweb-support --=20 ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. = Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3D3149&alloc_id=3D8166&op=3Dclick _______________________________________________ Simpleweb-Support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simpleweb-support |