`org.apache.dubbo.*` add serialization whitelist (#8423)
This commit is contained in:
parent
1832ff5977
commit
100655a888
|
|
@ -25,6 +25,7 @@ public class DefaultHessian2FactoryInitializer extends AbstractHessian2FactoryIn
|
|||
protected SerializerFactory createSerializerFactory() {
|
||||
Hessian2SerializerFactory hessian2SerializerFactory = new Hessian2SerializerFactory();
|
||||
hessian2SerializerFactory.getClassFactory().allow(RuntimeException.class.getName());
|
||||
hessian2SerializerFactory.getClassFactory().allow("org.apache.dubbo.*");
|
||||
return hessian2SerializerFactory;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -49,6 +49,7 @@ public class WhitelistHessian2FactoryInitializer extends AbstractHessian2Factory
|
|||
}
|
||||
}
|
||||
serializerFactory.getClassFactory().allow(RuntimeException.class.getName());
|
||||
serializerFactory.getClassFactory().allow("org.apache.dubbo.*");
|
||||
return serializerFactory;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue