-
Bug
-
Resolution: Fixed
-
Major
-
4.0M7
-
None
-
None
How to reproduce
- Edit a content
- Wait for an automatic save (depends on configuration parameter, default to 15 minutes)
- Then leave "savagely" the content edition
- Re-edit the content and choose to restore unsaved changes
- Save the content
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [map type; class java.util.LinkedHashMap, [simple type, class java.lang.Object] -> [simple type, class java.lang.Object]] from String value ('{}'); no single-String constructor/factory method at [Source: java.io.StringReader@48204b8f; line: 1, column: 1] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:216) at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:894) at com.fasterxml.jackson.databind.deser.ValueInstantiator._createFromStringFallbacks(ValueInstantiator.java:316) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:288) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:334) at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26) at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:3761) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2042) at org.ametys.core.util.JSONUtils.convertJsonToMap(JSONUtils.java:86) at org.ametys.cms.workflow.EditContentFunction._bindAndValidateFileMetadata(EditContentFunction.java:1477) at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadata(EditContentFunction.java:800) at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadataSetElement(EditContentFunction.java:590) at org.ametys.cms.workflow.EditContentFunction._bindAndValidateCompositeMetadata(EditContentFunction.java:933) at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadata(EditContentFunction.java:806) at org.ametys.cms.workflow.EditContentFunction._bindAndValidateMetadataSetElement(EditContentFunction.java:590)