summaryrefslogtreecommitdiff
path: root/external/libcmis/libcmis-fix-error-handling.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/libcmis/libcmis-fix-error-handling.patch')
-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;
+ }
+