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 660793 - dconf-editor errors because of empty <description/> tags in caribou gschema file
dconf-editor errors because of empty <description/> tags in caribou gschema file
Status: RESOLVED FIXED
Product: dconf-editor
Classification: Other
Component: general
0.10.x
Other Linux
: Normal normal
: ---
Assigned To: dconf-editor maintainer(s)
dconf-editor maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2011-10-03 14:41 UTC by gymka
Modified: 2015-02-22 12:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix for xml file (2.00 KB, patch)
2011-10-03 14:42 UTC, gymka
rejected Details | Review

Description gymka 2011-10-03 14:41:19 UTC
if i try to launch dconf-editor i get error: 
** (dconf-editor:14962): DEBUG: dconf-schema.vala:378: Loading schema: /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:13: parser error : Opening and ending tag mismatch: description line 12 and key
    </key>
          ^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:18: parser error : Opening and ending tag mismatch: description line 17 and key
    </key>
          ^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:23: parser error : Opening and ending tag mismatch: description line 22 and key
    </key>
          ^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:28: parser error : Opening and ending tag mismatch: description line 27 and key
    </key>
          ^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:29: parser error : Opening and ending tag mismatch: key line 24 and schema
  </schema>
           ^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:30: parser error : Opening and ending tag mismatch: key line 19 and schemalist
</schemalist>
             ^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:31: parser error : Premature end of data in tag key line 14

^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:31: parser error : Premature end of data in tag key line 9

^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:31: parser error : Premature end of data in tag schema line 3

^
/usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml:31: parser error : Premature end of data in tag schemalist line 2
** (dconf-editor:14962): DEBUG: dconf-schema.vala:378: Loading schema: /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:13: parser error : Opening and ending tag mismatch: description line 12 and key
    </key>
          ^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:18: parser error : Opening and ending tag mismatch: description line 17 and key
    </key>
          ^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:23: parser error : Opening and ending tag mismatch: description line 22 and key
    </key>
          ^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:28: parser error : Opening and ending tag mismatch: description line 27 and key
    </key>
          ^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:29: parser error : Opening and ending tag mismatch: key line 24 and schema
  </schema>
           ^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:30: parser error : Opening and ending tag mismatch: key line 19 and schemalist
</schemalist>
             ^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:31: parser error : Premature end of data in tag key line 14

^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:31: parser error : Premature end of data in tag key line 9

^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:31: parser error : Premature end of data in tag schema line 3

^
/usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml:31: parser error : Premature end of data in tag schemalist line 2
=============================================================================
solution: before each <description/> there should be <description>, patch attached.(i wrote only for /usr/share/glib-2.0/schemas/org.gnome.caribou.gschema.xml, but same problem and same fix and for /usr/share/glib-2.0/schemas/org.gnome.antler.gschema.xml)
Comment 1 gymka 2011-10-03 14:42:45 UTC
Created attachment 198103 [details] [review]
fix for xml file
Comment 2 gymka 2011-10-03 14:43:45 UTC
maybe it's wrong solution, but after that dconf-editor starts and works, atleast for now i haven't noticed something wrong:)
Comment 3 gymka 2011-10-04 04:58:32 UTC
well that fix is bad, better is to remove unnecessary(that one which don't have description and <description> tag before it) <description/> tags.
Comment 4 André Klapper 2011-10-04 06:13:31 UTC
I wonder if <description /> is at least recognized?
Comment 5 Eitan Isaacson 2011-10-04 06:19:25 UTC
Thanks for the report. First off, this should be a dconf bug. The XML is valid. Second, if you want to provide a workaround you need to modify the script that generates caribou's schema files.
Comment 6 André Klapper 2011-10-04 06:28:00 UTC
gymka: What dconf version is this about?

(In reply to comment #5)
> First off, this should be a dconf bug.

==> Move it to dconf, please.
Comment 7 gymka 2011-10-04 06:37:33 UTC
dconf-0.10.0, but i tried to downgrade to dconf-0.8.0 and to dconf-0.7.5 and it's same... bug appeared after gnome 3.2 install, but maybe it's only coincidence. schemas generates script "/usr/bin/glib-compile-schemas" i think it's fault of that script, but it's binary so i can't see that it does.
Comment 8 Matthias Clasen 2011-10-05 11:21:43 UTC
xml allows empty elements to be written as either <bla></bla> or <bla/>.
So, as far as the markup is concerned, the schemas you mention are alright.
glib-compile-schemas also has not issue with empty descriptions.
This leaves just dconf-editor as not properly dealing with valid content.
Comment 9 Matthias Clasen 2011-10-05 11:23:18 UTC
curiously, I don't see the same error with dconf 0.10 here.
Comment 10 gymka 2011-10-05 11:38:17 UTC
i reinstalled my os(moved to x86_64 version) so i'm too don't have that bug anymore:) but de facto i had that bug, and not only i. i saw same problem in gentoo bugreport site, but there was older version.
Comment 11 André Klapper 2015-02-22 12:27:21 UTC
[moving dconf>editor tickets to dconf-editor product. See bug 744791]