[Bese-devel] enctype multipart/form-data hangs
Pascal Bourguignon
pjb at informatimago.com
Fri Aug 19 01:47:58 UTC 2005
Hello,
When I specify:
(<ucw:form :accept-charset "utf-8" :enctype "multipart/form-data" ...)
the server hangs in read-request:
2005-08-04T02:56.10 +WARN+ UCW-LOGGER: Attempting to publish "../wwwroot/html/" at "/app/bellerophon/" but mod_lisp backend does not support publish-directory.
2005-08-04T02:56.10 +INFO+ UCW-LOGGER: Starting up standard server #<STANDARD-SERVER MOD-LISP-BACKEND 3 #x20553DFE>.
1. Trace:
(IT.BESE.UCW::READ-REQUEST '#<MOD-LISP-BACKEND #x20553DC6>
'#<IO UNBUFFERED SOCKET-STREAM CHARACTER 0.0.0.0:3001>)
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: Reading request from #<IO UNBUFFERED SOCKET-STREAM CHARACTER 0.0.0.0:3001>
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "content-length"="689"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "content-type"="multipart/form-data; boundary=---------------------------90641591112385285421222996919"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "remote-ip-addr"="62.93.174.79"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "remote-ip-port"="49423"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "script-filename"="/local/html/local/app"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "server-ip-addr"="62.93.174.79"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "server-ip-port"="80"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "server-protocol"="HTTP/1.1"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "method"="POST"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "url"="/app/bellerophon/"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "server-id"="bellerophon"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "server-baseversion"="Apache/1.3.27"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "modlisp-version"="2.42"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Accept"="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Accept-Charset"="ISO-8859-1,utf-8;q=0.7,*;q=0.7"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Accept-Encoding"="gzip,deflate"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Accept-Language"="en-us,en;q=0.9,fr;q=0.7,es;q=0.6,pt;q=0.4,ca;q=0.3,de;q=0.1"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Connection"="keep-alive"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Content-Length"="689"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Content-Type"="multipart/form-data; boundary=---------------------------90641591112385285421222996919"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Cookie"="ucw-session-id=chsuiNZkEyjfeyOyOTZexwfMEwvrlLCJBaFpldek"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Host"="thalassa.informatimago.com"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Keep-Alive"="300"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "Referer"="http://thalassa.informatimago.com/app/bellerophon/"
2005-08-04T02:56.19 +DRIBBLE+ UCW-LOGGER: "User-Agent"="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040713"
;; hangs here.
C-c C-c
But when I remove :enctype: (<ucw:form :accept-charset "utf-8" ...)
then it works:
1. Trace:
(IT.BESE.UCW::READ-REQUEST '#<MOD-LISP-BACKEND #x205510F6>
'#<IO UNBUFFERED SOCKET-STREAM CHARACTER 0.0.0.0:3001>)
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: Reading request from #<IO UNBUFFERED SOCKET-STREAM CHARACTER 0.0.0.0:3001>
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "content-length"="78"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "content-type"="application/x-www-form-urlencoded"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "remote-ip-addr"="192.168.0.64"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "remote-ip-port"="49550"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "script-filename"="/local/html/local/app"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "server-ip-addr"="62.93.174.79"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "server-ip-port"="80"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "server-protocol"="HTTP/1.1"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "method"="POST"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "url"="/app/bellerophon/"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "server-id"="bellerophon"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "server-baseversion"="Apache/1.3.27"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "modlisp-version"="2.42"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Accept"="*/*"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Accept-Encoding"="gzip, deflate"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Accept-Language"="en"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Connection"="close"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Content-Length"="78"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Content-Type"="application/x-www-form-urlencoded"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Cookie"="ucw-session-id=wKpectxuxvEFJVNNeKKbqhNzBIceMmbVhXLwAcck"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Host"="thalassa.informatimago.com"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "Referer"="http://thalassa.informatimago.com/app/bellerophon/"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: "User-Agent"="Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1.1 (KHTML, like Gecko) Safari/312"
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: Body: s=wKpectxuxvEFJVNNeKKbqhNzBIceMmbVhXLwAcck&f=YqmRmtUMXbqakxkoYYbM&a=rVJKgVJpjM
1. Trace: IT.BESE.UCW::READ-REQUEST ==> #<IT.BESE.UCW::MOD-LISP-REQUEST #x20861F46>
2005-08-04T03:25.54 +INFO+ UCW-LOGGER: Serving action UCW::SWITCH-COMPONENT in session "wKpectxuxvEFJVNNeKKbqhNzBIceMmbVhXLwAcck".
#### #<MENU-COMPONENT #x2079F8BE>
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: Sending mod-lisp response.
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER: Sending ----
2005-08-04T03:25.54 +DRIBBLE+ UCW-LOGGER:
<div style="border: 2px solid #000000;"
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html
><head
><meta content="text/html" http-equiv="Content-Type"
/><title
>Utilisateur BELLEROPHON</title
><link href="stylesheet.css" rel="stylesheet" type="text/css"
/></head
>
I hoped to be able to use "multipart/form-data" to get better utf-8
encoding support...
--
__Pascal Bourguignon__ http://www.informatimago.com/
The world will now reboot. don't bother saving your artefacts.
More information about the bese-devel
mailing list