Bug 280632

Summary: Http(s) ical resource not loaded (with query string)
Product: [Frameworks and Libraries] Akonadi Reporter: Wouter Haffmans <wouter>
Component: ICal file resourceAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Wouter Haffmans 2011-08-23 09:24:39 UTC
Version:           4.7 (using KDE 4.7.0) 
OS:                Linux

I want to import a calendar for Redmine issues using Redmics (http://code.google.com/p/redmics/). This plugin generates URLs of the following form:

https://server/redmine/i_calendar?assigned_to=%2A&format=atom&key=123456789etc&project_id=project&status=all

I add this URL using the  ICal Calendar File agent to Akonadi. When trying to refresh its folder, I get the following error:

AkonadiAgentServer(17805): Error loading file  "/var/tmp/kdecache-user/akonadi/akonadi_ical_resource_1"

Inspecting the file shows a plain HTML file of Redmine's login page, instead of the ICS file. Using wget to fetch the URL, I do get the proper ICal file (without having to enter any credentials).

It seems to me that Akonadi does not load the file properly, perhaps because of the (extensive) query string in the URL. I don't know how to find out the exact request Akonadi makes to get more information.

Reproducible: Always

Steps to Reproduce:
1. Add ICal File agent to Redmics export of issues
2. Try to refresh folder

Actual Results:  
No events are loaded, console shows error loading cached file.

Expected Results:  
Event items are loaded properly, the cached file /var/tmp/kdecache-user/akonadi/akonadi_ical_resource_1 shows the proper ICS file instead of the Redmine login page.
Comment 1 Denis Kurz 2016-09-24 20:38:27 UTC
This bug has only been reported for versions older than KDEPIM 4.14 (at most akonadi-1.3). Can anyone tell if this bug still present?

If noone confirms this bug for a recent version of akonadi (part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 2 Denis Kurz 2017-01-07 21:29:16 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.