>Number: 5266
>Category: mod_jserv
>Synopsis: servlets forms do not work with Mozzila M9
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: jserv
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Sun Nov 7 12:20:00 PST 1999
>Last-Modified:
>Originator: [EMAIL PROTECTED]
>Organization:
apache
>Release: 1.3
>Environment:
all
>Description:
I'm attaching a couple of changes I've made to my Jserv code (my changes
prefixed with //pb). Wondering if
they have already been made the main codebase (or if they've already been
addressed).
Also: I've got a MultipartRequest class that implements HttpServletRequest
(so it can deal with files uploaded from forms). THis is based on Jason
Hunters class with a few changes to get it to implement the
HttpServletRequest interface and fix a couple of bugs. If interested,
please contact me. I do not subscribe to this list.
Peter Bryant
In ExtendedProperties.PropertiesReader readProperty():
while (true) {
String line = readLine();
//pb
if(line==null) {
return null;
}
line = line.trim();
In JservConnection.parseParams()
//pb
String contentType = getContentType();
// Parse any posted parameters in the input stream
Hashtable postParameters = null;
if ("POST".equals(getMethod()) &&
//"application/x-www-form-urlencoded".equals(contentType)) {
//pb - to get around character encodings after content-type
// (e.g. M9 sends Content-type:
application/x-www-form-urlencoded; charset=ISO-8859-1)
contentType!=null && contentType
.startsWith("application/x-www-form-urlencoded")) {
try {
ServletInputStream is = getInputStream();
postParameters =
>How-To-Repeat:
use M9
>Fix:
see above
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <[EMAIL PROTECTED]> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]