You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2003/03/19 12:14:20 UTC

DO NOT REPLY [Bug 18141] New: - Multiple parameter values are disregarded on CGI POST

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18141>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18141

Multiple parameter values are disregarded on CGI POST

           Summary: Multiple parameter values are disregarded on CGI POST
           Product: Tomcat 4
           Version: 4.1.18
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Servlets:CGI
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: leo.savernik@vai.at


The CGI Servlet implementation in 4.1.18 does not allow multiple values per
request parameter. This is only true for the post operation as the get operation
does not make use of the CGIRunner.params hashtable.

This means the following form cannot be submitted correctly if more than one
option is selected:
<form action="/cgi-bin/mycgi.pl" method="post">
<select name="bigsel" size="5" multiple="multiple">
<option>1</option>
<option>2</option>
<option>3</option>
</select>
</form>

Selecting 1 and 2 generates a bigsel=1&bigsel=2 request but only the bigsel=1
association is saved in the params hashtable.

The params hashtable should save a String[] of all values instead of a simple
String of the first value.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org