You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by im...@apache.org on 2019/08/24 14:34:37 UTC

[oodt] branch development updated: implement transient on transceiver and proxy objects to prevent serialization attempts

This is an automated email from the ASF dual-hosted git repository.

imesha pushed a commit to branch development
in repository https://gitbox.apache.org/repos/asf/oodt.git


The following commit(s) were added to refs/heads/development by this push:
     new f5668cd  implement transient on transceiver and proxy objects to prevent serialization attempts
     new cee9352  Merge pull request #110 from yasithmilinda/OODT-1024
f5668cd is described below

commit f5668cd0901321942e1112474575f4a87a8c6666
Author: yasith <ya...@cs.odu.edu>
AuthorDate: Wed Aug 21 06:53:12 2019 -0400

    implement transient on transceiver and proxy objects to prevent serialization attempts
---
 .../sso/src/main/java/org/apache/oodt/security/sso/OpenSSOImpl.java   | 2 +-
 .../org/apache/oodt/cas/filemgr/system/AvroFileManagerClient.java     | 4 ++--
 .../org/apache/oodt/cas/filemgr/system/XmlRpcFileManagerClient.java   | 2 +-
 .../org/apache/oodt/cas/resource/batchmgr/AvroRpcBatchMgrProxy.java   | 4 ++--
 .../apache/oodt/cas/resource/system/AvroRpcResourceManagerClient.java | 4 ++--
 .../apache/oodt/cas/workflow/system/AvroRpcWorkflowManagerClient.java | 4 ++--
 6 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/curator/sso/src/main/java/org/apache/oodt/security/sso/OpenSSOImpl.java b/curator/sso/src/main/java/org/apache/oodt/security/sso/OpenSSOImpl.java
index f170efc..6c1c50d 100755
--- a/curator/sso/src/main/java/org/apache/oodt/security/sso/OpenSSOImpl.java
+++ b/curator/sso/src/main/java/org/apache/oodt/security/sso/OpenSSOImpl.java
@@ -44,7 +44,7 @@ public class OpenSSOImpl extends AbstractWebBasedSingleSignOn implements
   private static final Logger LOG = Logger.getLogger(OpenSSOImpl.class
       .getName());
 
-  private SSOProxy ssoProxy;
+  private transient SSOProxy ssoProxy;
 
   /**
    * Default constructor.
diff --git a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/AvroFileManagerClient.java b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/AvroFileManagerClient.java
index 2057ce1..2f656c4 100644
--- a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/AvroFileManagerClient.java
+++ b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/AvroFileManagerClient.java
@@ -68,10 +68,10 @@ public class AvroFileManagerClient implements FileManagerClient {
     private static final Logger logger = LoggerFactory.getLogger(AvroFileManagerClient.class);
 
     /** Avro-Rpc client */
-    private Transceiver client;
+    private transient Transceiver client;
 
     /** proxy for the server */
-    private AvroFileManager proxy;
+    private transient AvroFileManager proxy;
 
     /* URL where the fileManager is */
     private URL fileManagerUrl;
diff --git a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManagerClient.java b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManagerClient.java
index 06c2726..bfe9513 100644
--- a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManagerClient.java
+++ b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManagerClient.java
@@ -77,7 +77,7 @@ import java.util.logging.Logger;
 public class XmlRpcFileManagerClient implements FileManagerClient {
 
   /* our xml rpc client */
-  private XmlRpcClient client = null;
+  private transient XmlRpcClient client = null;
 
   /* our log stream */
   private static Logger LOG = Logger.getLogger(XmlRpcFileManagerClient.class
diff --git a/resource/src/main/java/org/apache/oodt/cas/resource/batchmgr/AvroRpcBatchMgrProxy.java b/resource/src/main/java/org/apache/oodt/cas/resource/batchmgr/AvroRpcBatchMgrProxy.java
index 704eec6..91d60fc 100644
--- a/resource/src/main/java/org/apache/oodt/cas/resource/batchmgr/AvroRpcBatchMgrProxy.java
+++ b/resource/src/main/java/org/apache/oodt/cas/resource/batchmgr/AvroRpcBatchMgrProxy.java
@@ -41,9 +41,9 @@ public class AvroRpcBatchMgrProxy extends Thread implements Runnable {
 
     private ResourceNode remoteHost;
 
-    private Transceiver client;
+    private transient Transceiver client;
 
-    private AvroRpcBatchStub proxy;
+    private transient AvroRpcBatchStub proxy;
 
     private AvroRpcBatchMgr parent;
 
diff --git a/resource/src/main/java/org/apache/oodt/cas/resource/system/AvroRpcResourceManagerClient.java b/resource/src/main/java/org/apache/oodt/cas/resource/system/AvroRpcResourceManagerClient.java
index dc6e3a6..ac89a86 100644
--- a/resource/src/main/java/org/apache/oodt/cas/resource/system/AvroRpcResourceManagerClient.java
+++ b/resource/src/main/java/org/apache/oodt/cas/resource/system/AvroRpcResourceManagerClient.java
@@ -51,8 +51,8 @@ public class AvroRpcResourceManagerClient implements ResourceManagerClient {
     /* resource manager url */
     private URL resMgrUrl = null;
 
-    Transceiver client;
-    ResourceManager proxy;
+    transient Transceiver client;
+    transient ResourceManager proxy;
 
     public AvroRpcResourceManagerClient(URL url) {
         // set up the configuration, if there is any
diff --git a/workflow/src/main/java/org/apache/oodt/cas/workflow/system/AvroRpcWorkflowManagerClient.java b/workflow/src/main/java/org/apache/oodt/cas/workflow/system/AvroRpcWorkflowManagerClient.java
index ac765f4..58fa24e 100644
--- a/workflow/src/main/java/org/apache/oodt/cas/workflow/system/AvroRpcWorkflowManagerClient.java
+++ b/workflow/src/main/java/org/apache/oodt/cas/workflow/system/AvroRpcWorkflowManagerClient.java
@@ -47,8 +47,8 @@ public class AvroRpcWorkflowManagerClient implements WorkflowManagerClient {
 
     private static final org.slf4j.Logger logger = LoggerFactory.getLogger(AvroRpcWorkflowManagerClient.class);
 
-    private Transceiver client;
-    private org.apache.oodt.cas.workflow.struct.avrotypes.WorkflowManager proxy;
+    private transient Transceiver client;
+    private transient org.apache.oodt.cas.workflow.struct.avrotypes.WorkflowManager proxy;
     private URL workflowManagerUrl;
 
     public AvroRpcWorkflowManagerClient(URL url){