IObjectSerializerFactory stores all serializers as singleton

Found in

EPiServer.CMS.Core 8.11.0

Fixed in

EPiServer.CMS.Core 11.1.0


Oct 26, 2017


Nov 21, 2017


CMS Core


Closed, Fixed and tested


IObjectSerializerFactory that creates serializers for IObjectSerializer registered in container caches those instances in a singleton instance instead using each serializers lifecycle.

After fixing IObjectSerializerFactory, this scenario should work:

Steps to reproduce
1. Go to Admin mode > Select any page type (e.g., Standard page).
2. Add a property to the page type.
3. Edit the property: 'Value must be entered' is checked, 'Tab': "Content" > Save data
(NOTE: You must do step 3 to reproduce bug. You cannot reproduce the bug if not editing a value.)
4. Go to Edit View.
5. Create a new page with the page type.

Expected: The page is created successfully.
Actual: Cannot create a page. It is hung when clicking the 'Create' button.