svn commit: r1855488 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1855488 - /ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java

jleroux@apache.org
Author: jleroux
Date: Thu Mar 14 07:42:17 2019
New Revision: 1855488

URL: http://svn.apache.org/viewvc?rev=1855488&view=rev
Log:
Improved: Improve ObjectInputStream class
(OFBIZ-10837)

The white list was still not complete as reported by Wolfgang Rauchholz on user
ML
This adds java.math.BigDecimal

It seems the warning in SafeObjectInputStream::resolveClass is not enough.
Anyway I'll not change it.

Thanks: Wolfgang Rauchholz

Modified:
    ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java

Modified: ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java
URL: http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java?rev=1855488&r1=1855487&r2=1855488&view=diff
==============================================================================
--- ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java (original)
+++ ofbiz/ofbiz-framework/trunk/framework/base/src/main/java/org/apache/ofbiz/base/util/UtilObject.java Thu Mar 14 07:42:17 2019
@@ -144,7 +144,7 @@ public final class UtilObject {
                         Thread.currentThread().getContextClassLoader(),
                         java.util.Arrays.asList("byte\\[\\]", "Number", "Long", "foo", "SerializationInjector",
                                 "java.util.HashMap", "Boolean", "Number", "Integer", "FlexibleStringExpander",
-                                "sun.util.calendar.ZoneInfo"));) {
+                                "sun.util.calendar.ZoneInfo", "java.sql.Timestamp"));) {
             return wois.readObject();
         }
     }