[Tickets #14197] Nag_Driver_Kolab stores parent_id strings base64 encoded (should be: unencoded)

noreply at bugs.horde.org noreply at bugs.horde.org
Tue Dec 15 20:45:40 UTC 2015


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/14197
------------------------------------------------------------------------------
  Ticket             | 14197
  Created By         | mike.gabriel at das-netzwerkteam.de
  Summary            | Nag_Driver_Kolab stores parent_id strings base64
                     | encoded (should be: unencoded)
  Queue              | Nag
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 3. High
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


mike.gabriel at das-netzwerkteam.de (2015-12-15 20:45) wrote:

The Nag_Driver_Kolab breaks the Kolab format specification concerning  
the parent parameter.

The parent id of a task object should be stored as a UID hash when  
viewing the kolab.xml attachment of the Kolab storage object (i.e., a  
mail with one .xml file as attachment).

However, I see the UID hash stored base64 encoded:

"""
   <uid>5256723d-68a8-46b4-b349-07e24e2ecc62</uid>
   <body></body>
   <categories></categories>
   <creation-date>2015-12-15T19:38:42Z</creation-date>
   <last-modification-date>2015-12-15T19:38:42Z</last-modification-date>
   <sensitivity>public</sensitivity>
   <product-id>Horde_Kolab_Format_Xml-2.0.7 (api version: 1)</product-id>
   <summary>PALMER: Spracheinstellungen (deutsche Tastatur)</summary>
   <organizer>
     <display-name></display-name>
     <smtp-address></smtp-address>
     <uid></uid>
   </organizer>
   <alarm>0</alarm>
   <priority>2</priority>
   <completed>100</completed>
   <status>completed</status>
   vvvvvvvvvvvvvvvvvvvvv
   <parent>NTI0OTc1MTMtYjc1NC00OTMwLWE2YTktNGUwOTRlMmVjYzYy</parent>
   ^^^^^^^^^^^^^^^^^^^^
   <horde-estimate>0.00</horde-estimate>
   <horde-alarm-methods>a:0:{}</horde-alarm-methods>
"""

The challenge now is:

   * storing parent ids as non-base64 encoded hash (7-bit encoding, sort of)
   * recognize parent ids that have been stored with base64 encoding,  
decode them properly
   * store base64-encoded parent ids as non-base64-encoded UID hash  
with next save operation

I am working on a patch...


Kolab Format v3 (Site currently down):
https://wiki.kolab.org/Kolab_3.0_Storage_Format

Kolab Format v2:
https://kolab.org/history/kolabformat/c312





More information about the bugs mailing list