I get this error when importing configurations on site install.
Screen Shot 2012-12-14 at 10.31.14 AM.png

So it seems the permission "administer panelized node article content" is problematic. I inspect its export code and also compare it to "permission.administer_panelizer" which was able to export just fine. Here they are side-by-side:

Screen Shot 2012-12-14 at 10.54.19 AM.png
Screen Shot 2012-12-14 at 10.53.59 AM.png

They are virtually identical in their properties and dependencies. I'm not sure where to begin to debug this. For now I'm commenting out the "faulty" permissions.

Screen Shot 2012-12-14 at 10.32.24 AM.png

Comments

dagmar’s picture

Assigned: Unassigned » dagmar

I think this is similar to what happen with the node permissions. The panel should be a dependency of the permission, this means, the panels must exist before try to create the permission for that panel.

Working on this.

GDrupal’s picture

Status: Active » Needs review
StatusFileSize
new1.93 KB

Related to this issue there is a problem in the order which permissions are processed. Permissions have to be imported at last since could depend on other component to create them. Let fix this and see how it goes.

GDrupal’s picture

StatusFileSize
new1.47 KB

The last patch does not change anything so lets try first to add some feedback when we try to update a non existing permission.

Status: Needs review » Needs work

The last submitted patch, 1866966.3.patch, failed testing.

dagmar’s picture

Assigned: dagmar » Unassigned
GDrupal’s picture

Status: Needs work » Needs review
StatusFileSize
new1.49 KB
GDrupal’s picture

Status: Needs review » Needs work

Last patch committed This avoid the process to abort give the user some feedback but we still need to fix the issue itself.

dagmar’s picture

Title: Error in importing permissions » Error in importing panelizer permissions
Status: Needs work » Needs review
StatusFileSize
new2.91 KB

So, I think this should fix the issue. Now all permission related to panelizer include the panelizer as a dependency.

dagmar’s picture

Status: Needs review » Fixed

Committed and Pushed to 7.x-2.x.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.