GNOME Bugzilla – Bug 761667
Crash opening associated location that has no scheme
Last modified: 2018-06-29 23:47:07 UTC
Associate a location with no scheme to a transaction. For example, "dominos.com" Later when choosing the "Open Associated File/Location" option for the transaction, GnuCash will crash. If you add http:// or https:// to the location, GnuCash will successfully attempt to open the location. This happens on the following OS: Windows 8.1 Windows 7 This happens with these GnuCash versions: 2.6.11 (binary Windows download from sourceforge) 2.6.11 (setup.exe built from source using process at https://github.com/Gnucash/gnucash-on-windows)
Crash still happens in version "2.6.99", built from source using process at https://github.com/Gnucash/gnucash-on-windows, including the following commit: https://github.com/Gnucash/gnucash0 Author: RobGowin <robgowin@gmail.com> Date: Tue Jan 26 09:00:54 2016 -0600
No surprise. It will get fixed first in the maint branch; this bug report will be updated when it does. It might be as long as a month before that's merged to master.
Created attachment 335117 [details] [review] Test for a valid uri scheme This patch adds a test for the URI so that it has a valid scheme before passing to the launch command to stop the Windows version from crashing. It does introduce a new string as part of the error message but as there already are some untranslated strings to do with associations I believe it should be OK to add. This is taken from a commit to master to do with improving transaction associations.
This problem has been fixed in our software repository. The fix will go into the next software release. Once that release is available, you may want to check for a software upgrade provided by your Linux distribution.
Comment on attachment 335117 [details] [review] Test for a valid uri scheme Thanks for the effort, Bob, but that's not where the bug is. See https://github.com/Gnucash/gnucash/commit/3e30989de96b27bc3da77f85eebbfa5f59b9b127.
Not sure why I missed that, I am sure I looked at that code. Bob
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=761667. Please update any external references or bookmarks.