提交 d6bcfdac 编写于 作者: J Jesse Glick

Integrating newer remoting snapshot, and adding better diagnostics to BlacklistedTypesConverter.

上级 0a1e4657
...@@ -440,12 +440,12 @@ public class XStream2 extends XStream { ...@@ -440,12 +440,12 @@ public class XStream2 extends XStream {
private static class BlacklistedTypesConverter implements Converter { private static class BlacklistedTypesConverter implements Converter {
@Override @Override
public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) { public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) {
throw new UnsupportedOperationException("Refusing to marshal for security reasons"); throw new UnsupportedOperationException("Refusing to marshal " + source.getClass().getName() + " for security reasons");
} }
@Override @Override
public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) { public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) {
throw new ConversionException("Refusing to unmarshal for security reasons"); throw new ConversionException("Refusing to unmarshal " + reader.getNodeName() + " for security reasons");
} }
@Override @Override
......
...@@ -176,7 +176,7 @@ THE SOFTWARE. ...@@ -176,7 +176,7 @@ THE SOFTWARE.
<dependency> <dependency>
<groupId>org.jenkins-ci.main</groupId> <groupId>org.jenkins-ci.main</groupId>
<artifactId>remoting</artifactId> <artifactId>remoting</artifactId>
<version>2.53.3-20160204.182851-2</version> <version>2.53.3-20160211.162333-3</version>
</dependency> </dependency>
<dependency> <dependency>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册