Code

Opened 4 years ago

Closed 4 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:

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

http://dpaste.com/145683/

Attachments (0)

Change History (1)

comment:1 Changed 4 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.

Thanks.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.