GnuCash
Contact   Instructions
Bug 796871 - GtkFileChooser Name Field and Sidebar Ignore UNC Paths
Summary: GtkFileChooser Name Field and Sidebar Ignore UNC Paths
Status: RESOLVED FIXED
Alias: None
Product: GnuCash
Classification: Unclassified
Component: General (show other bugs)
Version: 3.2
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: general
QA Contact: general
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-29 07:32 EDT by Robert Chapin
Modified: 2019-06-26 12:53 EDT (History)
3 users (show)

See Also:


Attachments

Description Robert Chapin 2018-09-29 07:32:22 EDT
Steps to reproduce:

1. Create a new Windows 10 local account.
2. Log in and redirect one of the profile folders, such as Documents, to a UNC path using the folder's Properties dialog.
3. Delete the corresponding C:\Users\username\Documents directory.
4. Start GnuCash.
5. Click File, Open.

Expected Result:

File picker should displays files in the UNC path when Documents is clicked.

Actual Result:

Hovering the Documents button shows the correct path, but nothing happens when the button is clicked.
Comment 1 Robert Chapin 2018-09-29 07:35:04 EDT
Workaround:

1. Close GnuCash.
2. Browse to desired file using Explorer.
3. Double-click file to launch GnuCash.
Comment 2 Robert Chapin 2018-09-29 07:46:30 EDT
Additional Symptoms:

After successfully opening a file through Explorer, if I return to the File Open picker while that file is still open, the current working folder is displayed normally, even with a UNC path in play.  The Documents and other redirected folder buttons remain broken.

This suggests the bug is likely to go unnoticed in day-to-day use.
Comment 3 John Ralls 2018-09-29 11:06:51 EDT
I don't think that the GtkFileChooser understands UNC paths. If you assign the UNC path to a letter drive is GnuCash able to navigate to the data?
Comment 4 Robert Chapin 2018-09-29 11:27:58 EDT
I've had no trouble with either UNC paths or mapped drive letters until today.  The bug is very specific to the "My Documents" and related buttons in the file picker.  The button itself is broken.  Otherwise, UNC seems to work everywhere.
Comment 5 Robert Chapin 2018-09-29 11:30:32 EDT
Just confirmed on a second machine in the same network.  Redirected folder buttons are broken.  Mapped letter drive buttons work fine.
Comment 6 Robert Chapin 2018-10-03 08:24:42 EDT
Confirmed bug in v3.3.

Also noticed the Name field rejects any UNC path.

Also noticed it is effectively impossible to create or export files, such as PDF reports, except to a drive letter.
Comment 7 Robert Chapin 2019-01-07 20:12:12 EST
Confirmed bug in v3.4.

Additional problems:

v3.4 does respect UNC paths in the Name field, but unfortunately will save the file as ".gnucash" with no name rather than navigating to the desired folder.

Examples...

If I type "C:\tmp\" in the name field, I get an error dialog, "GnuCash could not write to C:\tmp.gnucash."

If I type \\server\folder\ in the name field, the file is immediately saved as \\server\folder\.gnucash
Comment 8 Robert Chapin 2019-05-21 16:17:56 EDT
Sidebar is fixed now in 3.5-223.

There is still no way to save to arbitrary UNC paths.
Comment 9 Robert Chapin 2019-06-26 12:53:59 EDT
Based on my previous 2 comments, I think this bug is effectively resolved.

File chooser sidebar now works for UNC paths.

File chooser Name field is now effectively broken on all directory names and is not specific to UNC paths.

Note You need to log in before you can comment on or make changes to this bug.