Bug 424579 - Incorrect parsing/interpretation of a path to Local Folder (creates file: in $HOME)
Summary: Incorrect parsing/interpretation of a path to Local Folder (creates file: in ...
Status: RESOLVED DUPLICATE of bug 408354
Alias: None
Product: Akonadi
Classification: Frameworks and Libraries
Component: Maildir Resource (show other bugs)
Version: 5.13.3
Platform: Other Linux
: NOR major
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-23 19:29 UTC by Sergei
Modified: 2020-09-07 07:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei 2020-07-23 19:29:50 UTC
SUMMARY
After changing a path to the Local Folder a prefix 'file:' gets added to a filepath, so a new location of Local Folder becomes /home/serge/file:/home/serge/.local/share/akonadi_maildir_resource_0. Restarting akonadi does not help. Moreover, it is noted that 'file:' gets created under the directory akonadi starts from. Going to the data in the DB shows exactly that value. One might expect that it should contain 'file://' with two slashes instead of one. I do not know whether this happened before but such a behaviour was noticed for 19.12.3.


STEPS TO REPRODUCE
1. Start kmail
2. Copy a directory where Local Folder is located to a new location
3. Change settings for Local Folder to that new location


OBSERVED RESULT
Wrong location for Local Folder


EXPECTED RESULT
The location should correspond to the one specified in settings

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 5.13.3
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.12.9

ADDITIONAL INFORMATION
Comment 1 Sergei 2020-07-24 09:31:16 UTC
It seems the things starts from ConfigWidget::save() in https://invent.kde.org/pim/kdepim-runtime/-/blob/master/resources/maildir/configwidget.cpp but I do not have time to dig in more details.

A workaround for that 'file:' thing is by just deleting Local Folder through akonadiconsole and kmail will create a new one.

Has to be fixed anyway...
Comment 2 Wolfgang Bauer 2020-09-07 07:28:30 UTC
Can you still reproduce it with a more current version?

It should actually be fixed since 5.14 (part of the 20.04 releases).
https://invent.kde.org/pim/kdepim-runtime/-/commit/93ecfacfb9f21ee027dbcfc7d5d47ddbbb253ba1
Comment 3 Wolfgang Bauer 2020-09-07 07:32:26 UTC
And it's a duplicate of bug#408354 (or bug#411269, or bug#413588) anyway...

*** This bug has been marked as a duplicate of bug 408354 ***