GNOME Bugzilla – Bug 704802
new_with_path deosn't check for trailing slash in path
Last modified: 2013-10-24 20:29:47 UTC
>>> s = Gio.Settings.new_with_path("foo.bar", "/foo/bar") >>> s.set_int("baz", 0) Results in the /foo/barbaz key being set. new_with_path should error out if there's no trailing slash for the path.
Created attachment 257967 [details] [review] GSettings: verify path validity on constructors Don't allow constructing GSettings objects with invalid paths.
Review of attachment 257967 [details] [review]: Looks good
Attachment 257967 [details] pushed as 6568843 - GSettings: verify path validity on constructors
This triggers a smoketest failure in Continuous because gsettings-data-convert now segfaults on startup: http://build.gnome.org/continuous/buildmaster/builds/20131024.38/smoketest/work-gnome-continuous-x86_64-runtime/journal-json.txt "MESSAGE" : "(gsettings-data-convert:599): GLib-GIO-CRITICAL **: g_settings_new_with_path: assertion 'path_is_valid (path)' failed" I'm upgrading my VM to get a useful stack now.
This is fallout from evolution installing an invalid convert file and gsettings-data-convert not properly validating it. Bug 710835.
Followup bugs: https://bugzilla.gnome.org/show_bug.cgi?id=710835 https://bugzilla.gnome.org/show_bug.cgi?id=710836