Skip to content

Commit

Permalink
[JENKINS-33999] Do no blacklist springs NestedRuntimeException
Browse files Browse the repository at this point in the history
NestedRuntimeException needs to be propagated across remoting for things
like remote authentication schemes.
  • Loading branch information
jtnord committed Apr 4, 2016
1 parent 7cb4138 commit d72ffb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/hudson/remoting/ClassFilter.java
Expand Up @@ -60,7 +60,7 @@ public final Class check(Class c) {
".*org[.]apache[.]xalan.*",
"^org[.]codehaus[.]groovy[.]runtime[.].*",
"^org[.]hibernate[.].*",
"^org[.]springframework[.].*",
"^org[.]springframework[.](?!core[.]NestedRuntimeException$).*",
"^sun[.]rmi[.].*",
};

Expand Down
5 changes: 3 additions & 2 deletions src/test/java/hudson/remoting/DefaultClassFilterTest.java
Expand Up @@ -48,10 +48,11 @@ public class DefaultClassFilterTest {
/** Some classes that should be matched by the default class filter */
private static final List<String> defaultBadClasses = Arrays.asList("org.codehaus.groovy.runtime.Bob",
"org.apache.commons.collections.functors.Wibble", "org.apache.xalan.Bogus",
"com.sun.org.apache.xalan.bogus");
"com.sun.org.apache.xalan.bogus", "org.springframework.core.SomeClass",
"org.springframework.SomeClass");
/** Some classes that should not be matched by the default class filter */
private static final List<String> defaultOKClasses = Arrays.asList("java.lang.String", "java.lang.Object",
"java.util.ArrayList");
"java.util.ArrayList", "org.springframework.core.NestedRuntimeException");

@Rule
public TemporaryFolder folder = new TemporaryFolder();
Expand Down

0 comments on commit d72ffb3

Please sign in to comment.