https://bugs.kde.org/show_bug.cgi?id=403668

Tobias Leupold <tobias.leup...@gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://commits.kde.org/kph |https://commits.kde.org/kph
                   |otoalbum/b45dd424da08833004 |otoalbum/2882e3c4fc942c5216
                   |a081347cda62eaeb23eb72      |10f108eacd35de96226392

--- Comment #8 from Tobias Leupold <tobias.leup...@gmx.de> ---
Git commit 2882e3c4fc942c521610f108eacd35de96226392 by Tobias Leupold, on
behalf of Johannes Zarl-Zierl.
Committed on 04/02/2019 at 19:15.
Pushed by tleupold into branch 'v5.4-bugfix'.

Flush name cache when changing database compression.

For performance reasons, FileReader::unescape and FileWriter::escape
cache the results of (un)escaping.
With the recent (introduced in v5.4) push to use the compressed file
format by default, kphotoalbum would load an uncompressed file and later
store it as a compressed one. In this process, the cache would be
populated for an uncompressed file and later used to store a compressed
file, producing incorrect results.
On the next attempted database load, these incorrect results may be
discarded if they are invalid XML attribute names, thus leading to data
loss.

M  +7    -4    XMLDB/FileReader.cpp
M  +8    -4    XMLDB/FileWriter.cpp

https://commits.kde.org/kphotoalbum/2882e3c4fc942c521610f108eacd35de96226392

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to