I accidentally added the feature module itself as it's own dependency. After installing the updated feature. After visiting admin/build/features I get a "Maximum function nesting level of '100' reached", since the _features_export_maximize_dependencies function will recurse indefinetly.

A feature should prevent adding itself as a dependency.

Comments

amitaibu’s picture

Status: Active » Closed (works as designed)

The reason features was added as dependency is that it implements some of the components. So if for example you have chosen CCK fields, or access permissions, then feature is indeed required.

yhahn’s picture

Assigned: Unassigned » yhahn
Status: Closed (works as designed) » Active

I think what drifter meant is that the feature module (like myblog_feature) was added as a dependency by accident to myblog_feature.

As much as I think infinite recursion is a fitting punishment for this kind of #buildfail, we can definitely protect against this : )

yhahn’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

franz’s picture

Version: 6.x-1.0-beta3 » 6.x-1.0-rc1
Priority: Normal » Critical
Status: Closed (fixed) » Active

Couldn't find this on rc1, the bug exists again. I'm kind of using a lot of stuff from contrib modules, but I don't think it should EVER be possible for a module to be added as dependency of itself, as it causes a lot of trouble

franz’s picture

I removed components on the interface, one by one, and the dependency is added when adding a content type that is already on the feature. Well, this never happened before, so I'm puzzled, but what happens is that after adding the dependency it naturally considers the component (the node type) as provided by dependency, and it is not exported anymore.

yhahn’s picture

Would you mind attaching a tarball of the feature in question? Might help debug.

yhahn’s picture

Status: Active » Needs review

Fix for this has been committed:

http://drupal.org/cvs?commit=410086
http://drupal.org/cvs?commit=410088

Would like your confirmation before closing.

franz’s picture

Status: Needs review » Active

I'm not sure if I can. Also, the feature has way too many components from all kinds and there are other buggy things on it.

For instance, one of the troubles is about using workflow. I've worked on the patches to add features support to it, but someone reverted the module on our repo, and in the meanwhile I updated the feature and so the workflow element was lost. When I got the workflow patches again, the workflow on the database had a "module" column pointing to my feature, and again when adding the element, features added the own feature as dependency and the workflow element as "provided by dependecy". And the workflow element is not even on the info file anymore...

Well, I'm still trying to track the issue, but things are pretty messy after the breaking of the repo... =(

franz’s picture

Status: Active » Needs review

Ops, cross-posting, will check this

franz’s picture

Status: Needs review » Reviewed & tested by the community

Applied by hand the changes, it worked!

Thanks!

yhahn’s picture

Status: Reviewed & tested by the community » Fixed

Great, fix will be in the next release.

Status: Fixed » Closed (fixed)

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