Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-05 Thread Dirk Griesbach
Rémy, how would you have done it ? Maybe there can be applied a fix to it. grisi - Original Message - From: Remy Maucherat [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 6:37 PM Subject: Re: TC 4 -oreillyMultipart- TC5: Corrupt form data

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-05 Thread Remy Maucherat
Dirk Griesbach wrote: Rémy, how would you have done it ? Maybe there can be applied a fix to it. You could add a sys.out in their readLine() method to see what is actually being read :) -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-05 Thread Dirk Griesbach
Hello Rémy, Dirk Griesbach wrote: Rémy, how would you have done it ? Maybe there can be applied a fix to it. You could add a sys.out in their readLine() method to see what is actually being read :) you hit my thoughts thinking on debugging (:-)), but we now know that this causes

RE: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-05 Thread Shapira, Yoav
Message- From: Dirk Griesbach [mailto:[EMAIL PROTECTED] Sent: Friday, December 05, 2003 5:57 AM To: Tomcat Users List Subject: Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending Hello Rémy, Dirk Griesbach wrote: Rémy, how would you have done it ? Maybe there can be applied

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-05 Thread Dirk Griesbach
] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, December 05, 2003 3:11 PM Subject: RE: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending Howdy, If I were you, Senor Griesbach, I would dump COS in favor of jakarta commons fileupload instead of spending significant time debugging

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-05 Thread Remy Maucherat
Shapira, Yoav wrote: Howdy, If I were you, Senor Griesbach, I would dump COS in favor of jakarta commons fileupload instead of spending significant time debugging intricate input stream problems... But that's just me, and I'm not a patient debugger ;) What cos is doing is bad IMO (it should read

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Dirk Griesbach
Another issue came up comparing TC4 and TC5: using the oreilly multipart lib on TC5 causes the error ...Corrupt form data: premature ending on POST uploads. As stated in the FAQ's at http://www.servlets.com/cos/faq.html this problem is merely due to the webcontainer and has been fixed with

RE: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Shapira, Yoav
Howdy, Another issue came up comparing TC4 and TC5: using the oreilly multipart lib on TC5 causes the error ...Corrupt form data: premature ending on POST uploads. As stated in the FAQ's at http://www.servlets.com/cos/faq.html this problem is merely due to the webcontainer and has been fixed

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Remy Maucherat
Shapira, Yoav wrote: Howdy, Another issue came up comparing TC4 and TC5: using the oreilly multipart lib on TC5 causes the error ...Corrupt form data: premature ending on POST uploads. As stated in the FAQ's at http://www.servlets.com/cos/faq.html this problem is merely due to the webcontainer

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Dirk Griesbach
to achieve best performance ? grisi - Original Message - From: Remy Maucherat [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 04, 2003 3:23 PM Subject: Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending Shapira, Yoav wrote: Howdy

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Remy Maucherat
Dirk Griesbach wrote: Rémy, I had a look into the sources. There it reads: class MultipartParser: do { String line = readLine(); if (line == null) { throw new IOException(Corrupt form data: premature ending); } (:-) By which method should

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Dirk Griesbach
: Thursday, December 04, 2003 3:49 PM Subject: Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending Dirk Griesbach wrote: Rémy, I had a look into the sources. There it reads: class MultipartParser: do { String line = readLine(); if (line == null

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Dirk Griesbach
-oreillyMultipart- TC5: Corrupt form data: premature ending Dirk Griesbach wrote: Rémy, this copy is of type javax.servlet.ServletInputStream.readLine() acquired by HttpServletRequest.getInputStream(); Would you agree that this is a good idea ? Are you sure ? There's

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Remy Maucherat
Dirk Griesbach wrote: Rémy, this copy is of type javax.servlet.ServletInputStream.readLine() acquired by HttpServletRequest.getInputStream(); Would you agree that this is a good idea ? Are you sure ? There's a ServletIS.readLine(byte[] b, int off, int len) method, but no readLine

Re: TC 4 -oreillyMultipart- TC5: Corrupt form data: premature ending

2003-12-04 Thread Remy Maucherat
Dirk Griesbach wrote: Rémy, I'm quite sure. With a summary of oreilly´s sources I see: class MultipartParser { ... private ServletInputStream in; private byte[] buf = new byte[8 * 1024]; ... ServletInputStream in = req.getInputStream(); ... do { String line = readLine(); if (line ==