[Cubicweb] 2 Tickets pending cubicweb.org fix for submission

Alexandre Fayolle alexandre.fayolle at logilab.fr
Tue Mar 9 08:53:57 CET 2010

I'm not able to submit tickets on the forge right now due to a configuration 
issue (I think). I'm sending my observation to the list, so that things are 
not forgotten. 

1. I had the infamous "une erreur est survenue" message on the extranet while 
trying to move a Ticket in a Version. This seems to be linked to the following 
stack trace in the logs:

 Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/cubicweb/cwvreg.py", line 210, in 
    view = self._select_best(views, req, rset=rset, **kwargs)
  File "/usr/lib/python2.5/site-packages/cubicweb/vregistry.py", line 196, in 
    appobjectscore = appobject.__select__(appobject, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/cubicweb/appobject.py", line 155, in 
    partscore = selector(cls, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/cubicweb/selectors.py", line 285, in 
    escore = self.score(req, rset, row, col)
  File "/usr/lib/python2.5/site-packages/cubicweb/selectors.py", line 300, in 
    return self.score_entity(rset.get_entity(row, col))
  File "/usr/lib/python2.5/site-packages/cubicweb/selectors.py", line 564, in 
    score = scorefunc(*args, **kwargs)
  File "/usr/share/cubicweb/cubes/tracker/sobjects.py", line 66, in <lambda>
    & score_entity(lambda x: x.latest_trinfo().new_state.name in 
 AttributeError: 'NoneType' object has no attribute 'new_state'

2. While looking at the extranet log I came accross the following stack trace 
which looks suspicious to me:

2010-03-08 13:58:26 - (cubicweb.repository) ERROR: unexpected error
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/cubicweb/server/repository.py", line 
603, in execute
  File "/usr/lib/python2.5/site-packages/cubicweb/server/querier.py", line 
655, in execute
  File "/usr/lib/python2.5/site-packages/cubicweb/server/ssplanner.py", line 
36, in build_plan
    for step in build_plan(plan, plan.rqlst):
  File "/usr/lib/python2.5/site-packages/cubicweb/server/msplanner.py", line 
1027, in build_select_plan
  File "/usr/lib/python2.5/site-packages/cubicweb/server/querier.py", line 
205, in preprocess
    self._insert_security(union, noinvariant)
  File "/usr/lib/python2.5/site-packages/cubicweb/server/querier.py", line 
216, in _insert_security
    localchecks, restricted = self._check_permissions(select)
  File "/usr/lib/python2.5/site-packages/cubicweb/server/querier.py", line 
318, in _check_permissions
    localcheck = check_read_access(schema, user, rqlst, solution)
  File "/usr/lib/python2.5/site-packages/cubicweb/server/querier.py", line 80, 
in check_read_access
AttributeError: 'Constant' object has no attribute 'name'

Alexandre Fayolle                              LOGILAB, Paris (France)
Formations Python, CubicWeb, Debian :  http://www.logilab.fr/formations
Développement logiciel sur mesure :      http://www.logilab.fr/services
Informatique scientifique:               http://www.logilab.fr/science

More information about the Cubicweb mailing list