Bug 285195 - dav resource complains about 401 error
Summary: dav resource complains about 401 error
Status: RESOLVED FIXED
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: DAV Resource (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-28 16:35 UTC by Martin Tlustos
Modified: 2013-10-24 09:57 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Tlustos 2011-10-28 16:35:49 UTC
Version:           unspecified
OS:                Linux

sometimes I get this error:
"element can not be received - request resulted in error 401" (translated from German.
Sometimes opening the resource and refetching all collections (7, Google Calendar, but I had the same problem with another Caldav server) helps, sometimes not. Sometimes restarting akonadi fixes the problem, sometimes not.

Heavy network/internet load seems to contribute to the problem, but I'm not sure about it.



Reproducible: Sometimes

Steps to Reproduce:
add Caldav resource with several collections. Wait and work.

Actual Results:  
At any time, the above error message can pop up - sometimes after half an hour, sometimes it works for two days...

Expected Results:  
no error message, it should work.
Comment 1 Martin Tlustos 2011-10-29 08:21:24 UTC
addition:

Akonadi does not seem to be patient enough with server
replies. If I have running down- or uploads, the
resource that is trying to sync at the time, starts complaining or even crashes.
Comment 2 Martin Tlustos 2011-11-14 15:35:27 UTC
It's still there. additional information: I have seven caldav collections for my google calendars. One of them isn't working, the others seem to work well. I don't know what the difference is. It is the biggest, and it had the longest name. I shortened it, just to be sure it doesn't come from spaces in names.
in akonadiconsole it show 592 entries with around 224kb. When the problem starts occuring, the size goes down to less, sometimes 70kb, sometimes 150kb.
Some of the entries have question marks in them.
Any other information I could contribute? It's pretty annoying and if I could help resolve this, I'd be happy...
Comment 3 Martin Tlustos 2011-11-25 09:43:07 UTC
additional info: one of the caldav resources has over 500 entries, this is the one that is refusing to sync. the other 6 sync without problems (found out in akonadiconsole).
Comment 4 Ilia K. 2012-02-21 11:57:31 UTC
I experience this problem as well (KDE 4.7.4).

This thread may be related:
http://groups.google.com/group/google-calendar-help-dataapi/browse_thread/thread/b5803e69ddf17cc1

A summary:
The error may happen when the client is redirected to a new URL, but fails to send authentication along with a new (redirected) request.
Comment 5 Martin Tlustos 2013-10-24 09:57:02 UTC
seems to be fixed