-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 3/27/20 14:46, Christopher Schultz wrote:
> Mark,
>
> On 3/27/20 13:35, Mark Thomas wrote:
>> On 27/03/2020 15:52, Christopher Schultz wrote:
>>> On 3/26/20 18:44, Konstantin Kolinko wrote:
>
>> <snip/>
>
>>>> I think that those are available via the standard
>>>> request.getParameter(name) API.
>>>
>>> That doesn't work. Mixing request.getParameter() and
>>> request.getParts results in request.getParameter* returning
>>> nulls.
>
>> Then something isn't quite right as that should work. And there
>> are unit tests that cover at least some combinations:
>
>> TestRequest.testBug54984
>
> Now that everything is working, I'll see what I can do to
> reproduce what I was seeing earlier.
>
> Eyeballing that test makes me think that maybe the problem is that
> if you call request.getParts() first, you can't then go back and
> call getParameter("foo").

Nope. I seem to be able to use request.getParameter at any time.

I'll bet I know what it was: I wrote 90% of this code *before*
enabling multipart-processing on this servlet and so nothing was
working at all at first, even when not sending the file.

So it's nice that I don't have to write the code to fetch small String
values from "small" multipart parts. But I wrote it anyway :) so I get
to rip it all out, now, which is fine.

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5+T/MACgkQHPApP6U8
pFi7BA/8DMmtvVnVlBeI9F9er9DEHDgEp7F6jb8eT/lQ1AKG0bZ0dj+BLpY3YLW9
9JExMlt86khWMwcfKgT+VPhlpDRRUvIBBXpcp9AZaB1KvDC97DOUpmxnslUdAo1O
AgHGbkkyiqoeuTKBf66JCGx4P4sdsyNMnXijlAgJDJ99NvcEwq4Ol1RF0UzXQso6
0oE2NY5ul4z+Xtrp8iP2eUPuJgZmzrF78I6/KJ+EOnQ/pYCtoAK+0E/EVmXAsNGw
4ZkUg3RynnJus3RA8GBFl53ol0U5WQQnRfD2kTXhXEqf7Q35eD5b94QeRFBOGH+O
6qlNnr+xzleyEg5eGLX26X5gDBf84FvROjKf602YT5TLicDHR7ZNIlr90zPeXIWC
5jkrgAybVDcil0n8QgD3LojMuh1HueaqHqVE43aXhjTOi/7YoEIzqMr66e/8f1id
gOYXsSTnVl+xEUi/C3tDWPboFNJIRpuOAv61PkKQlw1sgC7S6VCGKt/tfhLr24dh
fpygHMiMe5IOIIY2epvh0SU8wWZhwT2Ne+bRmCw9OGMjA+5wiJDGhFWyeKmawtWI
ZCmweTVdkH4ko0oMRb8UyNDCClPvPRSLlkVtN8NcA4z8U0cfnrRopVvXdnEbZLJW
tBhizazhrbU6sDirCDLe+1FHnEf5XOWOTK02cUqLiUL1D+Lr0SI=
=DPX7
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to