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 339056 - Erroneous XML file of logs
Erroneous XML file of logs
Status: RESOLVED FIXED
Product: gossip
Classification: Deprecated
Component: General
0.10.x
Other other
: Normal normal
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-19 17:34 UTC by Samuel Hym
Modified: 2006-04-19 19:15 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Samuel Hym 2006-04-19 17:34:38 UTC
Distribution: Debian testing/unstable
Package: gossip
Severity: Normal
Version: GNOME2.12.3 0.10.x
Gnome-Distributor: Debian
Synopsis: Erroneous XML file of logs
Bugzilla-Product: gossip
Bugzilla-Component: General
Bugzilla-Version: 0.10.x
Description:
Description of Problem:
The names of the contacts are not properly escaped before embedding
within XML files of logs. In my case, I abbreviated the name of a friend
into s\xE9v', where the apostrophe conflicts the quote used in the xml
file.

Steps to reproduce the problem:
1. add (or rename) a contact with a nickname containing some '
2. receive a message from this contact
3. ask to see the log file

Actual Results:
These error messages (with blob instead of private and irrelevant
information; I did not realign the ^ but the first 3 indicates the ends
of lines, the last one the beginning):

blob/.gnome2/Gossip/logs/blob@blob.log:7: parser error : attributes
construct error
sage time='20060412T11:01:52' from='blob@blob' resource='' nick='s\xE9v'

      ^
blob/.gnome2/Gossip/logs/blob@blob.log:7: parser error : Couldn't find
end of Start Tag message line 7
sage time='20060412T11:01:52' from='blob@blob' resource='' nick='s\xE9v'

      ^
blob/.gnome2/Gossip/logs/blob@blob.log:9: parser error : Opening and
ending tag mismatch: gossip line 3 and message
        </message>
                  ^
blob/.gnome2/Gossip/logs/blob@blob.log:10: parser error : Extra content
at the end of the document
        <message time='20060412T11:02:01' to='blob@blob' resource=''
nick='sa
        ^

** (gossip:28977): WARNING **: Couldn't transform log
file:'/tmp/gossip-log-Hrb4Ft'

Expected Results:
The logs

How often does this happen?


Additional Information:




------- Bug created by bug-buddy at 2006-04-19 17:34 -------


Bugreport had an attachment. This cannot be imported to Bugzilla.
Contact bugmaster@gnome.org if you are willing to write a patch for this.

Comment 1 Martyn Russell 2006-04-19 19:15:47 UTC
Fixed, good catch, thanks ;)