role_export_generate_id may return an incorrect results due to overflow on a 32-bit system (e.g. MAMP 1.9). Example: mname=role-administrator, cast to int changes the return value from 3609441521 to -685525775. When that gets inserted into the rid column of the role table, it becomes 0. That causes the role not to have any checkboxes checked on the permissions page.

Workaround is to upgrade to a 64-bit system (e.g. MAMP 2.0).

This could be fixed either in code or in documentation.

Comments

klausi’s picture

Status: Active » Closed (duplicate)