After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 642739 - Translog files being created in Gnucash program installation directory
Translog files being created in Gnucash program installation directory
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: General
2.4.x
Other Windows
: Normal major
: ---
Assigned To: Christian Stimming
Geert Janssens
: 638416 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-02-19 11:04 UTC by Ian K
Modified: 2018-06-29 22:53 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Ian K 2011-02-19 11:04:30 UTC
Version 2.4.0, Win32, Sqlite data file.
Translog files are being created in the program intallation directory, C:\Program Files\gnucash\bin. For example 'translog.20110218211031.log'
This would appear to be a security risk as this is not a user data directory so seems to be a major bug.
I'm not sure why these files are being created in the first place, but that's besides the point. On a multi-user computer anyone with access to the c:\program files directory can access this data.
Comment 1 Christian Stimming 2011-02-21 08:05:17 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 503722 ***
Comment 2 Ian K 2011-02-21 18:42:19 UTC
I have seen bug 503722 and believe this to be a very different issue.
Bug 503722 concerns whether folders such as .gnucash, .gconf, .gnome2 etc. go in the user's home directory, or in the Appdata folder of that user's home directory.
What I am reporting concerns Translog files created using Sqlite with Windows, and that they are going into the Gnucash *program installation directory* i.e. NOT a user directory at all but a system one.
On my XP system the user home directory is
C:\Documents and Settings\username\
Folders such as .gnucash, .gconf etc. are there.
Adding the line:
HOME={APPDATA}/GnuCash
to tne 'environment' file as described in bug 503722 causes those to then get put in C:\Documents and Settings\username\Appdata\

The Translog files are being created in 
C:\Program Files\gnucash\bin

I have set this to unresolved again. Pleas advise if I should continue to comment on this in bug 503722, but given it's a different issue I feel that would be confusing.
Comment 3 Geert Janssens 2011-02-22 12:53:29 UTC
You are correct that these are different bugs. Please keep your comments regarding the translog on this bug. Thank you.
Comment 4 Ian K 2011-03-12 12:39:06 UTC
Changed version to 2.4.3 as this is still happening.
For any multi-user system or business this represents a security risk.
Comment 5 Geert Janssens 2011-03-12 15:51:07 UTC
Thanks for the heads up. I lost track of this bug because I thought another developer was working on it.

I have committed a fix in r20400. For file based books, the logs are stored next to the file. This was the case already for xml based files, I have now added that for sqlite based files as well.
For mysql or postgresql based books, the logs will be stored in
<path-to-.gnucash-dir>/translog.
Comment 6 Geert Janssens 2011-04-06 19:26:51 UTC
*** Bug 638416 has been marked as a duplicate of this bug. ***
Comment 7 John Ralls 2017-09-24 22:05:17 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 8 John Ralls 2018-06-29 22:53:48 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=642739. Please update any external references or bookmarks.