#28662: join template filter no longer silences invalid argument errors
-------------------------------------------+-----------------------------
               Reporter:  Tim Graham       |          Owner:  Mads Jensen
                   Type:  Bug              |         Status:  assigned
              Component:  Template system  |        Version:  1.11
               Severity:  Normal           |       Keywords:
           Triage Stage:  Accepted         |      Has patch:  0
    Needs documentation:  0                |    Needs tests:  0
Patch needs improvement:  0                |  Easy pickings:  0
                  UI/UX:  0                |
-------------------------------------------+-----------------------------
 Failing test:
 {{{
 @setup({'badtemplate_join': '{% autoescape off %}{{ a|join:var }}{%
 endautoescape %}'})
 def test_join_fail_silently(self):
     obj = object()
     output = self.engine.render_to_string('badtemplate_join', {'a': obj,
 'var': ' & '})
     self.assertEqual(output, mark_safe(obj))
 }}}
 It looks like the same problem exists if autoescape is enabled.

 Regression in 0349d83289f0d88069eccfead78b71da8e158d41 and
 e64cdf7129c5ff9a0229d6c3fcde00079a70a4f9, I think.

 This was discovered in [https://github.com/django/django/pull/9149 PR
 9149] and Mads will provide the fix.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28662>
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/052.a873455f08e622f32a34b0dc1b631ac6%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to