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=25527>.
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=25527

process lynx linemode browser's multipart form post too!

           Summary: process lynx linemode browser's multipart form post too!
           Product: Struts
           Version: 1.1 Final
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Standard Actions
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Regular form posts with Lynx Version 2.8.5dev.7 (06 Jan 2002) work fine (both
from Redhat 9 as well as win2k cygwin).

However, when doing an <<enctype="multipart/form-data">>, all form fields are
reported to be empty in struts.
>From a quick tcpflow sniffing comparison of the same form post by Mozilla and
lynx, it appears that one main difference is that the lynx doesn't quote the
field names?

Next excerpts from the sniffing session.
Mozilla:
<<POST /smtpsExim/smtpsProcess.do HTTP/1.1
Host: localhost:2712
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031
129
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Content-Type: multipart/form-data; boundary=---------------------------276443266
232757
Content-Length: 1505

-----------------------------276443266232757
Content-Disposition: form-data; name="login"

[EMAIL PROTECTED]
-----------------------------276443266232757
Content-Disposition: form-data; name="to"

[EMAIL PROTECTED]
-----------------------------276443266232757
Content-Disposition: form-data; name="subject"

testsubjMozilla
-----------------------------276443266232757
Content-Disposition: form-data; name="body"

bodyMozilla
-----------------------------276443266232757
Content-Disposition: form-data; name="file"; filename="killTomcat.sh"
Content-Type: application/x-sh

#!/bin/sh
list=`ps -ef | grep tomcat | grep catalina | grep -v grep | awk '{ print $2}'`
echo killing $list
for i in $list
do
...>>

and lynx:
<<POST /smtpsExim/smtpsProcess.do HTTP/1.0
Host: localhost:2712
Accept: text/html, text/plain, audio/mod, image/*, application/msword, applicati
on/pdf, application/postscript, application/x-java-jnlp-file, text/sgml, video/m
peg, */*;q=0.01
Accept-Encoding: gzip, compress
Accept-Language: en
Pragma: no-cache
Cache-Control: no-cache
User-Agent: Lynx/2.8.5dev.7 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.7
Content-type: multipart/form-data; boundary=xnyLAaB03X
Content-length: 1347

--xnyLAaB03X
Content-Disposition: form-data; name=login
Content-Type: text/plain

[EMAIL PROTECTED]
--xnyLAaB03X
Content-Disposition: form-data; name=to
Content-Type: text/plain

[EMAIL PROTECTED]
--xnyLAaB03X
Content-Disposition: form-data; name=subject
Content-Type: text/plain

testSubjLynx
--xnyLAaB03X
Content-Disposition: form-data; name=body
Content-Type: text/plain

lynxBody
--xnyLAaB03X
Content-Disposition: form-data; name=file; filename="killTomcat.sh"
Content-Type: text/plain
...>>

once that's solved, it will be interesting whether Bug 21954 is already gone
with the commons-fileupload or whether I really have to wait until struts1.2

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to