Running latest dev. Did 3 tests as follow:

  1. Exported feature containing dependency on config_perms and related role permission access. In this case, it's not even going through enabling the feature on the destination site. Gives the following errors:
    Notice: Undefined index: Administer date-time in user_role_grant_permissions() (line 3032 of /d7root/modules/user/user.module).
    
    PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'module' cannot be null: INSERT INTO {role_permission} (rid, permission, module) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => 4 [:db_insert_placeholder_1] => Administer date-time [:db_insert_placeholder_2] => ) in user_role_grant_permissions() (line 3034 of /d7root/modules/user/user.module).
  2. Exported feature containing only dependency on config_perms. In this case, no problem with enabling the feature, but visiting admin/people/custom_permissions gives the following notice:
    Notice: Undefined property: stdClass::$pid in config_perms_admin_form() (line 40 of /d7root/sites/default/modules/config_perms/config_perms.admin.inc).
    

    A sub-issue specifically for this one: #2307543: Undefined property: stdClass::$pid in config_perms_admin_form()

  3. Feature with nothing relating to config_perms, but including permissions from other modules work just fine.

This may be a duplicate of #1264392: Export permissions configuration when used with Features module but not quite sure.

Comments

dkingofpa’s picture

I'm getting this exact same issue.

dsnopek’s picture

I created an issue that addresses only point #2 from the original issue description:

#2307543: Undefined property: stdClass::$pid in config_perms_admin_form()

I haven't encountered any of the other errors, but that issue includes a patch to fix just #2.

mlncn’s picture

Status: Active » Postponed (maintainer needs more info)

Applied dsnopek's patch for described error #2.

Looks like #1 can be worked around— Features and permissions are a pain, period, in my experience. In the Just Enough Administrative Power module i had to ensure the ctools cache for config_perms was cleared before it could be enabled and use custom permissions, ctools_export_load_object_reset('config_perms'); i think did it (though i haven't deleted my five other attempts at cache clearing).

Anyhow, post if there's something Custom Permissions can do to work better with Features. Until then, postponing.