cubicweb-tracker #3833151 IndexError when creating version with same name as an existing one [validation pending]

Using the entity creation form, I get the following traceback:

2014-05-14 18:28:43 - (cubicweb.web) ERROR: unexpected error while validating form
Traceback (most recent call last):
  File "/home/rcardona/Projects/grshell-industree/cubicweb/web/views/basecontrollers.py", line 216, in _validate_form
    ctrl.publish(None)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/web/views/editcontroller.py", line 128, in publish
    self._default_publish()
  File "/home/rcardona/Projects/grshell-industree/cubicweb/web/views/editcontroller.py", line 191, in _default_publish
    eid = self.edit_entity(formparams)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/web/views/editcontroller.py", line 279, in edit_entity
    self.execute_linkto(entity.eid)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/web/views/basecontrollers.py", line 191, in execute_linkto
    req.execute(rql, {'x': eid, 'y': int(teid)})
  File "/home/rcardona/Projects/grshell-industree/cubicweb/web/request.py", line 1041, in execute
    rset = self.cnx.execute(*args, **kwargs)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/repoapi.py", line 129, in check_open
    return func(clt_cnx, *args, **kwargs)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/repoapi.py", line 213, in execute
    rset = self._cnx.execute(*args, **kwargs)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/server/session.py", line 372, in wrapper
    return func(cnx, *args, **kwargs)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/server/session.py", line 382, in check_open
    return func(cnx, *args, **kwargs)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/server/session.py", line 1018, in execute
    rset = self._execute(self, rql, kwargs, build_descr)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/server/querier.py", line 593, in execute
    results = plan.execute()
  File "/home/rcardona/Projects/grshell-industree/cubicweb/server/querier.py", line 177, in execute
    result = step.execute()
  File "/home/rcardona/Projects/grshell-industree/cubicweb/server/ssplanner.py", line 532, in execute
    repo.glob_update_entity(cnx, edited)
  File "/home/rcardona/Projects/grshell-industree/cubicweb/server/repository.py", line 1283, in glob_update_entity
    userhdlr.raise_user_exception()
  File "/home/rcardona/Projects/grshell-industree/cubes/tracker/entities/version.py", line 186, in raise_user_exception
    {'num': self.entity.num, 'project': self.entity.project.name})
  File "/home/rcardona/Projects/grshell-industree/cubes/tracker/entities/version.py", line 93, in project
    return self.version_of[0]
IndexError: tuple index out of range
prioritynormal
typebug
done in1.16.0
load0.500
load left0.000
closed by#15f1af0be4f0 [entities] Fix friendly unique together error to work with the edit controller (closes #3833151)
patch[entities] Fix friendly unique together error to work with the edit controller (closes #3833151) [applied]