Opened 15 years ago
Closed 15 years ago
#12618 closed (invalid)
MethodDecoratorAdaptor raises ValueError on entries with slugs using certain words.
Reported by: | alan | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Having created a django web app mostly as a learning project, I've found that users can't use slugs that start with the words 'test' or 'echo.' I imagine there are others. For the moment, I've hacked around this by appending a '1' to slugs that match certain regular expressions, which is obviously silly.
http://www.foobook.org/neoxic/scraps/test1/
The above would fail with a traceback like the following if the '1' were removed from the end of the slug. This happens both in dev and production with apache2 and mod_python. I'm able to pull up the slug at the shell with a query like
Scrap.objects.get(url_title='test', user__username='neoxic')
You need to provide a lot more information about your view code for us to have a chance to understand this. It seems extremely unlikely that this is a genuine bug in Django code, since there is no special-casing in our URL handling code that might trigger something like "test" or "echo", so I'm closing INVALID. If you can provide a minimal test case that demonstrates a bug in Django code, please re-open. If you need help debugging the problem with your web app, please use the django-users Google group, or IRC.
Thanks.