﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
5090	Url patterns are case-sensitive.	Alex Nickolaenkov <nickolaenkov@…>	Malcolm Tredinnick	"the following urls are treated as different:[[BR]]
http://127.0.0.1:8000/now/PLUS4HOURS/[[BR]]
and [[BR]]
http://127.0.0.1:8000/now/plus4hours/[[BR]]
[[BR]][[BR]]
** urls are taken from the tutorial. To reproduce just change the case of letters. I think this is a MAJOR but because it reproduces in the production. 
[[BR]]Take a look:
[[BR]]http://www.coastalbeat.com/news/2007/jul/30/simpsons/ 200 OK
[[BR]]http://www.coastalbeat.com/news/2007/jul/30/Simpsons/ BAD 404 response
[[BR]][[BR]]
FIX:[[BR]]
objects RegexURLPattern, RegexURLResolver have the same piece of code:[[BR]]
{{{self.regex = re.compile(regex, re.UNICODE)}}}[[BR]]
change at least to  [[BR]]
{{{self.regex = re.compile(regex, re.UNICODE | re.IGNORECASE)}}}[[BR]]
and the things are done.


 


"	Uncategorized	closed	HTTP handling	dev	Normal	wontfix	url handling		Unreviewed	1	0	0	0	0	0
