Global permissions issue after upgrading to 1.4.0 from 1.3.6

Issue #561 resolved
Former user created an issue

After upgrading from 1.3.6 to 1.4.0 I got repeating errors while trying to update global perms (admin->permissions). The exception trace follows

2012-09-07 19:24:24.146 ERROR [rhodecode.controllers.admin.permissions] Traceback (most recent call last): File "/var/www/rhodecode/virt-env/lib/python2.6/site-packages/RhodeCode-1.4.0-py2.6.egg/rhodecode/controllers/admin/", line 114, in update permission_model.update(form_result) File "/var/www/rhodecode/virt-env/lib/python2.6/site-packages/RhodeCode-1.4.0-py2.6.egg/rhodecode/model/", line 83, in update ' your database' % len(u2p)) Exception: Defined: 6 should be 4 permissions for default user. This should not happen please verify your database.

In user_to_perm tbl I got 6 entries defined for default user, exactly as exception msg says. This perms are: 12 (hg.register.none), 10 (hg.create.repository), 1 (repository.none), 13 (hg.register.manual_activate), 16 (hg.fork.repository), 2 (

But in backed up 1.3.6 db there are only 1, 10 and 12 perms defined for that user.

There was no errors during easy_install -U and paster upgrade-db, so there is probably some bug in upgrade script

Comments (2)

  1. Marcin Kuzminski repo owner

    This has been reported by someone, it's fixed already in latest revisions. The next release will auto-fix this. Hopefully it'll be released today.

  2. Log in to comment