Summary: | marble.knsregistry grows exponentially when it contains invalid XML characters | ||
---|---|---|---|
Product: | [Applications] marble | Reporter: | Bernhard Beschow <shentey> |
Component: | general | Assignee: | Dennis Nienhüser <nienhueser> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | nienhueser |
Priority: | NOR | ||
Version: | 1.5 (KDE 4.10) | ||
Target Milestone: | 1.6 (KDE 4.11) | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.6.0 / KDE 4.11.0 | |
Sentry Crash Report: |
Description
Bernhard Beschow
2013-05-08 20:13:07 UTC
I can reproduce that knewstuff3 from kdelibs writes broken registry files. Our provider files seem properly UTF-8 encoded to me. Xmllint is happy as well. Therefore I'd rather blame knewstuff3. The reason that the summary field is displayed correctly should be that it displays the downloaded information only, not the information from the registry. The patch in https://git.reviewboard.kde.org/r/110226/ writes correctly encoded registry files even if opening a broken one (if it is able to download the information from the remote provider file). It does only update them on changes though (installing, removing or upgrading some theme). We could change that to always write a new registry file after closing the dialog. Another approach to fix broken registry files would be to make the rewrite part of the migration, but that would mean that the file is only fixed if a) we have Internet access when it is called and b) we wait for the download to finish. Git commit f6b0d7df0d3324376205b4238bf54c137d53d013 by Dennis Nienhüser. Committed on 11/05/2013 at 15:01. Pushed by nienhueser into branch 'master'. Strip summary and author tags with excessive size. M +34 -2 src/marble_part.cpp M +1 -0 src/marble_part.h http://commits.kde.org/marble/f6b0d7df0d3324376205b4238bf54c137d53d013 Git commit 2aa7a45e004a22287422b188655282fdd1e8b163 by Dennis Nienhüser. Committed on 11/05/2013 at 15:04. Pushed by nienhueser into branch 'master'. Restrict maximum size of shown text. M +8 -5 src/lib/MapThemeDownloadDialog.cpp http://commits.kde.org/marble/2aa7a45e004a22287422b188655282fdd1e8b163 Should be fixed in master. |