diff --git a/core/src/main/java/hudson/cli/CliManagerImpl.java b/core/src/main/java/hudson/cli/CliManagerImpl.java index 7ff5247e854c4ae9a2cbfdb64298b6b0af7cdf65..577cf3ce132fe373b6f95e80c95ff2415e75e366 100644 --- a/core/src/main/java/hudson/cli/CliManagerImpl.java +++ b/core/src/main/java/hudson/cli/CliManagerImpl.java @@ -50,10 +50,11 @@ public class CliManagerImpl implements CliEntryPoint, Serializable { private Authentication transportAuth; + //TODO: Migrate the code to Callable decorator /** * Runs callable from this CLI client with the transport authentication credential. */ - private final CallableFilter authenticationFilter = new CallableFilter() { + private transient final CallableFilter authenticationFilter = new CallableFilter() { public V call(Callable callable) throws Exception { SecurityContext context = SecurityContextHolder.getContext(); Authentication old = context.getAuthentication();