Author: jleroux
Date: Thu Mar 14 08:28:27 2019
New Revision: 1855492
URL:
http://svn.apache.org/viewvc?rev=1855492&view=revLog:
Improved: Improve ObjectInputStream class
(OFBIZ-10837)
The white list was still not complete as reported by Wolfgang Rauchholz on user
ML
This adds java.util.Date
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=1855492&r1=1855491&r2=1855492&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 08:28:27 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", "java.sql.Timestamp"));) {
+ "sun.util.calendar.ZoneInfo", "java.sql.Timestamp", "java.util.Date"));) {
return wois.readObject();
}
}