p.a.discussion and infinite recursion after deleting a comment
"Jens W. Klein" <jens-/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.devel |
|---|---|
| Organization | Klein & Partner KG |
| Message-ID | <[email protected]> |
Background: I have here an Plone 4.3 site which we upgraded from 4.2
(which was upgraded some time ago from 4.1 and 4.0).
It happens if I delete an old comments, where there are more than one
comments at the content.
Deleting the whole content breaks similar!
Theres a strange infinite recursion problem. I nailed it down to the
indexer "total_comments" which call total_comments on Conversation.
https://github.com/plone/plone.app.discussion/blob/master/plone/app/discussion/conversation.py#L91
user_nobody.has_permission('View', x) runs in an infinite loop.
Debugging deeper I found the "x" - which is an Comment object -
aqcuisition path is kind of broken.
See the pastebin http://pastebin.com/CdSPzaZP for details.
But if I use "instance debug", go to the content item and call
absolute_url on it everythings fine:
>>> content =
app.Plone['eca-sekretariat'].termine.beratertage['millstatt-2013']['programm-eca-beratertag-millstatt-2013']
>>> content.absolute_url()
'http://nohost/Plone/eca-sekretariat/termine/beratertage/millstatt-2013/programm-eca-beratertag-millstatt-2013'
>>> content.__parent__
<ATFolder at /Plone/eca-sekretariat/termine/beratertage/millstatt-2013>
>>> content.__parent__.__parent__
<ATFolder at /Plone/eca-sekretariat/termine/beratertage>
>>> content.__parent__.__parent__.__parent__
<ATFolder at /Plone/eca-sekretariat/termine>
>>> content.__parent__.__parent__.__parent__.__parent__
<ATFolder at /Plone/eca-sekretariat>
So any idea at which point the acquisition chain was modifed in this
broken way?
Jens
--
Klein & Partner KG, member of BlueDynamics Alliance
------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and
AppDynamics. Performance Central is your source for news, insights,
analysis and resources for efficient Application Performance Management.
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk