#10185: occasionnal 404s returned and request.get_full_path() returns /full/server/path/to/django.fcgi/request instead of /request ---------------------------+------------------------------------------------ Reporter: loncletom | Owner: nobody Status: new | Milestone: Component: Uncategorized | Version: 1.0-alpha-2 Keywords: | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ hi,
i'm running a site using django 1.0.2. the site works fine but every once in a while i notice something weird in the logs.[[BR]] the request in the apache log looks fine but in my own logs which use request.get_full_path() the request is messed up with the django.fcgi path.[[BR]] a 404 is sent in response. here's two requests: the first two lines are apache logs, the last two are my own logs using get_full_path().[[BR]] the first request works fine (notice the 200 response and the short get_full_path()=="/categorie/Adultes/").[[BR]] in the next request, get_full_path() is messed up. instead of returning "/eloge-du-sein-des-femmes-1873/", i get a ".../django.fcgi/eloge-du-sein- des-femmes-1873/"[[BR]] {{{ livrairie.loncletom.fr 142.169.##.### - - [27/Jan/2009:06:28:53 +0100] "GET /categorie/Adultes/ HTTP/1.0" 200 6244 "http://livrairie.loncletom.fr /comment-faire-une-reliure-japonaise/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)" livrairie.loncletom.fr 142.169.##.### - - [27/Jan/2009:06:28:56 +0100] "GET /eloge-du-sein-des-femmes-1873/ HTTP/1.0" 404 5799 "http://livrairie.loncletom.fr/categorie/Adultes/" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648)" 01-27 06:28 INFO 142.169.##.### /categorie/Adultes/ 01-27 06:29 INFO 142.169.##.### /alwaysdata/domains/lo/loncletom.fr/livrairie.loncletom.fr/livrairie.loncletom.fr/django.fcgi /eloge-du-sein-des-femmes-1873/ }}} here's another case: {{{ livrairie.loncletom.fr 86.72.##.### - - [27/Jan/2009:18:21:53 +0100] "GET /comment-faire-une-reliure-japonaise/ HTTP/1.1" 404 1894 "http://www.onpeutlefaire.com/forum/index.php?showtopic=9443" "Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" 01-27 18:21 INFO 86.72.##.### /alwaysdata/domains/lo/loncletom.fr/livrairie.loncletom.fr/livrairie.loncletom.fr/django.fcgi /comment-faire-une-reliure-japonaise/ http://www.onpeutlefaire.com/forum/index.php?showtopic=9443 }}} i've tried setting {{{ FORCE_SCRIPT_NAME = '' }}} but it didn't help. unfortunately, it seems to happen totally randomly but a few times every day on a small website.[[BR]] i wouldn't have noticed without making my own logs using get_full_path(). -- Ticket URL: <http://code.djangoproject.com/ticket/10185> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---