From 974ef69c73a4e62b7513effa5c5b8d46ec0a1c80 Mon Sep 17 00:00:00 2001 From: Andreas Brandner Date: Fri, 23 Feb 2018 12:25:57 +0100 Subject: tdf#115968: make libcmis work better with CIB doxima Change-Id: I1758bcee9a191937ed265dc26212f259a59fffef Reviewed-on: https://gerrit.libreoffice.org/50231 Tested-by: Jenkins Reviewed-by: Thorsten Behrens --- external/libcmis/libcmis-fix-error-handling.patch | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/external/libcmis/libcmis-fix-error-handling.patch b/external/libcmis/libcmis-fix-error-handling.patch index 09df7ac9ebe5..d0f1ae29cebc 100644 --- a/external/libcmis/libcmis-fix-error-handling.patch +++ b/external/libcmis/libcmis-fix-error-handling.patch @@ -17,4 +17,16 @@ diff -ur cmis.org/src/libcmis/xml-utils.cxx cmis/src/libcmis/xml-utils.cxx string timeStr = dateTimeStr.substr( teePos + 1 ); // Get the TZ if any - +@@ -459,10 +459,9 @@ + bool value = false; + if ( boolStr == "true" || boolStr == "1" ) + value = true; +- else if ( boolStr == "false" || boolStr == "0" ) +- value = false; + else +- throw Exception( string( "Invalid xsd:boolean input: " ) + boolStr ); ++ // treat everthing else, including absence of property, as 'false', not as an error ++ value = false; + return value; + } + -- cgit