Bug#495550: Issues crash with CGI script issuing Location: header

2008-09-02 Thread Gunnar Wolf
tag 495550 + etch upstream confirmed
found 495550 0.5.5.dfsg-2
notfound 495550 0.7.2-4
thanks

Hi,

Thank you for your bug report - I am forwarding it to the upstream
Cherokee developers. The bug report can be followed at:

http://code.google.com/p/cherokee/issues/detail?id=110

I was able to reproduce the crash using the default configuration - By
running cherokee as a foreground process, I get:

0 [EMAIL PROTECTED]/home/gwolf/paquetes/mios/cherokee/old# cherokee
Cherokee Web Server 0.5.5: Listening on port 80, TLS disabled, IPv6 disable
 using epoll, 16384 fds limit, 10 threads, 1638 fds in each
 standard scheduling policy
server.c:1353: Cherokee feels panic!
Aborted
134  [EMAIL PROTECTED]/home/gwolf/paquetes/mios/cherokee/old#

Running the version currently in testing/unstable (0.7.2), it works
correctly - I'm tagging this bug report for Etch.

Michel: I am requesting upstream for help in fixing this bug in the
version we are shipping in Debian Stable (0.5.5). However, if you need
me to provide a backport of the current release compiled for Etch, I
will gladly do so - just ask.

-- 
Gunnar Wolf - [EMAIL PROTECTED] - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#495550: Issues crash with CGI script issuing Location: header

2008-09-01 Thread Gunnar Wolf
tag 495550 + etch upstream confirmed
found 495550 0.5.5.dfsg-2
notfound 495550 0.7.2-4
thanks

Hi,

Thank you for your bug report - I am forwarding it to the upstream
Cherokee developers. The bug report can be followed at:

http://code.google.com/p/cherokee/issues/detail?id=110

I was able to reproduce the crash using the default configuration - By
running cherokee as a foreground process, I get:

0 [EMAIL PROTECTED]/home/gwolf/paquetes/mios/cherokee/old# cherokee
Cherokee Web Server 0.5.5: Listening on port 80, TLS disabled, IPv6 disable
 using epoll, 16384 fds limit, 10 threads, 1638 fds in each
 standard scheduling policy
server.c:1353: Cherokee feels panic!
Aborted
134  [EMAIL PROTECTED]/home/gwolf/paquetes/mios/cherokee/old# 

Running the version currently in testing/unstable (0.7.2), it works
correctly - I'm tagging this bug report for Etch.

Michel: I am requesting upstream for help in fixing this bug in the
version we are shipping in Debian Stable (0.5.5). However, if you need
me to provide a backport of the current release compiled for Etch, I
will gladly do so - just ask.

-- 
Gunnar Wolf - [EMAIL PROTECTED] - (+52-55)5623-0154 / 1451-2244
PGP key 1024D/8BB527AF 2001-10-23
Fingerprint: 0C79 D2D1 2C4E 9CE4 5973  F800 D80E F35A 8BB5 27AF


pgpQYj0cYXTB9.pgp
Description: PGP signature


Bug#495550: Issues crash with CGI script issuing Location: header

2008-08-18 Thread Michel Lespinasse
Package: cherokee
Version: 0.5.5.dfsg-2

First day I use cherokee, so it's possible I did something wrong...

I have a cgi-bin script I've been working on - it generates thumbnail
galleries from some picture directory on my hard drive. Sometimes the CGI
script generates a Location: header for a client redirect response,
as per section 6.2.3 of RFC 3875.

The script is currently in /var/www/pygall/devel/gen2/pygall.py.
cherokee.conf includes this:
Request ^/pygall/.*\.cgi$ {
Handler cgi
}

I generated a request as follows:

cherokee% telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET http://localhost/pygall/devel/gen2/pygall.cgi HTTP/1.1

HTTP/1.1 200 OK
Connection: Close
Date: Mon, 18 Aug 2008 06:22:06 GMT--8
Server: Cherokee
Location: http://localhost/pygall/devel/gen2/pygall.cgi/

Connection closed by foreign host.

Cherokee's answer is wrong here - it should have used the 302 status code,
not 200. Because cherokee did not follow the RFC here, web clients do not
redirect to the desired location.

(The output of my CGI script was the Location line with two final newlines).


Trying to see if I could figure out a workaround, I modified my script so that
it adds an additional line 'Status: 302 Found' after the location header.
But now cherokee crashes when processing this request:

% telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
GET http://localhost/pygall/devel/gen2/pygall.cgi HTTP/1.1

Connection closed by foreign host.
% ps auxw|grep -i cherokee
walken   28997  0.0  0.0   2736   564 pts/4S+   06:27   0:00 grep -i 
cherokee


This seems to happen reproduceably here.

Hope this helps. I can send the full contents of my /etc/cherokee and my
pygall.py script if desired.

-- 
Michel Walken Lespinasse
A program is never fully debugged until the last user dies.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]