Subject: | Lite.pm bug v 3.00, 3.01 |
Date: | Tue, 2 Aug 2016 13:02:03 -0700 |
To: | <bug-CGI-Lite [...] rt.cpan.org> |
From: | "Matt R. Carroll" <matt.carroll [...] ctberk.com> |
I had to roll back to v2.03 due to an inconsistent bug in Lite.pm 'parse_form_data'.
The bug relates to file upload controls in some way, but I didn't track down the source within Lite.pm. parse_form_data would give consistently good results for many of my web applications, but for web applications with a file upload component sometimes
it would return an empty hash, or hash with no values (I forget which; basically the form data was not correct).
Here's what I noticed:
- my web applications produced perfect HTML, with 100% consistency (tested using firebug & manually inspecting HTML).
- form submission sent the correct form data to the server ... using Apache2::RequestRec methods I confirmed that each time the form was submitted, I was able to access the form data (e.g. values for inputs) and it was correct and consistent.
- sometimes, randomly (maybe 30% of the time?), given the exact same form submission, parse_form_data would not include form data, even though I found that I could still get the form data via Apache2::RequestRec
- any time the parse_form_data method failed to return a hash ref with the form data, I would
not see the warnings about $header being undefined (I believe those warnings are what you fixed in 3.01). in 3.00, anytime the form data was complete & correct, I
would see the warning about $header being undefined.
Not a lot to go on, I know; if you really need me to do some extra testing or send you html examples, I can probably find some time to do it, though my company doesn't exactly overstaff the IT department so I'm pretty busy.
-- Matt Carroll IT Director, C&T Labs (510) 990-6088
CONFIDENTIALITY NOTICE: The contents of this email message and any attachments are intended solely for the addressee(s) and may contain confidential, proprietary and/or privileged information and may be legally protected from disclosure. If you are not the intended recipient of this message or their agent, or if this message has been addressed to you in error, please immediately alert the sender by reply email and then delete this message and any attachments and the reply from your system. If you are not the intended recipient, you are hereby notified that any disclosure, use, dissemination, copying, or storage of this message or its attachments is strictly prohibited.