[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon
On Apr 18, 1:43 am, Alex Popescu wrote: > On Apr 18, 1:17 am, powera wrote: > > > > > On Apr 17, 2:58 pm, Alex Popescu > > wrote: > > > > On Apr 17, 8:32 pm, 风笑雪 wrote: > > > > > ";" is not a valid char in url, you need encode it.>>> from urllib > > > > import quote > > > > > quote("/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say;b.html") > > > > '/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say%3Bb.html' > > > > Even so, the App Engine drops it. > > > > And according to RFC3986 my understanding is that the semicolon can be > > > part of the URL (I'll not reproduce the EBNF here as it is quite > > > complex). > > > > ./alex > > >http://docs.python.org/library/urlparse.htmlsaysthat anything after > > a semicolon will be considered a "parameter" and located in > > request.params and not request.path . > > Thanks a lot for clarification. > > While I believe this is incorrect from the perspective of the URI > spec, but it is definitely not specific to GAE. > > ./alex Maybe I'm misinterpreting the URI spec, but it looks like even a comma gets encoded so instead of receiving a request to /a/ before_comma,after_comma you get a request to /a/before_comma %2Cafter_comma. I am really confused. ./alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon
On Apr 18, 1:17 am, powera wrote: > On Apr 17, 2:58 pm, Alex Popescu > wrote: > > > On Apr 17, 8:32 pm, 风笑雪 wrote: > > > > ";" is not a valid char in url, you need encode it.>>> from urllib import > > > quote > > > > quote("/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say;b.html") > > > '/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say%3Bb.html' > > > Even so, the App Engine drops it. > > > And according to RFC3986 my understanding is that the semicolon can be > > part of the URL (I'll not reproduce the EBNF here as it is quite > > complex). > > > ./alex > > http://docs.python.org/library/urlparse.htmlsays that anything after > a semicolon will be considered a "parameter" and located in > request.params and not request.path . Thanks a lot for clarification. While I believe this is incorrect from the perspective of the URI spec, but it is definitely not specific to GAE. ./alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon
On Apr 17, 2:58 pm, Alex Popescu wrote: > On Apr 17, 8:32 pm, 风笑雪 wrote: > > > ";" is not a valid char in url, you need encode it.>>> from urllib import > > quote > > > quote("/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say;b.html") > > '/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say%3Bb.html' > > Even so, the App Engine drops it. > > And according to RFC3986 my understanding is that the semicolon can be > part of the URL (I'll not reproduce the EBNF here as it is quite > complex). > > ./alex > http://docs.python.org/library/urlparse.html says that anything after a semicolon will be considered a "parameter" and located in request.params and not request.path . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon
On Apr 17, 8:32 pm, 风笑雪 wrote: > ";" is not a valid char in url, you need encode it.>>> from urllib import > quote > > quote("/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say;b.html") > '/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say%3Bb.html' > Even so, the App Engine drops it. And according to RFC3986 my understanding is that the semicolon can be part of the URL (I'll not reproduce the EBNF here as it is quite complex). ./alex > 2009/4/18 Alex Popescu > > > > > Hi, > > > It looks like the production server is dropping everything it founds > > after a ; character in an URL. > > > On production a request to: /090314/vm-memory-in-the-cloud-watch-what- > > kevin-has-to-say;b.html > > > displays for request.url, respectively request.path: > > > /090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say > > > I have opened a ticket for > >http://code.google.com/p/googleappengine/issues/detail?id=1340 > > so please help me out to get it fixed as soon as possible by voting it > > up. > > > thanks a lot, > > > ./alex --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---
[google-appengine] Re: Critical bug in URL handling: dropping everything after a semicolon
";" is not a valid char in url, you need encode it. >>> from urllib import quote >>> quote("/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say;b.html") '/090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say%3Bb.html' 2009/4/18 Alex Popescu > > Hi, > > It looks like the production server is dropping everything it founds > after a ; character in an URL. > > On production a request to: /090314/vm-memory-in-the-cloud-watch-what- > kevin-has-to-say;b.html > > displays for request.url, respectively request.path: > > /090314/vm-memory-in-the-cloud-watch-what-kevin-has-to-say > > I have opened a ticket for > http://code.google.com/p/googleappengine/issues/detail?id=1340 > so please help me out to get it fixed as soon as possible by voting it > up. > > thanks a lot, > > ./alex > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~--~~~~--~~--~--~---