Bug 378757 - Archive: Archive folder not created if missing, articles not saved
Summary: Archive: Archive folder not created if missing, articles not saved
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: 5.2.3
Platform: Debian testing Linux
: NOR minor
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-13 21:13 UTC by esainane+kde
Modified: 2017-04-14 05:20 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.5.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description esainane+kde 2017-04-13 21:13:45 UTC
I noticed that Akregator was not remembering the articles between sessions, even though Configure -> Archive -> Default Archive Settings was set to "Keep all articles".

Attaching strace:

[...]
mkdir("/home", 0777)                    = -1 EEXIST (File exists)
stat("/home", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir("/home/user", 0777)               = -1 EEXIST (File exists)
stat("/home/user", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
mkdir("/home/user/.local", 0777)        = -1 EEXIST (File exists)
stat("/home/user/.local", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
mkdir("/home/user/.local/share", 0777)  = -1 EEXIST (File exists)
stat("/home/user/.local/share", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
mkdir("/home/user/.local/share/akregator", 0777) = -1 EEXIST (File exists)
stat("/home/user/.local/share/akregator", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open("/home/user/.local/share/akregator/Archive/archiveindex.mk4", O_RDWR) = -1 ENOENT (No such file or directory)
open("/home/user/.local/share/akregator/Archive/archiveindex.mk4", O_RDWR|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)
open("/home/user/.local/share/akregator/Archive/feedlistbackup.mk4", O_RDWR) = -1 ENOENT (No such file or directory)
open("/home/user/.local/share/akregator/Archive/feedlistbackup.mk4", O_RDWR|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)
[...]

While it checks for ~/.local/share/akregator (and parents), ~/.local/share/akregator/Archive/archiveindex.mk4, and ~/.local/share/akregator/Archive/feedlistbackup.mk4, creating them if they do not exist, there does not appear to be any attempt to check for ~/.local/share/akregator/Archive/ and create it if it does not exist, leading to the failure to create the files in this directory.

Manually creating ~/.local/share/akregator/Archive works around the problem, with articles then being properly archived and preserved between sessions.
Comment 1 Laurent Montel 2017-04-14 05:20:15 UTC
Git commit 63d7f88b359a4f78782b345eebd77315c941af8c by Montel Laurent.
Committed on 14/04/2017 at 05:20.
Pushed by mlaurent into branch 'Applications/17.04'.

Fix Bug 378757 - Archive: Archive folder not created if missing, articles not saved

FIXED-IN: 5.5.1

Thanks for info in bug reports

M  +2    -3    plugins/mk4storage/storagemk4impl.cpp

https://commits.kde.org/akregator/63d7f88b359a4f78782b345eebd77315c941af8c