Url patterns are case-sensitive.
|Reported by:||Owned by:||Malcolm Tredinnick|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
the following urls are treated as different:
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.
Take a look:
http://www.coastalbeat.com/news/2007/jul/30/simpsons/ 200 OK
http://www.coastalbeat.com/news/2007/jul/30/Simpsons/ BAD 404 response
objects RegexURLPattern, RegexURLResolver have the same piece of code:
self.regex = re.compile(regex, re.UNICODE)
change at least to
self.regex = re.compile(regex, re.UNICODE | re.IGNORECASE)
and the things are done.
Change History (7)
comment:1 Changed 9 years ago by
|Patch needs improvement:||unset|
|Status:||new → closed|