- TestFieldWidgetMultiple declares no field_type entry in its annotation.
This entry is added in a alter hook, that is used in a test that checks alter hooks are fired.
- However, due to #1780396: Namespaces of disabled modules are registered during test runs, there are cases where the class is found, but not the alter hook
- Therefore, we end up with a widget definition that has no 'field_types' entry.

Bumping to critical, as it seems to raise issues in a couple tested patches - though, not in HEAD, not sure why.
Patch coming up.

Comments

yched’s picture

Status: Reviewed & tested by the community » Active
StatusFileSize
new1.32 KB

Attached patch :
- Adds an empty 'field_types' entry in TestFieldWidgetMultiple's annotations
- Makes sure an empty 'field_types' entry is always added to discovered definitions (PluginManager::$defaults)

xjm’s picture

Status: Active » Needs review
berdir’s picture

Status: Needs review » Reviewed & tested by the community

Don't know why HEAD doesn't fail right now either, but this makes sense, is simple and is blocking #1806334: Replace the node listing at /node with a view, #1292470: Convert user pictures to Image Field (both major tasks) and possibly more.

RTBC if it comes back green from the bot.

yched’s picture

Status: Active » Needs work

Testbot didn't report back, but there were fails - http://qa.drupal.org/pifr/test/390698
Looking I'll look into this asap

yched’s picture

StatusFileSize
new1.33 KB

So, turns out the annotations reader cannot parse an "empty array" entry and crashes when it meets one.
Opened #1848570: Upgrade to Doctrine\Common 2.4 for that.

So, patch just has the PluginManager make sure the entry is present, which it should.
Added it on formatters too - and removed 'default_value' over there, this has nothing to do here and is a wrong copy/paste from WidgetPluginManager.

yched’s picture

Status: Needs work » Needs review
yched’s picture

Status: Needs review » Reviewed & tested by the community
dawehner’s picture

Looking forward to get this patch in, as it blocks pretty much everything related with plugin managers.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

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