<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>319135</bug_id>
          
          <creation_ts>2013-04-30 21:42:37 +0000</creation_ts>
          <short_desc>Umlauts in Category names are not handled correctly</short_desc>
          <delta_ts>2013-04-30 23:22:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kphotoalbum</product>
          <component>XML backend</component>
          <version>GIT master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Johannes Zarl-Zierl">johannes</reporter>
          <assigned_to name="KPhotoAlbum Bugs">kphotoalbum-bugs-null</assigned_to>
          <cc>usselmann.m</cc>
          
          <cf_commitlink>http://commits.kde.org/kphotoalbum/55340bc57cb49cf2ca529f1fede80ce178bdfd90</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1365378</commentid>
    <comment_count>0</comment_count>
    <who name="Johannes Zarl-Zierl">johannes</who>
    <bug_when>2013-04-30 21:42:37 +0000</bug_when>
    <thetext>When creating categories with umlauts, after saving umlauts are mangled in the resulting index.xml file.

Steps to reproduce:
1) start kphotoalbum --demo
2) Settings -&gt; configure KPA... -&gt; Categories -&gt; new Category &quot;Ü&quot;
3) Save Database and exit KPA
=&gt; the index.xml file contains &quot;_.FFFFFFDC&quot; instead of &quot;Ü&quot;
4) Reopen KPA
=&gt; The new category is displayed as &quot;ÿFFFFDC&quot;

Optional:
5) Save database again and exit KPA
=&gt; the index.xml contains &quot;_.FFFFFFFFFFFFDC&quot;
6) Reopen KPA
=&gt; the category is displayed as &quot;ÿFFFFFFFFFFDC&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1365381</commentid>
    <comment_count>1</comment_count>
    <who name="Manfred Usselmann">usselmann.m</who>
    <bug_when>2013-04-30 22:03:32 +0000</bug_when>
    <thetext>In addition, when categories are grouped the index.xml can not be opened any longer, because in the group definition at the end of the file the umlauts are not replaced.

Example:

At the beginning:
&lt;Category name=&quot;Schl_.FFFFFFFCsselbegriffe&quot;&gt; 

At the end:
 &lt;member-groups&gt;&lt;member category=&quot;Schlüsselbegriffe&quot;
 
To open the file everything needs to be renamed to &quot;Schlüsselbegriffe&quot;, but when it&apos;s saved again, the same situation occurs, the category name is changed back to Schl_.FFFFFFFCsselbegriffe.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1365383</commentid>
    <comment_count>2</comment_count>
      <attachid>79579</attachid>
    <who name="Johannes Zarl-Zierl">johannes</who>
    <bug_when>2013-04-30 22:15:19 +0000</bug_when>
    <thetext>Created attachment 79579
Stacktrace when opening a database with subcategories in an umlaut-category

Adding a member category to a category with an umlaut, KPA crashes when reopening the saved database.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1365390</commentid>
    <comment_count>3</comment_count>
    <who name="Johannes Zarl-Zierl">johannes</who>
    <bug_when>2013-04-30 23:22:05 +0000</bug_when>
    <thetext>Git commit 2abcb1cbe6a5a2d6b8d9da1344bd80dcf1f550b6 by Johannes Zarl.
Committed on 01/05/2013 at 00:58.
Pushed by johanneszarl into branch &apos;master&apos;.

Fix crash when member group category doesn&apos;t exist.

When the category of the member-group does not exist, a warning is
printed on the console and a matching category is created.

M  +7    -0    XMLDB/FileReader.cpp

http://commits.kde.org/kphotoalbum/2abcb1cbe6a5a2d6b8d9da1344bd80dcf1f550b6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1365391</commentid>
    <comment_count>4</comment_count>
    <who name="Johannes Zarl-Zierl">johannes</who>
    <bug_when>2013-04-30 23:22:06 +0000</bug_when>
    <thetext>Git commit 55340bc57cb49cf2ca529f1fede80ce178bdfd90 by Johannes Zarl.
Committed on 01/05/2013 at 01:20.
Pushed by johanneszarl into branch &apos;master&apos;.

Don&apos;t escape strings for xml attribute values.

M  +6    -2    XMLDB/FileWriter.cpp

http://commits.kde.org/kphotoalbum/55340bc57cb49cf2ca529f1fede80ce178bdfd90</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>79579</attachid>
            <date>2013-04-30 22:15:19 +0000</date>
            <delta_ts>2013-04-30 22:15:19 +0000</delta_ts>
            <desc>Stacktrace when opening a database with subcategories in an umlaut-category</desc>
            <filename>file_319135.txt</filename>
            <type>text/plain</type>
            <size>1447</size>
            <attacher name="Johannes Zarl-Zierl">johannes</attacher>
            
              <data encoding="base64">QXBwbGljYXRpb246IEtQaG90b0FsYnVtIChrcGhvdG9hbGJ1bSksIHNpZ25hbDogU2VnbWVudGF0
aW9uIGZhdWx0DQpVc2luZyBob3N0IGxpYnRocmVhZF9kYiBsaWJyYXJ5ICIvbGliL3g4Nl82NC1s
aW51eC1nbnUvbGlidGhyZWFkX2RiLnNvLjEiLg0KW0tDcmFzaCBIYW5kbGVyXQ0KIzUgIHZhbHVl
IChha2V5PTxzeW50aGV0aWMgcG9pbnRlcj4sIHRoaXM9MHg0OCkgYXQgL3Vzci9pbmNsdWRlL3F0
NC9RdENvcmUvcW1hcC5oOjUwMg0KIzYgIG9wZXJhdG9yW10gKGFrZXk9PHN5bnRoZXRpYyBwb2lu
dGVyPiwgdGhpcz0weDQ4KSBhdCAvdXNyL2luY2x1ZGUvcXQ0L1F0Q29yZS9xbWFwLmg6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