/[Apache-SVN]
ViewVC logotype

Revision 1222242


Jump to revision: Previous Next
Author: jleroux
Date: Thu Dec 22 14:16:07 2011 UTC (12 years, 3 months ago)
Changed paths: 1
Log Message:
A modified patch from Patrick Antivackis "Null values are not synchronized in http mode" https://issues.apache.org/jira/browse/OFBIZ-4602

In order to send over http the values to create, store and remove, Ofbiz is Xml serializing the values. GenericValue xml serialization is managed in GenericEntity.makeXmlElement, unfortunately this method just don't serialized null valued fields.
To solve this issue, I managed null value the same way GenericEntity.setString (which is used for the Xml deserializing). I only managed until case 10, because i'm not sure the setString for the cases 11 to 15 are well managed (not taking care of null value) 

jleroux: After looking at GenericEntity.setString and initial commit (http://svn.ofbiz.org/viewcvs?rev=7779&view=rev) I see no reasons to not handling cases under 10 the same way. So I added these cases as well using fall through.

Changed paths

Path Details
Directoryofbiz/branches/release09.04/framework/entity/src/org/ofbiz/entity/GenericEntity.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26