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
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
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
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
]
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
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
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
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
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
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
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
: 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
-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
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
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 ==
15 matches
Mail list logo