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 756735 - (Multiple) flags allowed with value="0"
(Multiple) flags allowed with value="0"
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gsettings
2.46.x
Other Linux
: Normal normal
: ---
Assigned To: Allison Karlitskaya (desrt)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2015-10-17 05:33 UTC by Arnaud B.
Modified: 2018-05-24 18:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Arnaud B. 2015-10-17 05:33:11 UTC
Probably not a big deal, but:

  <flags id="ca.desrt.dconf-editor.DemoFlags">
    <value value="0" nick="Red"/>
    <value value="0" nick="White"/>
    <value value="1" nick="Blue"/>
  </flags>

is completely OK at compilation. “value="0"” shouldn’t be allowed.
Comment 1 Matthias Clasen 2015-10-17 15:51:16 UTC
It seems that this happens only for flags value 0 - we drop that value during parsing and never add it to the list of values, so we can't detect the duplicate.

Value 0 is allowed to specify the common 'none of the above' case.
Comment 2 GNOME Infrastructure Team 2018-05-24 18:18:11 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/1096.