-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 7.10
-
Component/s: Automation
-
Tags:
-
Backlog priority:600
-
Sprint:nxfit 8.3.2
JsonMarshalling skips null value when writing a map. This causes the following error:
org.codehaus.jackson.JsonGenerationException: Can not write a field name, expecting a value at org.codehaus.jackson.impl.JsonGeneratorBase._reportError(JsonGeneratorBase.java:480) at org.codehaus.jackson.impl.WriterBasedGenerator.writeFieldName(WriterBasedGenerator.java:195) at org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling.writeMap(JsonMarshalling.java:333) at org.nuxeo.ecm.automation.client.jaxrs.spi.JsonMarshalling.writeRequest(JsonMarshalling.java:323) at org.nuxeo.ecm.automation.client.jaxrs.spi.DefaultSession.execute(DefaultSession.java:83) at org.nuxeo.ecm.automation.client.jaxrs.spi.DefaultOperationRequest.execute(DefaultOperationRequest.java:167)
The method JsonMarshalling#write should do something when obj is null