Groups2009 code bugfix: group iter and contains yield exception

Groups2009 debugging: infinite recursion happens when group page consists acl which contains this page's group

21:35 < ThomasWaldmann> dimazest: can you summarize the problem in short?
21:38 < dimazest> http://paste.pocoo.org/show/127482/
21:38 < dimazest> this is the case
21:38 < dimazest> we try to get group with name UserGroup
21:38 < dimazest> and acl line uses UserGroup
21:38 < dimazest> so, when formatter tries to get members, acl line is proessed
21:39 < dimazest> and acl code try to get UserGroup
21:39 < dimazest> it is where recursion happens
21:40 < dimazest> *i think so*
21:43 < ThomasWaldmann> i don't think that the formatter checks acls
21:43 < ThomasWaldmann> but rather Page maybe
21:50 < dimazest> Page.send_page() does
21:50 < dimazest> i was wrong about formatter, but anidea is similar
21:51 < ThomasWaldmann>             elif not request.user.may.read(self.page_name):
21:51 < ThomasWaldmann>                 special = 'denied'
21:51 < ThomasWaldmann> likely that is the place

MoinMoin: Groups2009/2009-07-10 (last edited 2009-07-10 19:00:29 by DmitriiMiliaev)