Bug 228459 - Manipulation of entries in Lokalize glossary results in program crash and glossary corruption
Summary: Manipulation of entries in Lokalize glossary results in program crash and glo...
Status: RESOLVED FIXED
Alias: None
Product: lokalize
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Nick Shaforostoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-25 14:49 UTC by Donatas Glodenis
Modified: 2010-05-03 17:47 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
The corrupted file (742 bytes, text/plain)
2010-02-25 15:05 UTC, Donatas Glodenis
Details
The file before corruption (22.13 KB, application/x-bzip)
2010-02-25 17:48 UTC, Donatas Glodenis
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Donatas Glodenis 2010-02-25 14:49:52 UTC
Version:           1.0 (using 4.4.00 (KDE 4.4.0), Kubuntu packages)
Compiler:          cc
OS:                Linux (i686) release 2.6.31-19-generic

I deleted an entry in a 2000+ long glossary, when suddenly program crashed upon trying to exit glossary editor and choosing „save changes“ in a dialog.

The glossary was corrupted completely. The first entry in a corrupt glossary is the entry I added, while the next entry, that was copied and overwrote all other entries, was not being manipulated.
Comment 1 Donatas Glodenis 2010-02-25 15:05:48 UTC
Created attachment 41095 [details]
The corrupted file

This is the glossary file after it has been corrupted.
Comment 2 Donatas Glodenis 2010-02-25 17:48:24 UTC
Created attachment 41101 [details]
The file before corruption

This is not an exact version of the file that got corrupted – I had to recreate it by combining two other files, but I am pretty sure that structurally they are identical.
Comment 3 Nick Shaforostoff 2010-05-03 17:47:03 UTC
SVN commit 1122332 by shaforo:

rewrite glossary storage to use QDom classes
BUG: 228459


 M  +0 -1      CMakeLists.txt  
 M  +1 -0      cataloglistview/cataloglistview.cpp  
 M  +2 -2      common/flowlayout.cpp  
 M  +1 -1      common/flowlayout.h  
 M  +8 -8      common/termlabel.cpp  
 M  +3 -3      common/termlabel.h  
 M  +340 -406  glossary/glossary.cpp  
 M  +62 -18    glossary/glossary.h  
 M  +11 -15    glossary/glossaryview.cpp  
 M  +142 -74   glossary/glossarywindow.cpp  
 M  +48 -6     glossary/glossarywindow.h  
 M  +17 -18    glossary/termedit.ui  
 M  +4 -3      tm/jobs.cpp  
 M  +18 -3     xlifftextedit.cpp  
 M  +1 -0      xlifftextedit.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1122332