Bug 427290

Summary: Imported .ics calendar is named akonadi_ical_resource_* and looks empty
Product: [Applications] korganizer Reporter: ederag <edera>
Component: import/exportAssignee: kdepim bugs <kdepim-bugs>
Status: CONFIRMED ---    
Severity: normal CC: gjditchfield, m4rkusxxl
Priority: NOR    
Version: 5.15.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: ICal file that cannot be imported
ICal file that cannot be imported

Description ederag 2020-10-03 12:48:11 UTC
Created attachment 132087 [details]
ICal file that cannot be imported

Imported calendars are not displayed, as if they were empty.

STEPS TO REPRODUCE
1. Right click in the calendars list > Add Calendar
2. Select ICal Calendar File
3. Enter the filename of an existing .ics file
4. Enter name
5. OK

OBSERVED RESULT
A new calendar appears in the list, but
- its name is something like akonadi_ical_resource_1
  (the actual number increases at each tentative),
  instead of the name given in step 4.
- the event pane stays empty


EXPECTED RESULT
Correct name.
Displayed events.

SOFTWARE/OS VERSIONS
openSUSE Leap 15.2 + KDE repos
(but issue started with the Leap 15.1 to 15.2 upgrade, with shipped kde)
KDE Frameworks 5.74.0
Qt 5.15.1 (built against 5.15.1)

ADDITIONAL INFORMATION
Also reproducible with a brand new user.
Stripped down ICal file attached.

akonadictl start
...
Handler exception when handling command FetchCollections on connection akonadi_ical_resource_1 (0x562d90df2fb0) : 
Hierarchical RID does not specify an existing collection
...
Comment 1 ederag 2020-10-03 12:59:56 UTC
Created attachment 132089 [details]
ICal file that cannot be imported
Comment 2 gjditchfield 2020-10-03 21:45:41 UTC
When I import the file, akonadiconsole says the resource exists but contains no events.  Korganizer thinks it can create events in the calendar, and akonadiconsole says the new event exists, but it is not written out to the file.
Comment 3 Markus 2020-10-05 10:01:06 UTC
Possible duplicate of bug 425460?
Comment 4 ederag 2020-10-05 10:33:49 UTC
It's close, but there's no "No file selected." error here,
even with
akonadictl stop
akonadictl --verbose start