Closed (fixed)
Project:
Features
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
17 Aug 2017 at 16:08 UTC
Updated:
13 Mar 2018 at 01:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
kerasai commentedAttached is a patch to address the issue.
I'm not too fond of breaking out of
foreachloops, but this is probably the simplest/safest solution.It would be great to refactor this a bit into smaller, easier to digest (and test) methods but that's beyond the scope of fixing this.
Comment #3
nedjoThanks, this looks good.
We should update the tests to cover this bug. That should be relatively straightforward, starting with setting the subdirectory for items in
FeaturesManagerTest::getAssignInterPackageDependenciesConfigCollection().Comment #4
nedjoHere's a tests-only patch that should fail.
Comment #6
nedjoAnd with a fix.
#2 was testing the dependent item for
InstallStorage::CONFIG_OPTIONAL_DIRECTORY. However, it's the other side of the dependency that we need to test. We add the dependency only if the required config item is inInstallStorage::CONFIG_INSTALL_DIRECTORY.Comment #7
nedjoComment #9
nedjo