request URL encoding different in Prod vs. Dev

14 views
Skip to first unread message

llad

unread,
Jul 16, 2008, 9:27:56 PM7/16/08
to Google App Engine
From what I can tell, strings pulled from the request URL are encoded
differently in dev than in production, at least on Mac OS X.

Example:
1) I use a simple regex to grab data from the request URL as part of
my main():
...
(r'/mosaic/(.*)', views.Mosaic)
...

2) My request handler grabs that data as "title":
...
def get(self, title):
...

3) "title" is encoded differently in production than in the
development environment on Mac OS X 10.5.4. E.g.,
URL = http://test.com/mosaic/foo%20bar
In dev, title = "foo%2520bar"
In prod, title = "foo bar"

-------
I have changed my code to manage, but I'd rather not have to adjust
this for dev and prod.

Anybody else having this issue?

Thanks.

Waldemar Kornewald

unread,
Jul 18, 2008, 5:14:10 AM7/18/08
to Google App Engine
On 17 Jul., 03:27, llad <mawood...@gmail.com> wrote:
> URL =http://test.com/mosaic/foo%20bar
> In dev, title = "foo%2520bar"
> In prod, title = "foo bar"

Not long ago I tested this and the behavior was the same on prod and
dev ("foo%2520bar"). It looks like the bug finally got fixed on the
production servers and my guess is that we'll soon get an SDK update
that includes the fix, so we can finally work with correct URL
handling ("foo bar").

Bye,
Waldemar Kornewald
Message has been deleted

jeremy

unread,
Aug 23, 2008, 10:58:00 AM8/23/08
to Google App Engine
could someone confirm this issue?

for example, given http://localhost:8084/blah%3Ablah:
self.request.url = "http://localhost:8084/blah%3Ablah%3A"

so the encoding of ":" is not encoded, while ":" itself is encoded.



On Aug 23, 4:47 am, jeremy <jeremy.a...@gmail.com> wrote:
> Yes! Ugh, this is over a month later than your post and it still
> hasn't been fixed?!
>
> On Jul 16, 6:27 pm, llad <mawood...@gmail.com> wrote:
>
> > From what I can tell, strings pulled from the request URL are encoded
> > differently in dev than in production, at least on Mac OS X.
>
> > Example:
> > 1) I use a simple regex to grab data from the request URL as part of
> > my main():
> > ...
> >     (r'/mosaic/(.*)', views.Mosaic)
> > ...
>
> > 2) My request handler grabs that data as "title":
> > ...
> >     def get(self, title):
> > ...
>
> > 3) "title" is encoded differently in production than in the
> > development environment on Mac OS X 10.5.4.  E.g.,
> > URL =http://test.com/mosaic/foo%20bar
Reply all
Reply to author
Forward
0 new messages