You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/03/15 13:50:10 UTC

DO NOT REPLY [Bug 38980] New: - Encoding of URIs

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38980

           Summary: Encoding of URIs
           Product: Apache httpd-2
           Version: 2.0.55
          Platform: Other
        OS/Version: Windows Server 2003
            Status: NEW
          Severity: critical
          Priority: P2
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: john.fredrik.olstorn@sshf.no


Users are returned 404-errors when browsing URIs with special characters 
through an apache forward-proxy (mod_proxy). Etherreal-dump of the conversation 
shows that the URIs are encoded somewhat strange by Apache.

I.e. when a client requests the URI 
   http://hostname/Kursp%C3%A5logg.html
Apache is trying to get 
   http://hostname/Kursp\303%A5logg.html
from the source web-server.

This occurs whenever there is norwegian characters in the URI.

Here is a snippet from my config:

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so

<Virtualhost *:8080>
Documentroot "c:\apache\apache2\proxy"
ProxyRequests On
ProxyRemote * http://x.x.x.x:8080
ProxyDomain .sshf.no
ProxyVia On
	<proxy http://>
	deny from all
	</proxy>
	<proxy http://www.domain.com/>
	allow from all
	</proxy>
</virtualhost>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38980] - Encoding of URIs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38980





------- Additional Comments From rahul@sun.com  2007-08-31 07:03 -------
Unable to reproduce it in 2.3 Head
Using the same conf as described in bugreport, with
ProxyPass /http http://vayavyam.india.sun.com:8000

The ssltap trasnscipt is below.
As you can see, the URL that is passed on is not munged.


>From Browser to Apache
=========================
--> [
GET /http/Kursp%C3%A5logg.html HTTP/1.1
User-Agent: Opera/9.23 (Windows NT 5.0; U; en)
Host: vayavyam.india.sun.com:8081
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, 
image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en-US,en;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Cookie: nfSettings=11210111%7C%7Cen_US%7C%7C0%7C60%7C-1%7C%7Cweek%7C-1; 
nfTimeStamps=19700101000000%7C19700101000000%7C19700101000000; 
onestopunique=11.1.106.15.21.19; onestopfiles=/x64/sfx4100/index.shtml%26/%26/
sunone/s1ws.shtml%26/sunone/s1proxy.shtml; onestopbadge=nocookie; 
SUN_ID=129.147.158.20:437561120635865; SessionCredentials=8900939782656680756; 
s_cc=true; s_sq=
Cookie2: $Version=1
Pragma: no-cache
Cache-Control: no-cache
Connection: Keep-Alive

]

>From Apache to backend server.
=========================
--> [
GET /Kursp%C3%A5logg.html HTTP/1.1
Host: vayavyam.india.sun.com:8000
User-Agent: Opera/9.23 (Windows NT 5.0; U; en)
Accept: text/html, application/xml;q=0.9, application/xhtml+xml, image/png, 
image/jpeg, image/gif, image/x-xbitmap, */*;q=0.1
Accept-Language: en-US,en;q=0.9
Accept-Charset: iso-8859-1, utf-8, utf-16, *;q=0.1
Accept-Encoding: deflate, gzip, x-gzip, identity, *;q=0
Cookie: nfSettings=11210111%7C%7Cen_US%7C%7C0%7C60%7C-1%7C%7Cweek%7C-1; 
nfTimeStamps=19700101000000%7C19700101000000%7C19700101000000; 
onestopunique=11.1.106.15.21.19; onestopfiles=/x64/sfx4100/index.shtml%26/%26/
sunone/s1ws.shtml%26/sunone/s1proxy.shtml; onestopbadge=nocookie; 
SUN_ID=129.147.158.20:437561120635865; SessionCredentials=8900939782656680756; 
s_cc=true; s_sq=
Cookie2: $Version=1
Pragma: no-cache
Cache-Control: no-cache
Max-Forwards: 10
Via: 1.1 agneyam:8081
X-Forwarded-For: 129.158.224.78
X-Forwarded-Host: vayavyam.india.sun.com:8081
X-Forwarded-Server: agneyam
Connection: Keep-Alive

]

>From backend server to apache
=========================
<-- [
HTTP/1.1 404 Not found
Date: Fri, 31 Aug 2007 13:22:09 GMT
Server: Sun-Java-System-Web-Proxy-Server/4.0.4
Content-length: 292
Content-type: text/html
Via: 1.1 agneyam:8081
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive

]

>From Apache to browser
=========================
<-- [
HTTP/1.1 404 Not found
Server: Sun-Java-System-Web-Proxy-Server/4.0.4
Date: Fri, 31 Aug 2007 13:22:09 GMT
Content-length: 292
Content-type: text/html

<HEAD><META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=ISO-8859-
1"><TITLE>Not Found</TITLE></HEAD>
<H1>Not Found</H1> The requested object does not exist on this server. The link 
you followed is either outdated, inaccurate, or the server has been instructed 
not to let you have it.

] 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38980] - Encoding of URIs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38980


nick@webthing.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From nick@webthing.com  2007-09-08 07:24 -------
I've just tested it as forward-proxy, and the backend gets exactly
"/Kursp%C3%A5logg.html".  That's with 2.2.5.

Please repoen if you still have the problem with 2.2.6.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38980] - Encoding of URIs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38980





------- Additional Comments From john.fredrik.olstorn@sshf.no  2006-03-15 12:52 -------
Created an attachment (id=17899)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17899&action=view)
Etherreal-dump of proxy conversation


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 38980] - Encoding of URIs

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38980>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38980





------- Additional Comments From john.fredrik.olstorn@sshf.no  2006-03-15 12:57 -------
Created an attachment (id=17900)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17900&action=view)
Apache config


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org