geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Schuchardt (JIRA)" <>
Subject [jira] [Created] (GEODE-4754) remove com.sun.proxy from the serialization white-list
Date Wed, 28 Feb 2018 21:34:00 GMT
Bruce Schuchardt created GEODE-4754:

             Summary: remove com.sun.proxy from the serialization white-list
                 Key: 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

View raw message