#22486: urlresolvers.reverse() security fix (1.5.6) breaks when a view is a
partial
-----------------------------+--------------------------------------
Reporter: rcoup | Owner: nobody
Type: Bug | Status: new
Component: Core (URLs) | Version: 1.5
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------------------------
Comment (by prestontimmons):
Although partials aren't reversible by the "path.to.view" syntax, I don't
think Django should blow up on them. Some parts of our code base use
partials extensively.
A simple fix might be to create `lookup_str` from the original function
whenever a pattern callback is a partial. The behavior would end up the
same as if update_wrapper were called.
A possible patch is here: https://github.com/django/django/pull/2601/
What do you think?
--
Ticket URL: <https://code.djangoproject.com/ticket/22486#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.40887972faebda8cf47fcec78f98a952%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.