[Akonadi] [Bug 397451] New: DavGroupwareResource: Failed to parse item data for XML with error message.

quazgar bugzilla_noreply at kde.org
Tue Aug 14 15:08:03 BST 2018


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

            Bug ID: 397451
           Summary: DavGroupwareResource: Failed to parse item data for
                    XML with error message.
           Product: Akonadi
           Version: 5.7.3
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: DAV Resource
          Assignee: kdepim-bugs at kde.org
          Reporter: quazgar at posteo.de
  Target Milestone: ---

The CalDAV parser seems to fail when the DAV object contains just an error
message, the output by akonadi is:

parse error from icalcomponent_new_from_string. string= "<?xml version=\"1.0\"
encoding=\"utf-8\"?>\n<d:error xmlns:d=\"DAV:\"
xmlns:s=\"http://sabredav.org/ns\">\n 
<s:exception>Sabre\\DAV\\Exception\\NotFound</s:exception>\n 
<s:message>Calendar object not found</s:message>\n</d:error>\n"
org.kde.pim.davresource: DavGroupwareResource::onItemFetched: Failed to parse
item data. 
"https://nextcloud.goltzsche.net/remote.php/caldav/calendars/daniel/caosdb_shared_by_henrik/1534254381.R191.ics

This just happened for me for data from a NextCloud installation:

<?xml version="1.0" encoding="UTF-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
  <s:exception>Sabre\DAV\Exception\NotFound</s:exception>
  <s:message>Calendar object not found</s:message>
</d:error>

Instead of failing and displaying an error in the Akonadi output, it should
maybe either ignore the exception, raise just a warning or display the included
message to the user.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list