Opened 6 years ago

Closed 6 years ago

#12618 closed (invalid)

MethodDecoratorAdaptor raises ValueError on entries with slugs using certain words.

Reported by: alan Owned by: nobody
Component: Uncategorized Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


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.

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')

Change History (1)

comment:1 Changed 6 years ago by lukeplant

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

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.


Note: See TracTickets for help on using tickets.
Back to Top