Re: Trouble with programatically-added servlet and @MultipartConfig [solved]

2011-01-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, When working with multipart/form-data, remember to follow all the rules: * Request's Content-Length should include all the content (I had that) * Boundary is required as part of the Content-Type (I had that, too) * Boundary separates each of the

Re: Trouble with programatically-added servlet and @MultipartConfig

2011-01-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/21/2011 5:55 AM, Mark Thomas wrote: > On 20/01/2011 23:43, Christopher Schultz wrote: >> A'ight. It may be ignoring non-file parts. I'll look into that. > > o.a.catalina.connector.Request.getParts() Yeah, I was already poking around in th

Re: Trouble with programatically-added servlet and @MultipartConfig

2011-01-21 Thread Mark Thomas
On 20/01/2011 23:43, Christopher Schultz wrote: > Mark, > > On 1/20/2011 6:27 PM, Mark Thomas wrote: >> On 20/01/2011 23:23, Christopher Schultz wrote: >>> I happen, for the sake of simplicity, to be using a non-file multipart >>> part. Could that be confusing things? > >> It may well be. The par

Re: Trouble with programatically-added servlet and @MultipartConfig

2011-01-20 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/20/2011 6:27 PM, Mark Thomas wrote: On 20/01/2011 23:23, Christopher Schultz wrote: I happen, for the sake of simplicity, to be using a non-file multipart part. Could that be confusing things? It may well be.

Re: Trouble with programatically-added servlet and @MultipartConfig

2011-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/20/2011 6:27 PM, Mark Thomas wrote: > On 20/01/2011 23:23, Christopher Schultz wrote: >> I happen, for the sake of simplicity, to be using a non-file multipart >> part. Could that be confusing things? > > It may well be. The parts are expe

Re: Trouble with programatically-added servlet and @MultipartConfig

2011-01-20 Thread Mark Thomas
On 20/01/2011 23:23, Christopher Schultz wrote: > Mark, > > On 1/20/2011 5:24 PM, Mark Thomas wrote: >> On 20/01/2011 22:10, Christopher Schultz wrote: >>> All, >>> >>> I'm working on a patch for allowing multipart parsing when a servlet >>> doesn't have the @MultipartConfig annotation but I'm hav

Re: Trouble with programatically-added servlet and @MultipartConfig

2011-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 1/20/2011 5:24 PM, Mark Thomas wrote: > On 20/01/2011 22:10, Christopher Schultz wrote: >> All, >> >> I'm working on a patch for allowing multipart parsing when a servlet >> doesn't have the @MultipartConfig annotation but I'm having trouble

Re: Trouble with programatically-added servlet and @MultipartConfig

2011-01-20 Thread Mark Thomas
On 20/01/2011 22:10, Christopher Schultz wrote: > All, > > I'm working on a patch for allowing multipart parsing when a servlet > doesn't have the @MultipartConfig annotation but I'm having trouble > testing the case where the servlet *does* have the annotation. And the winner is... > 2. Tomcat

Trouble with programatically-added servlet and @MultipartConfig

2011-01-20 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm working on a patch for allowing multipart parsing when a servlet doesn't have the @MultipartConfig annotation but I'm having trouble testing the case where the servlet *does* have the annotation. I essentially have this: @MultipartConfi