You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Bruce Schuchardt (JIRA)" <ji...@apache.org> on 2018/02/28 21:34:00 UTC

[jira] [Created] (GEODE-4754) remove com.sun.proxy from the serialization white-list

Bruce Schuchardt created GEODE-4754:
---------------------------------------

             Summary: remove com.sun.proxy from the serialization white-list
                 Key: GEODE-4754
                 URL: https://issues.apache.org/jira/browse/GEODE-4754
             Project: Geode
          Issue Type: Task
          Components: serialization
            Reporter: Bruce Schuchardt


Someone added com.sun.proxy.* to the serialization whitelist in InternalDataSerializer.  It looks like it was part of the jar deployer work that introduced RMIIO.  We should remove this from the whitelist.

I removed it and ran precheckin, and found that only one test, LuceneIndexCommandsDUnitTest.searchShouldReturnCorrectResults, failed.  That test was using as cache values instances of an inner class.  That caused the whole test instance to be serialized and put in the cache, including instances of VM.  These are RMI stubs that reference com.sun.proxy.Proxy instances.  Changing the value class to be static will make it pass without needing com.sun.proxy to be whitelisted.






--
This message was sent by Atlassian JIRA
(v7.6.3#76005)