Closed (fixed)
Project:
Drupal core
Version:
8.2.x-dev
Component:
plugin system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Nov 2016 at 18:28 UTC
Updated:
15 Dec 2016 at 12:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
berdirComment #3
samuel.mortensonSeems like a simple change and passes tests, making as RTBC.
Comment #4
alexpottIf this is a major bug we should have test coverage of ContentDefinition serialisation.
Comment #5
berdirWhat do you propose we test exactly?
I made it major because this issue + #2831521: Avoid unserialization of blockPluginCollection in BlockDisplayVariant are preventing weird segfaults and fatal errors on PHP 7 that are extremely hard to reproduce and debug. And there are a number bug reports in the page_manager issue queue about it and in panels possibly too.
But there is no actual functional bug here that can be shown in a test.
We already have \Drupal\Tests\Core\DependencyInjection\DependencySerializationTest, we could duplicate that somehow for this class but that doesn't seem too useful.
The only other idea I'd have is serializing the object and checking the length of the string or contents in it or similar tricks.
Comment #6
alexpott@Berdir ok I'm happy to proceed here then.
Comment #7
alexpottCommitted and pushed 9e0ae4b to 8.3.x and 410c1ff to 8.2.x. Thanks!