#36810: SimpleLazyObject.__repr__ causes infinite recursion when setup function 
is
a bound method
-------------------------------------+-------------------------------------
     Reporter:  Sean Reed            |                    Owner:  Sean Reed
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Other)         |                  Version:  6.0
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  LazyNonce, csp,      |             Triage Stage:  Ready for
  SimpleLazyObject                   |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Natalia <124304+nessita@…>):

 In [changeset:"16107ab710dc23d5ea0aa17da6bf29fe89b61bb0" 16107ab]:
 {{{#!CommitTicketReference repository=""
 revision="16107ab710dc23d5ea0aa17da6bf29fe89b61bb0"
 [6.0.x] Refs #36810 -- Avoided infinite recursion in LazyNonce.__repr__().

 Moved nonce generation in ``django.utils.csp.LazyNonce`` to a function
 to avoid infinite recursion in ``SimpleLazyObject.__repr__`` for
 unevaluated instances.

 Co-authored-by: Natalia <[email protected]>

 Backport of 165c3599965e63f88649a46fcc2ff681c52f2f66 from main.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36810#comment:17>
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 view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019b517a89b2-c37a968e-4492-4b6f-bebc-abcd78ebb49d-000000%40eu-central-1.amazonses.com.

Reply via email to