Tuesday, 4 January
2011
Tue, 4 Jan
'11
11:32 a.m.
By default, XML data from the network may be no larger than 512K.
We have a bug which is 733402 bytes long. Limit is now 2 * 512K.
Signed-off-by: Nikola Pajkovsky <npajkovs(a)redhat.com>
---
lib/Utils/abrt_xmlrpc.cpp | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/lib/Utils/abrt_xmlrpc.cpp b/lib/Utils/abrt_xmlrpc.cpp
index ac2654e..4ae772f 100644
--- a/lib/Utils/abrt_xmlrpc.cpp
+++ b/lib/Utils/abrt_xmlrpc.cpp
@@ -52,6 +52,15 @@ void abrt_xmlrpc_conn::new_xmlrpc_client(const char* url, bool
ssl_verify)
* We do it in abrtd's main */
/* xmlrpc_client_setup_global_const(&env); */
+ /* Bug related #666893 - Unable to make sense of XML-RPC response from server
+ * By default, XML data from the network may be no larger than 512K.
+ * Some client and server modules may fail to enforce this properly.
+ * #define XMLRPC_XML_SIZE_LIMIT_DEFAULT (512*1024)
+ *
+ * bug is long 733402 bytes for now, hope it will be enought
+ */
+ xmlrpc_limit_set(XMLRPC_XML_SIZE_LIMIT_ID, 2 * XMLRPC_XML_SIZE_LIMIT_DEFAULT);
+
struct xmlrpc_curl_xportparms curlParms;
memset(&curlParms, 0, sizeof(curlParms));
/* curlParms.network_interface = NULL; - done by memset */
--
1.7.4.rc0