GNOME Bugzilla – Bug 793910
Certificate Files with space chars won't work via GUI
Last modified: 2018-03-07 16:14:44 UTC
When there are space chars in the filename of a certificate, the "add file dialog" url-encodes them and the NetworkManager cannot find it afterwards: nm-openvpn[1646]: Options error: --ca fails with '/home/stif/<--snip-->/Haas%20Hackenberg/VPN/Haas-CA.crt': No such file or directory (errno=2) If i change the '%20' to ' ' in the corresponding /etc/NetworkManager/system-connections File everything is ok.
Created attachment 369268 [details] [review] [PATCH] libnma: unescape certificate paths in URIs
(In reply to Beniamino Galvani from comment #1) > Created attachment 369268 [details] [review] [review] > [PATCH] libnma: unescape certificate paths in URIs doesn't the libnm-gtk version below have the same issue? Maybe merge these two functions, and move the "#if LIBNM_BUILD" inside the function -- moving the differenciator closer to where the code differs.
Created attachment 369360 [details] [review] [PATCH v2] libnma: unescape certificate paths in URIs (In reply to Thomas Haller from comment #2) > (In reply to Beniamino Galvani from comment #1) > > Created attachment 369268 [details] [review] [review] [review] > > [PATCH] libnma: unescape certificate paths in URIs > > doesn't the libnm-gtk version below have the same issue? Right, fixed. > Maybe merge these two functions, and move the "#if LIBNM_BUILD" inside the > function -- moving the differenciator closer to where the code differs. The LIBNM_BUILD version some macros for prefixes that are only available in libnm... we could avoid them and use the string literal directly, but it's unclear if it would be an improvement.
(In reply to Beniamino Galvani from comment #3) > Created attachment 369360 [details] [review] [review] > [PATCH v2] libnma: unescape certificate paths in URIs > > (In reply to Thomas Haller from comment #2) > > (In reply to Beniamino Galvani from comment #1) > > > Created attachment 369268 [details] [review] [review] [review] [review] > > > [PATCH] libnma: unescape certificate paths in URIs > > > > doesn't the libnm-gtk version below have the same issue? > > Right, fixed. lgtm
Applied: https://git.gnome.org/browse/network-manager-applet/commit/?id=2a65e932dbcc8add0f8006451f59004e5eeb6f09
*** Bug 793366 has been marked as a duplicate of this bug. ***