office-gobmx/external/libcmis/0001-cppcheck-operatorEqVarError-in-src-libcmis-http-sess.patch
Michael Stahl 62529d1eee libcmis,ucb: cmis: improve AllowInsecureProtocols implementation
1. in libcmis, pass the CurlInitProtocolsFunction to all subclasses of
   HttpSession that need it, and add 2 upstream fixes to pass it around

2. Arrange for InitCurl_easy to be called in UCP RepoContent as well

3. If AllowInsecureProtocols is disabled, automatically upgrade
   http connections to https, as is already done in webdav-curl.
   Do this in Content and RepoContent; hopefully should work
   to convert when m_aURL member is initialised;
   the m_xIdentifier on the other hand should have the original
   URL because ContentProviderImplHelper::queryExistingContents()
   caching likely relies on that.

Change-Id: I20d36ed03ba7ce221d6946b1c996071f4130ec7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169114
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-06-24 12:37:02 +02:00

24 lines
861 B
Diff

From 308a5352bab44157ba13962b9aa4becefb6e3817 Mon Sep 17 00:00:00 2001
From: Julien Nabet <serval2412@yahoo.fr>
Date: Fri, 23 Feb 2024 17:56:17 +0100
Subject: [PATCH] cppcheck: operatorEqVarError in src/libcmis/http-session.cxx
---
src/libcmis/http-session.cxx | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/libcmis/http-session.cxx b/src/libcmis/http-session.cxx
index f690914..8d427a4 100644
--- a/src/libcmis/http-session.cxx
+++ b/src/libcmis/http-session.cxx
@@ -224,6 +224,7 @@ HttpSession& HttpSession::operator=( const HttpSession& copy )
{
curl_easy_cleanup( m_curlHandle );
m_curlHandle = NULL;
+ m_CurlInitProtocolsFunction = copy.m_CurlInitProtocolsFunction;
m_no100Continue = copy.m_no100Continue;
m_oauth2Handler = copy.m_oauth2Handler;
m_username = copy.m_username;
--
2.45.1