Closed (duplicate)
Project:
Role Export
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2012 at 02:26 UTC
Updated:
31 Mar 2012 at 10:15 UTC
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
Comment #1
klausiduplicate of #1334134: 32-bit overflow in role_export_generate_id.