Bug 309314

Summary: Parser does not escape XML-unsafe characters
Product: [Frameworks and Libraries] libkgapi Reporter: karaluh <karaluh>
Component: contactsAssignee: Daniel Vrátil <dvratil>
Status: RESOLVED FIXED    
Severity: normal CC: kdepim-bugs
Priority: NOR    
Version: 0.4.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Other   
Latest Commit: Version Fixed In: 0.4.4

Description karaluh 2012-10-31 13:42:45 UTC
As in summary, the full error is:
akonadi_googlecontacts_resource_1: Bad request.

Reproducible: Always
Comment 1 karaluh 2012-10-31 14:27:45 UTC
(In reply to comment #0)
> As in summary, the full error is:
> akonadi_googlecontacts_resource_1: Bad request.
> 
> Reproducible: Always

This contact has ! & and / characters in "Notes" field, I don't know which one triggers the bug.
Comment 2 Daniel Vrátil 2012-10-31 14:59:29 UTC
*** Bug 309318 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Vrátil 2012-10-31 15:01:35 UTC
Tested, looks like &, < and > in any field cause the request to fail.
Comment 4 Daniel Vrátil 2012-10-31 15:41:32 UTC
Git commit 3d834e6fba8cd68b0226b1eb8c98d42656f96a71 by Dan Vrátil.
Committed on 31/10/2012 at 16:37.
Pushed by dvratil into branch 'LibKGAPI/0.4'.

Escape HTML-unsafe characters in Contacts XML serializer
FIXED-IN: 0.4.4

M  +32   -29   libkgapi/services/contacts.cpp

http://commits.kde.org/akonadi-google/3d834e6fba8cd68b0226b1eb8c98d42656f96a71