You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nextcloud desktop client creates GTK bookmark after first connection to new server. ~/.config/gtk-3.0/bookmarks % sign in bookmark path should be escaped as %25.
Reading malformed bookmark causes other GTK applications to crash in glib, when gtk+ is trying to validate the GFile path.
Actual behaviour
% sign in path is not escaped.
Steps to reproduce
Start nextcloud client
Connect to Nextcloud URL
Approve connection in browser
Choose path with % in it. I.e.: /drv/secondary/%NEXTCLOUD
Malformed bookmark in $HOME/.config/gtk-3.0/bookmarks config is created.
The crash itself is GTK+ issue, and is fixed here: https://gitlab.gnome.org/GNOME/gtk/-/issues/4643 with more details there.
However, there is an issue of character not being escaped.
According to GTK+ developer, it should be:
GFile operates in terms of URIs, not paths, and an unescaped % is not a valid character in the path component of a URI. To be valid, it should be %25.
It would be interesting to know where the % is getting into the URI here. Likely some component is building a path into a URI and not escaping it correctly at the time; but it’s not clear which component.
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you!
Expected behaviour
Nextcloud desktop client creates GTK bookmark after first connection to new server.
~/.config/gtk-3.0/bookmarks
%
sign in bookmark path should be escaped as%25
.Reading malformed bookmark causes other GTK applications to crash in glib, when gtk+ is trying to validate the GFile path.
Actual behaviour
%
sign in path is not escaped.Steps to reproduce
%
in it. I.e.:/drv/secondary/%NEXTCLOUD
$HOME/.config/gtk-3.0/bookmarks
config is created.Client configuration
Client version: github/master 4e8a5d7
Operating system: Gentoo Linux amd64
OS language: en_US
Qt version used by client package (Linux only, see also Settings dialog): 5.15.2-r14
Client package (From Nextcloud or distro) (Linux only): Nextcloud github/master
Installation path of client: ~/nextcloud-desktop-client/
Logs
20220120_0146_owncloud.log
Other
The crash itself is GTK+ issue, and is fixed here: https://gitlab.gnome.org/GNOME/gtk/-/issues/4643 with more details there.
However, there is an issue of character not being escaped.
According to GTK+ developer, it should be:
desktop/src/common/utility_unix.cpp:
The text was updated successfully, but these errors were encountered: