The dpkg cgi program works fine with apache or apache2 and I can't find
any place in the code where the redundant conversion is done.

I see that you are using boa as http server. After installing boa and
testing the script again I discovered that the redundant conversion
is done by the boa http server, as illustrated by the following tcp
traces on port 80 (apache2) and 8080 (boa):

# ngrep -d lo . tcp and port 80
interface: lo (127.0.0.0/255.0.0.0)
filter: (ip or ip6) and ( tcp and port 80 )
match: .
T 127.0.0.1:59353 -> 127.0.0.1:80 [AP]
  GET /cgi-bin/dwww?type=file&location=/usr/share/doc/libstdc%2B%2B6 
HTTP/1.1..Host: localhost:80..User-Agent: Mozilla/5.0 (X11; U; Linux i686; 
en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) 
Firefox/2.0.0.11..Accept: 
  
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5..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..Cache-Control: max-age=0....                   
                                                                                
                                                                 
T 127.0.0.1:80 -> 127.0.0.1:59353 [AP]
  HTTP/1.1 302 Found..Date: Tue, 22 Jan 2008 15:32:41 GMT..Server: Apache/2.2.4 
(Ubuntu)..Location: 
http://localhost:80/cgi-bin/dwww/usr/share/doc/libstdc%2b%2b6/?type=file..Content-Length:
 330..Keep-Alive: timeout=15, max=10
  0..Connection: Keep-Alive..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 hr
  
ef="http://localhost:80/cgi-bin/dwww/usr/share/doc/libstdc%2b%2b6/?type=file";>here</a>.</p>.<hr>.<address>Apache/2.2.4
 (Ubuntu) Server at localhost Port 80</address>.</body></html>.                 
                         

# ngrep -d lo . tcp and port 8080
interface: lo (127.0.0.0/255.0.0.0)
filter: (ip or ip6) and ( tcp and port 8080 )
match: .
T 127.0.0.1:47504 -> 127.0.0.1:8080 [AP]
  GET /cgi-bin/dwww?type=file&location=/usr/share/doc/libstdc%2B%2B6 
HTTP/1.1..Host: localhost:8080..User-Agent: Mozilla/5.0 (X11; U; Linux i686; 
en-US; rv:1.8.1.11) Gecko/20071204 Ubuntu/7.10 (gutsy) Firefox/2.0.0.11..Accept
  : 
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5..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-Ali
  ve: 300..Connection: keep-alive..Cache-Control: max-age=0....                 
                                                                                
                                                                 
T 127.0.0.1:8080 -> 127.0.0.1:47504 [AP]
  HTTP/1.1 302 Moved Temporarily..Date: Tue, 22 Jan 2008 15:30:15 GMT..Server: 
Boa/0.94.14rc21..Accept-Ranges: bytes..Connection: close..Content-Type: 
text/html; charset=ISO-8859-1..Location: http://d600.dizzy.lan:8080/cgi-bi
  
n/dwww/usr/share/doc/libstdc%252b%252b6/?type=file......<HTML><HEAD><TITLE>302 
Moved Temporarily</TITLE></HEAD>.<BODY>.<H1>302 Moved</H1>The document has 
moved.<A HREF="http://d600.dizzy.lan:8080/cgi-bin/dwww/usr/share/doc/
  libstdc%2b%2b6/?type=file">here</A>..</BODY></HTML>.                          
                                                                                
                                                                 

Note that in the second case (boa) the new location contains '%25'
instead of the '%'.

Since boa instead of apache is the only change I'm reassigning this bug
to the boa package.

-- 
dz



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

Reply via email to