Blame SOURCES/xmlrpc-honor-enabledForExceptions-in-client.patch

807320
--- apache-xmlrpc-3.1.3-src.orig/common/src/main/java/org/apache/xmlrpc/parser/XmlRpcResponseParser.java	2010-02-06 16:44:49.000000000 +0100
807320
+++ apache-xmlrpc-3.1.3-src/common/src/main/java/org/apache/xmlrpc/parser/XmlRpcResponseParser.java	2019-12-12 23:41:03.935572209 +0100
807320
@@ -69,19 +69,21 @@ public class XmlRpcResponseParser extend
807320
 											getDocumentLocator());
807320
 			}
807320
 			errorMessage = (String) map.get("faultString");
807320
-            Object exception = map.get("faultCause");
807320
-            if (exception != null) {
807320
-                try {
807320
-                    byte[] bytes = (byte[]) exception;
807320
-                    ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
807320
-                    ObjectInputStream ois = new ObjectInputStream(bais);
807320
-                    errorCause = (Throwable) ois.readObject();
807320
-                    ois.close();
807320
-                    bais.close();
807320
-                } catch (Throwable t) {
807320
-                    // Ignore me
807320
-                }
807320
-            }
807320
+			if (((XmlRpcStreamRequestConfig)cfg).isEnabledForExceptions()) {
807320
+				Object exception = map.get("faultCause");
807320
+				if (exception != null) {
807320
+					try {
807320
+						byte[] bytes = (byte[]) exception;
807320
+						ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
807320
+						ObjectInputStream ois = new ObjectInputStream(bais);
807320
+						errorCause = (Throwable) ois.readObject();
807320
+						ois.close();
807320
+						bais.close();
807320
+					} catch (Throwable t) {
807320
+						// Ignore me
807320
+					}
807320
+				}
807320
+			}
807320
 		}
807320
 	}
807320