summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Brandner <Andreas.Brandner@cib.de>2018-02-23 12:25:57 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-02-24 13:57:18 +0100
commit974ef69c73a4e62b7513effa5c5b8d46ec0a1c80 (patch)
treeca817b69ea267e72cdd847a2bef6546a392503e9
parentc64f2d34c0e62ec288b2e1453bf91f9f650db845 (diff)
tdf#115968: make libcmis work better with CIB doxima
Change-Id: I1758bcee9a191937ed265dc26212f259a59fffef Reviewed-on: https://gerrit.libreoffice.org/50231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--external/libcmis/libcmis-fix-error-handling.patch14
1 files changed, 13 insertions, 1 deletions
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;
+ }
+