Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/external/libcmis/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 830 B image not shown  

Quelle  sharepoint-auth.patch.1   Sprache: unbekannt

 
Spracherkennung für: .1 vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

--- libcmis/src/libcmis/sharepoint-session.cxx.orig 2024-06-20 18:02:12.751118095 +0200
+++ libcmis/src/libcmis/sharepoint-session.cxx 2024-06-20 18:04:36.467083223 +0200
@@ -207,6 +207,10 @@
 
     headers_slist.reset(curl_slist_append(headers_slist.release(), "accept:application/json; odata=verbose"));
     headers_slist.reset(curl_slist_append(headers_slist.release(), ("x-requestdigest:" + m_digestCode).c_str()));
+    // newer Sharepoint requires this; this can be detected based on header
+    // "x-msdavext_error" starting with "917656;" typically with a 403 status
+    // but since this class is specifically for SharePoint just add it always
+    headers_slist.reset(curl_slist_append(headers_slist.release(), "X-FORMS_BASED_AUTH_ACCEPTED: f"));
 
     if ( !getUsername().empty() && !getPassword().empty() )
     {

[ Dauer der Verarbeitung: 0.32 Sekunden  ]