summaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
Diffstat (limited to 'external')
-rw-r--r--external/libcmis/exceptions.patch.19
1 files changed, 5 insertions, 4 deletions
diff --git a/external/libcmis/exceptions.patch.1 b/external/libcmis/exceptions.patch.1
index 29a66f229c4c..3b4090aa54f7 100644
--- a/external/libcmis/exceptions.patch.1
+++ b/external/libcmis/exceptions.patch.1
@@ -1,12 +1,11 @@
--- libcmis/src/libcmis/http-session.cxx.orig 2024-06-21 12:22:36.083125022 +0200
+++ libcmis/src/libcmis/http-session.cxx 2024-06-21 13:08:37.403016695 +0200
-@@ -653,7 +653,8 @@
+@@ -653,7 +653,7 @@
m_authProvided = authProvider->authenticationQuery( m_username, m_password );
if ( !m_authProvided )
{
- throw CurlException( "User cancelled authentication request" );
-+ // report this as 401 so it becomes permissionDenied
-+ throw CurlException("User cancelled authentication request", CURLE_OK, "", 401);
++ throw CurlException("User cancelled authentication request", CURLE_OK);
}
}
}
@@ -62,7 +61,7 @@
void HttpSession::initProtocols( )
{
-@@ -981,11 +972,43 @@
+@@ -981,11 +972,45 @@
break;
default:
msg = what();
@@ -106,6 +105,8 @@
+ default:
+ if ( !isCancelled( ) )
+ msg += ": " + m_url;
++ else if (msg == "User cancelled authentication request")
++ type = "permissionDenied";
+ break;
+ }
}