[Akonadi] [Bug 335090] Akonadi Dav Resource: Broken State / Unexpected Error 401

frynoh at ruggedinbox.com frynoh at ruggedinbox.com
Mon Aug 25 18:38:04 BST 2014


https://bugs.kde.org/show_bug.cgi?id=335090

frynoh at ruggedinbox.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |frynoh at ruggedinbox.com

--- Comment #19 from frynoh at ruggedinbox.com ---
This patch corrects the behavior, please approve and release fixed version:

diff --git a/resources/dav/resource/settings.cpp
b/resources/dav/resource/settings.cpp
index 931dab5..e9b0f93 100644
--- a/resources/dav/resource/settings.cpp
+++ b/resources/dav/resource/settings.cpp
@@ -291,6 +291,9 @@ Settings::UrlConfiguration * Settings::urlConfiguration(
DavUtils::Protocol prot

 QString Settings::username( DavUtils::Protocol proto, const QString &url )
const
 {
+  if ( mUrls.isEmpty() )
+    buildUrlsList();
+
   QString key = url + QLatin1Char(',') + DavUtils::protocolName( proto );

   if ( mUrls.contains( key ) )
@@ -308,6 +311,9 @@ QString Settings::username( DavUtils::Protocol proto, const
QString &url ) const

 QString Settings::password(DavUtils::Protocol proto, const QString& url)
 {
+  if ( mUrls.isEmpty() )
+    buildUrlsList();
+
   QString key = url + QLatin1Char(',') + DavUtils::protocolName( proto );

   if ( mUrls.contains( key ) )

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list