Bug#242258: gnome-panel crashes on invalid .recently-used entry
Vincenzo Gervasi
Vincenzo Gervasi <gervasi@di.unipi.it>, 242258@bugs.debian.org
Mon, 05 Apr 2004 17:55:55 +0200
Package: gnome-panel
Version: 2.4.2-4
Severity: important
gnome-panel crashes upon finding XML encoding problems in .recently used.
In particular, I had the following entry (created by OpenOffice.org):
<RecentItem>
<URI>file:///home/gervasi/REFSQ04/Reviews/06%20&%2022%20Rolland.doc</URI>
<Mime-Type>application/msword</Mime-Type>
<Timestamp>1080897663</Timestamp>
<Groups>
<Group>OpenOffice.org</Group>
</Groups>
</RecentItem>
As you can notice, the encoding of the file name "06 & 22 Rolland.doc" was
incorrect, in that the ampersand was not encoded as it should. However, it
is not acceptable that the panel crashes (in an endless loop, due to the
session manager re-launching it every time) just because an application or a
user has used an unusual file name. XML parsing errors at this stage should
be harmless -- at the worst, the offending entry should be dropped from
the recent files menu.
In my case, the problem was fixed by (manually) rewriting the entry as
follows:
<RecentItem>
<URI>file:///home/gervasi/REFSQ04/Reviews/06%20&%2022%20Rolland.doc</URI>
<Mime-Type>application/msword</Mime-Type>
<Timestamp>1080897663</Timestamp>
<Groups>
<Group>OpenOffice.org</Group>
</Groups>
</RecentItem>
Notice how & was encoded to & (whereas the previous &%2022 was an
illegal entity name).
Thanks for your excellent work,
-Vincenzo
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.2
Locale: LANG=it_IT, LC_CTYPE=it_IT
Versions of packages gnome-panel depends on:
ii gnome-control-center 1:2.4.0-9 The GNOME Control Center for GNOME
ii gnome-desktop-data 2.4.1-9 Common files for GNOME 2 desktop a
ii gnome-panel-data 2.4.2-4 Common files for GNOME 2 panel
ii gnome-session 2.4.2-4 The GNOME 2 Session Manager
ii libart-2.0-2 2.3.16-3 Library of functions for 2D graphi
ii libatk1.0-0 1.4.1-1 The ATK accessibility toolkit
ii libaudiofile0 0.2.6-3 Open-source version of SGI's audio
ii libbonobo2-0 2.4.3-1 Bonobo CORBA interfaces library
ii libbonoboui2-0 2.4.3-2 The Bonobo UI library
ii libc6 2.3.2.ds1-11 GNU C Library: Shared libraries an
ii libesd0 0.2.29-1 Enlightened Sound Daemon - Shared
ii libgconf2-4 2.4.0.1-4 GNOME configuration database syste
ii libgcrypt1 1.1.12-4 LGPL Crypto library - runtime libr
ii libglade2-0 2.0.1-12 Library to load .glade files at ru
ii libglib2.0-0 2.2.3-1 The GLib library of C routines
ii libgnome-desktop-2 2.4.1-9 Utility library for loading .deskt
ii libgnome2-0 2.4.0-10 The GNOME 2 library - runtime file
ii libgnomecanvas2-0 2.4.0-3 A powerful object-oriented display
ii libgnomeui-0 2.4.0.1-10 The GNOME 2 libraries (User Interf
ii libgnomevfs2-0 2.4.1-5 The GNOME virtual file-system libr
ii libgnomevfs2-common 2.4.1-5 The GNOME virtual file-system libr
ii libgnutls7 0.8.12-5 GNU TLS library - runtime library
ii libgtk2.0-0 2.2.4-3 The GTK+ graphical user interface
ii libice6 4.3.0-7 Inter-Client Exchange library
ii libjpeg62 6b-9 The Independent JPEG Group's JPEG
ii liborbit2 1:2.8.3-2 libraries for ORBit2 - a CORBA ORB
ii libpanel-applet2-0 2.4.2-4 Library for GNOME 2 Panel applets
ii libpango1.0-0 1.2.5-2.1 Layout and rendering of internatio
ii libpng12-0 1.2.5.0-5 PNG library - runtime
ii libpopt0 1.7-4 lib for parsing cmdline parameters
ii libsm6 4.3.0-7 X Window System Session Management
ii libstartup-notification0 0.5-9 library for program launch feedbac
ii libtasn1-0 0.1.2-1 Manage ASN.1 structures (runtime)
ii libwnck4 2.4.0.1-4 Window Navigator Construction Kit
ii libx11-6 4.3.0-7 X Window System protocol client li
ii libxext6 4.3.0-7 X Window System miscellaneous exte
ii libxml2 2.6.8-1 GNOME XML library
ii xlibs 4.3.0-7 X Window System client libraries m
ii zlib1g 1:1.2.1-5 compression library - runtime
-- no debconf information