GNOME Bugzilla – Bug 351351
Opening non-existing file gives weird error message
Last modified: 2018-06-29 21:11:19 UTC
If you open a non-existing file in gnucash, the error message is wildly misleading: The file type of file /bla/bla is unknown. Steps to reproduce: gnucash /bla/bla What is expected instead: Gnucash should say "File /bla/bla does not exist.". This should be fixed in branch-2.0 as well.
Created attachment 70885 [details] Screenshot of error message The weird error message that is shown if the file in question does not exist (or has been removed since last startup).
Actually this very same weird error message is shown if you open a file that you don't have read permissions for. Steps to reproduce (if you own the file): touch ~/foo chmod 000 ~/foo gnucash ~/foo The game gets an interesting twist if you also don't have write permission to the directory. Try this: gnucash /etc/shadow Heh.
Fixed in r14789. Awaiting audit and back-port.
*** Bug 330932 has been marked as a duplicate of this bug. ***
I guess we have to append [r14791, r14865] to [r14789].
Re comment#5: You mean, these three changesets should be back-ported together? This bug here first only asks for r14789 - I'm still waiting for someone who accepts the audit for this one...
Oh, and in case anyone wonders about the string addition in r14791: Per the policy described on http://wiki.gnucash.org/wiki/String_Freeze , I'd totally accept the new string introduced by r14791 because it fixes "an existing string which is just plain wrong and/or is completely misleading". So the new string of r14791 shouldn't stop us from back-porting r14791 as well.
Merged into 2.0 in r14883, along with the two subsequent further fixes.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=351351. Please update any external references or bookmarks.