[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#492054: marked as done (apache2: When ProxyErrorOverride is on Apache replaces the body/headers of a 302 response)



Your message dated Tue, 28 Jul 2009 17:57:09 +0200 (CEST)
with message-id <42026.194.224.98.149.1248796629.squirrel@www.sfritsch.de>
and subject line apache2: When ProxyErrorOverride is on Apache replaces the      body/headers of a 302 response
has caused the Debian Bug report #492054,
regarding apache2: When ProxyErrorOverride is on Apache replaces the body/headers of a 302 response
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
492054: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=492054
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apache2
Version: 2.2.3-4+etch4
Severity: normal



-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-6-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)

In short, when ProxyErrorOverride is on httpd will replace the body/headers of a 302 response -- which unnecessarily causes cookies to be dropped.
I'm using mod_proxy_http to reverse proxy a typo3 4.0 CMS. Cookies and most headers set by typo3 in a 302 response are dropped when proxyerroroverride is on. 


Transcript #1, proxyerroroverride on

telnet 10.10.2.120 80
Trying 10.10.2.120...
Connected to 10.10.2.120.
Escape character is '^]'.
POST /typo3/install/index.php HTTP/1.1
Host: www.mywebsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://www.mywebsite.com/typo3/install/index.php?TYPO3_INSTALL[type]=about
Cookie: Typo3InstallTool_key=8c2ea4463332e198a21f4772d81601ec; fe_typo_user=0bd8adbf99
Content-Type: application/x-www-form-urlencoded
Content-Length: 72

password=joh316&redirect_url=index.php%3FTYPO3_INSTALL%5Btype%5D%3Dabout
HTTP/1.1 302 Found
Date: Wed, 23 Jul 2008 14:46:31 GMT
Location: index.php?TYPO3_INSTALL[type]=about
Cache-Control: max-age=0
Expires: Wed, 23 Jul 2008 14:46:31 GMT
Content-Length: 219
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="index.php?TYPO3_INSTALL[type]=about">here</a>.</p>
</body></html>
Connection closed by foreign host.




Transcript #2, proxyerroroverride off

telnet 10.10.2.120 80
Trying 10.10.2.120...
Connected to 10.10.2.120.
Escape character is '^]'.
POST /typo3/install/index.php HTTP/1.1
Host: www.mywebsite.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Referer: http://www.mywebsite.com/typo3/install/index.php?TYPO3_INSTALL[type]=about
Cookie: Typo3InstallTool_key=8c2ea4463332e198a21f4772d81601ec; fe_typo_user=0bd8adbf99
Content-Type: application/x-www-form-urlencoded
Content-Length: 72

password=joh316&redirect_url=index.php%3FTYPO3_INSTALL%5Btype%5D%3Dabout

HTTP/1.1 302 Found
Date: Wed, 23 Jul 2008 14:43:17 GMT
Server: Apache
X-Powered-By: PHP/5.2.0-8+etch11
Expires: 0
Last-Modified: Wed, 23 Jul 2008 14:43:17 GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Location: index.php?TYPO3_INSTALL[type]=about
Content-Type: text/html
Set-Cookie: Typo3InstallTool=7e0390009d046627b4c540e3a959aa97; path=/
Vary: Accept-Encoding,User-Agent
Transfer-Encoding: chunked
Content-Language: fr

38b

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd";>
<html>
        <head>
[...]

Regards,

Alain



--- End Message ---
--- Begin Message ---
version: 2.2.6-1

This was fixed in 2.2.6 and is therefore fixed in current stable (lenny).



--- End Message ---

Reply to: