Allow hudson.remoting.* callables that are used to implement lower-level functionalities

... like pipes.

IOSyncer, PingThread.Ping, RPCRequest, SetMaximumBytecodeLevel look all harmless.

PreloadJarTask is dubious, but with classloading from slave disabled, it becomes harmless.
This commit is contained in:
Kohsuke Kawaguchi committed 2014-09-18 15:14:55 -07:00
1 parent 101b4e7fd5
commit 42b36e460d
2 files changed
+4

No files matched your search

@@ -29,6 +29,9 @@ public class CallableDirectionChecker extends CallableDecorator {
public <V, T extends Throwable> Callable<V, T> userRequest(Callable<V, T> op, Callable<V, T> stem) {
Class c = op.getClass();
if (c.getName().startsWith("hudson.remoting"))
return stem; // lower level services provided by remoting, such IOSyncer, RPCRequest, Ping, etc. that we allow
boolean m2s = c.isAnnotationPresent(MasterToSlave.class);
boolean s2m = c.isAnnotationPresent(SlaveToMaster.class);
@@ -15,6 +15,7 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
*
* @author Kohsuke Kawaguchi
* @see SlaveToMaster
* @see CallableDirectionChecker
* @since 1.THU
*/
@Retention(RUNTIME)