Bug 397018 - Cannot open file - password requested
Summary: Cannot open file - password requested
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: 25.1.0
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-31 19:18 UTC by Chris Prior
Modified: 2018-09-12 16:40 UTC (History)
2 users (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 Chris Prior 2018-07-31 19:18:25 UTC
I have skrooge 2.13.0, qt 5.9.6 (but skrooge says built against 5.9.4), kde frameworks 5.46.0

I use 2 databases - one opens perfectly. The other, that was last saved on 22 June (before the qt 5.9.6 update) requests a password to open the file. I do not remember setting a password for this file. I have tried to open the backup (from the same date) and also a previous version of the file last saved in Feb 2018. None of these will open. Is there any way of attempting to recover these files?
Comment 1 Stephane MANKOWSKI 2018-08-01 07:57:15 UTC
This is strange.
Could you try this from the console?
export SKGTRACE=10
skrooge 2>&1 >trace.txt
try to open the file
close skrooge
send me by email (you can find me email address in the "About" of Skrooge the file trace.txt

For information, most of the time Skrooge requests a password when the file is corrupted (size 0 or something else).
Comment 2 Stephane MANKOWSKI 2018-08-01 15:13:39 UTC
The issue was due to SQLCIPHER 3.20.1 on GENTOO.
Downgrade to sqlcipher 3.4.1 fixed the issue.
Comment 3 Stephane MANKOWSKI 2018-08-01 17:37:54 UTC
Git commit e1cc286b758ad21443de0c5e2315a28dafc6b815 by Stephane Mankowski.
Committed on 01/08/2018 at 16:37.
Pushed by smankowski into branch 'master'.

Check sqlcipher installation

M  +1    -0    CHANGELOG
M  +8    -0    skgbasemodeler/skgdocument.cpp

https://commits.kde.org/skrooge/e1cc286b758ad21443de0c5e2315a28dafc6b815
Comment 4 Andreas Sturmlechner 2018-09-12 12:30:51 UTC
I am a bit confused about this solution; does it mean that sqlcipher-3.4.2 introduces a regression with skrooge?
Comment 5 Stephane MANKOWSKI 2018-09-12 16:40:37 UTC
In fact, the SQLCIPHER 3.20.1 on GENTOO didn't support encryption.
I think this is a packaging issue.
Nevertheless, I did a correction to give a better feedback in this case.
Regards.