You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vadim Pakhnushev (Jira)" <ji...@apache.org> on 2024/12/05 10:47:00 UTC

[jira] [Created] (IGNITE-23868) User objects serialization doesn't comply with spec

Vadim Pakhnushev created IGNITE-23868:
-----------------------------------------

             Summary: User objects serialization doesn't comply with spec
                 Key: IGNITE-23868
                 URL: https://issues.apache.org/jira/browse/IGNITE-23868
             Project: Ignite
          Issue Type: Bug
          Components: networking
            Reporter: Vadim Pakhnushev


When reading {{Serializable}} object with only the {{readObject}} Java Serialization method implemented, the {{DefaultUserObjectMarshaller.unmarshal}} doesn't properly deserialize such an object. The {{StructuredObjectMarshaller.fillStructuredObjectLayerFrom}} method checks that the local class declares a {{readObject}} method, but the remote class doesn't declare a corresponding {{writeObject}}. It calls a {{SchemaMismatchHandler.onReadObjectMissed}}. But the Java Serialization API doesn't check this parity and successfully deserializes such class.
We should relax this requirement.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)