From mboxrd@z Thu Jan 1 00:00:00 1970 Delivered-To: chneukirchen@gmail.com Received: by 10.103.181.8 with SMTP id i8cs226226mup; Fri, 15 Jan 2010 09:22:01 -0800 (PST) Received: from mr.google.com ([10.151.33.5]) by 10.151.33.5 with SMTP id l5mr353125ybj.0.1263576119967 (num_hops = 1); Fri, 15 Jan 2010 09:21:59 -0800 (PST) Received: by 10.151.33.5 with SMTP id l5mr22841ybj.0.1263576118162; Fri, 15 Jan 2010 09:21:58 -0800 (PST) X-BeenThere: rack-devel@googlegroups.com Received: by 10.91.26.32 with SMTP id d32ls645290agj.1.p; Fri, 15 Jan 2010 09:21:55 -0800 (PST) Received: by 10.91.78.13 with SMTP id f13mr3858980agl.4.1263576115664; Fri, 15 Jan 2010 09:21:55 -0800 (PST) Received: by 10.91.78.13 with SMTP id f13mr3858979agl.4.1263576115629; Fri, 15 Jan 2010 09:21:55 -0800 (PST) Return-Path: Received: from mail-gx0-f195.google.com (mail-gx0-f195.google.com [209.85.217.195]) by gmr-mx.google.com with ESMTP id 12si209643gxk.6.2010.01.15.09.21.55; Fri, 15 Jan 2010 09:21:55 -0800 (PST) Received-SPF: pass (google.com: domain of james.a.rosen@gmail.com designates 209.85.217.195 as permitted sender) client-ip=209.85.217.195; Received: by mail-gx0-f195.google.com with SMTP id 19so1623421gxk.9 for ; Fri, 15 Jan 2010 09:21:55 -0800 (PST) MIME-Version: 1.0 Received: by 10.151.32.5 with SMTP id k5mr21970ybj.15.1263576114969; Fri, 15 Jan 2010 09:21:54 -0800 (PST) Date: Fri, 15 Jan 2010 09:21:54 -0800 (PST) In-Reply-To: <2583a429-c946-4748-9bd5-aaf65673d0c3@a6g2000yqm.googlegroups.com> X-IP: 129.83.31.1 References: <201001151743.12887.ibc@aliax.net> <201001151803.28145.ibc@aliax.net> <2583a429-c946-4748-9bd5-aaf65673d0c3@a6g2000yqm.googlegroups.com> User-Agent: G2/1.0 X-HTTP-Via: 1.1 ironportb1.mitre.org:80 (IronPort-WSA/6.3.0-604) X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7,gzip(gfe),gzip(gfe) Message-ID: <72534f16-be0e-4020-b47c-68fee067f2fe@r24g2000yqd.googlegroups.com> Subject: Re: Trouble with Unicode in URLs From: Gaius To: Rack Development X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of james.a.rosen@gmail.com designates 209.85.217.195 as permitted sender) smtp.mail=james.a.rosen@gmail.com X-Original-Sender: james.a.rosen@gmail.com Reply-To: rack-devel@googlegroups.com Precedence: list Mailing-list: list rack-devel@googlegroups.com; contact rack-devel+owners@googlegroups.com List-ID: List-Post: , List-Help: , List-Archive: X-Thread-Url: http://groups.google.com/group/rack-devel/t/b1083d6710b82f9a X-Message-Url: http://groups.google.com/group/rack-devel/msg/a5a37bcbfe3ac046 Sender: rack-devel@googlegroups.com List-Unsubscribe: , List-Subscribe: , Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable One other interesting tidbit: it works great on my production Ubuntu server: PROD> apache2 -v Server version: Apache/2.2.11 (Ubuntu) Server built: Aug 18 2009 14:28:29 It's only on my Mac that it fails. Hmm. On Jan 15, 12:13=A0pm, Gaius wrote: > Well, I don't have a problem. My point is that I had to build a > middleware to solve the problem. To me, that indicates that some part > of Rack (either core or contrib) might want this unencoding so others > don't have the same problem. =A0Of course, if it's really an httpd > problem, I'd rather solve it there. > > I haven't done anything to httpd.conf other than add Passenger, as > evidenced by the following diff: > > $ diff /etc/apache2/httpd.conf{,.original} > 486d485 > < SSLSessionCache dbm:/var/log/apache2/ssl_gcache_data > 490,507d488 > < > < LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/ > passenger-2.2.4/ext/apache2/mod_passenger.so > < > < PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.2.4 > < PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/ > usr/bin/ruby > < > < > < > < # Added by the Passenger preference pane > < # Make sure to include the Passenger configuration (the LoadModule, > < # PassengerRoot, and PassengerRuby directives) before this section. > < > < =A0 NameVirtualHost *:80 > < =A0 > < =A0 =A0 ServerName _default_ > < =A0 > < =A0 Include /private/etc/apache2/passenger_pane_vhosts/*.conf > < > \ No newline at end of file > > On Jan 15, 12:03=A0pm, I=F1aki Baz Castillo wrote: > > > El Viernes, 15 de Enero de 2010, Gaius escribi=F3: > > > > I agree with your analysis of _why_ the server is getting the hex- > > > escaped version. (That's why I used CGI.unescape to fix the problem.) > > > Then what is the problem now? :) > > > > I'm also quite sure that Apache isn't unescaping before passing the > > > request on to Rack. > > > > My setup: > > > > $ apachectl -v > > > Server version: Apache/2.2.13 (Unix) > > > Server built: =A0 Sep 28 2009 16:04:37 > > > > $ gem list passenger > > > *** LOCAL GEMS *** > > > passenger (2.2.4) > > > Really interesting. Have you configured something in Apache2? > > I have passenger 2.2.4 and apache2: > > > =A0 $ apache2ctl -v > > =A0 Server version: Apache/2.2.11 (Ubuntu) > > =A0 Server built: =A0 Nov 13 2009 22:06:57 > > > In my case URL is unescaped by Apache2 =BF? > > > -- > > I=F1aki Baz Castillo > >