[Django] #12618: MethodDecoratorAdaptor raises ValueError on entries with slugs using certain words.

0 views
Skip to first unread message

Django

unread,
Jan 15, 2010, 12:27:40 PM1/15/10
to djang...@holovaty.com, django-...@googlegroups.com
#12618: MethodDecoratorAdaptor raises ValueError on entries with slugs using
certain words.
---------------------------+------------------------------------------------
Reporter: alan | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
---------------------------+------------------------------------------------
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/ ==

--
Ticket URL: <http://code.djangoproject.com/ticket/12618>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jan 15, 2010, 1:01:35 PM1/15/10
to djang...@holovaty.com, django-...@googlegroups.com
#12618: MethodDecoratorAdaptor raises ValueError on entries with slugs using
certain words.
------------------------------------+---------------------------------------
Reporter: alan | Owner: nobody
Status: closed | Milestone:
Component: Uncategorized | Version: SVN
Resolution: invalid | Keywords:
Stage: Unreviewed | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Changes (by lukeplant):

* status: new => closed
* needs_better_patch: => 0
* resolution: => invalid
* needs_tests: => 0
* needs_docs: => 0

Comment:

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.

--
Ticket URL: <http://code.djangoproject.com/ticket/12618#comment:1>
Reply all
Reply to author
Forward
0 new messages