Page MenuHomePhorge

Match default folders by regex with the dav backend
ClosedPublic

Authored by mollekopf on May 29 2024, 4:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 2, 6:48 PM
Unknown Object (File)
Mon, Oct 28, 3:33 PM
Unknown Object (File)
Sun, Oct 27, 2:24 PM
Unknown Object (File)
Fri, Oct 25, 5:00 PM
Unknown Object (File)
Mon, Oct 21, 3:00 PM
Unknown Object (File)
Fri, Oct 18, 4:10 PM
Unknown Object (File)
Tue, Oct 15, 12:53 PM
Unknown Object (File)
Sun, Oct 6, 3:46 PM
Subscribers
None

Details

Summary

This is required for outlook because a default folder is required.

Diff Detail

Repository
rS syncroton
Branch
master
Lint
Lint Skipped
Unit
No Test Coverage
Build Status
Buildable 47517
Build 18000: arc lint + arc unit

Event Timeline

mollekopf created this revision.

This will require something like this:

diff --git a/plugins/libkolab/lib/kolab_storage_dav.php b/plugins/libkolab/lib/kolab_storage_dav.php
index 92b4196e..91eda738 100644
--- a/plugins/libkolab/lib/kolab_storage_dav.php
+++ b/plugins/libkolab/lib/kolab_storage_dav.php
@@ -554,6 +554,7 @@ class kolab_storage_dav
      */
     public static function get_dav_type($type)
     {
+        $type = preg_replace('/\.(default)$/i', '', $type);
         $types = [
             'event' => 'VEVENT',
             'task'  => 'VTODO',

I'm not sure if we should avoid modifying the type in the first place, or translate back someplace else.

Don't include the .default suffix in the folder id

A better place to do this is in the libkolab plugin. See https://git.kolab.org/rRPK905644dc6c5e256c42f3a6a422601759ea0a47cd

This revision now requires changes to proceed.May 30 2024, 8:36 AM
This revision is now accepted and ready to land.May 30 2024, 9:14 AM