# HG changeset patch # User Adrien Di Mascio # Date 1507283152 -7200 # Node ID 2fc04786dd369f9375d00562fea9da8141b4cd38 # Parent a97cdb531a7586a4047ac3b1ac88c85e67ca3b61 [web] fix session /cnx mix in anonymized_request diff -r a97cdb531a75 -r 2fc04786dd36 cubicweb/web/application.py --- a/cubicweb/web/application.py Fri Oct 06 16:59:10 2017 +0200 +++ b/cubicweb/web/application.py Fri Oct 06 11:45:52 2017 +0200 @@ -79,11 +79,11 @@ from cubicweb.web.views.authentication import Session orig_cnx = req.cnx - anon_cnx = anonymous_cnx(orig_cnx.session.repo) + anon_cnx = anonymous_cnx(orig_cnx.repo) try: with anon_cnx: # web request expect a session attribute on cnx referencing the web session - anon_cnx.session = Session(orig_cnx.session.repo, anon_cnx.user) + anon_cnx.session = Session(orig_cnx.repo, anon_cnx.user) req.set_cnx(anon_cnx) yield req finally: