office-gobmx/external/libcmis/factory-no-retry-ssl.patch.1
Michael Stahl af79ac4bf4 libcmis: don't retry if the connection failed at TLS level
... for example due to bad certificate; it is pointless as it will
fail exactly the same way.

Change-Id: I654261b2691987453e4ac9a3e2f3019dce20da48
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169268
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2024-06-20 15:59:27 +02:00

17 lines
873 B
Groff

--- libcmis/src/libcmis/session-factory.cxx.orig 2024-06-19 18:43:56.244832053 +0200
+++ libcmis/src/libcmis/session-factory.cxx 2024-06-20 11:46:26.518263605 +0200
@@ -94,8 +94,13 @@
{
response = httpSession->httpGetRequest( bindingUrl );
}
- catch ( const CurlException& )
+ catch (const CurlException& e)
{
+ if (strcmp(e.what(), "Invalid SSL certificate") == 0)
+ {
+ // no point in trying other protocols
+ throw e.getCmisException();
+ }
// Could be SharePoint - needs NTLM authentication
session = new SharePointSession( bindingUrl, username,
password, verbose );