1
Contact Sharing Broke on 8517 to 8538 Update
Problem reported by Jay Dubb - 5/22/2023 at 5:46 AM
Known
This weekend we updated a server on 8517 to 8538 and it immediately broke (at a minimum) the sharing of a company contact list, shared to others from one account that maintains the list.  No idea if any other sharing broke, because it was a top priority to get the contact list back, so for expediency we decided to revert to the pre-update snapshot and sort it out later.  Comparing the before/after info we collected, it became apparent the reason the contacts disappeared from hundreds of company cellphones was that the list was no longer shared.

Anyone else see a similar breakage?  We're going to try the update again tonight, now that we know what to look for.
 

15 Replies

Reply to Thread
0
Brian Bjerring-Jensen Replied
I am curious. How do you share that in SM?
0
Jay Dubb Replied
We used the webmail interface to set up sharing.

There is a vendor list maintained in one user account, and shared to a 2nd account as read-only.  That 2nd account is added to our mobile device fleet as a CardDAV account, and that's how the list is distributed to many people (and kept fresh).  When the sharing broke, all devices with that account lost the list.
 
0
Andrew Barker Replied
Employee Post
In versions up to 8451, sharing a folder across a domain required setting up an account as the owner of the folder, like Jay descried. Build 8495 introduced public folders - folders that are owned by the domain and can be shared with specified users or groups. To create and manage public folders in SmarterMail, log in as a domain administrator and go to Domain Settings > Sharing. On the Public Folders card, you can create and manage folders that are owned by the domain. These folders can be accessed over each of the protocols using any account that has been granted sufficient permissions.

As for Jay's issue, I suspect it was caused by some changes we made to better enforce sharing permissions. In the lead-up to 8495, we realized that some protocols were not properly respecting read-only permissions. In some cases this was due to limitations in the protocol, and in other cases it was due to poor client-support for permissions related extensions to the protocol. We tried enforcing the permissions server-side to allow more protocols to see the data, but that tended to cause more problems. Because of that, we made the decision to only sync shared folders with full access on those protocols. At this time, I think that the only protocols which allow syncing read-only shares are MAPI and EWS.
Andrew Barker Software Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com
0
Jay Dubb Replied
So are you saying that, going forward, a contact list shared from User A to User B as read-only (and User B accessing with CardDAV on their mobile device) is a thing of the past?
0
Douglas Foster Replied
cardDav uses EWS.   Please open a ticket and update us with results. 
0
Andrew Barker Replied
Employee Post
Jay -

I just double checked, and it looks like sharing permissions are working for WebDAV connections. Based on the testing I just did, it looks like sharing is working for calendars and tasks. Unfortunately, I am having difficulty getting contact sharing to work with WebDAV right now. Based on that, I second what Douglas suggested about getting a ticket open on this.

Douglas -

CardDAV is part of the WebDAV protocol, which is separate from EWS.
Andrew Barker Software Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com
2
Douglas Foster Replied
Thank you for the summary of your technical obstacles, but a more thorough statement is needed.
All of us need a clear statement of what configurations are not supported for contact sharing. 
1
Gabriele Maoret - SERSIS Replied
+1 to Douglas Foster for a more clear statement...

Gabriele Maoret - Head of SysAdmins at SERSIS Currently manages 6 SmarterMail installations (1 in the cloud for SERSIS which provides services to a few hundred third-party email domains + 5 on-premise for customers who prefer to have their mail server in-house)
0
Andrew Barker Replied
Employee Post
Here's a quick summary of how sharing should currently work with each of the protocols:

  • EWS and MAPI support public and user folder sharing for all available folder types. The one exception I am aware of is that calendars shared with Availability permission are not synced over EWS since the clients won't display any events on such calendars.
  • WebDAV (CardDAV/CalDAV) should support public and user folder sharing for calendars, tasks, and contacts. As I noted in my last post, it looks like user shared contact folders are not working right now. Public contact folders, as well as all shared calendar and task folders, appear to be working as expected.
  • IMAP supports shared email folders with Manage or Owner permissions. Folders shared with Read Only permissions are not synced over IMAP due to the technical limitations I mentioned previously.
  • EAS supports public and user folder sharing for all available folder types when the folder is shared with Manage or Owner permissions. Folders shared with Read Only permissions are not synced over EAS due to the technical limitations I mentioned previously.
Andrew Barker Software Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com
3
Douglas Foster Replied
Thank you for the update.   A rather big "oops" that this was not in the release notes for any recent version.

Even when listed, the release notes tend to be so cryptic that one can miss the significance of some entries.   For issues like this one, the release notes should include a link to a more detailed article on your website.   The link will help to highlight that the change is significant and a well written KB article will help to answer questions that the change raises.   For example, this is what you provided on a recent major improvement:

Build 8495 (Apr 5, 2023)
Added: Support for attachments across email, calendar appointments, notes, contacts, and tasks that can sync across MAPI & EWS, EAS, and WebDAV.

But here is what I wish you had provided:

Build 8495 (Apr 5, 2023)
Added: Support for attachments across email, calendar appointments, notes, contacts, and tasks that can sync across MAPI & EWS, EAS, and WebDAV.

Since this particuar linked article is long, a # tag to jump to the relevant section would improve the link even more.

Doug Foster


1
Douglas Foster Replied
More questoins about the limitations to EAS:

Assume:  User x has read-only access to shared Calendar C, and she uses ActiveSync to connect her phone to her emal account.
  • Will the shared calendar appear, but be empty, or will it not appear?   
  • Will she see any alarms on her phone about the synchronization failure?   
  • Will synchronziation failures cause performance issues or log bloat?
The ideal would be for the shared calendar to be invisible, but I am guessing that invisible is not possible.

It sounds like I should encourge my users to migrate from EAS to EWS.   I assume that it is possible on IPhone.   Does anyone know of viable options for EWS on Android?
0
Gabriele Maoret - SERSIS Replied
+1 (again...)
Gabriele Maoret - Head of SysAdmins at SERSIS Currently manages 6 SmarterMail installations (1 in the cloud for SERSIS which provides services to a few hundred third-party email domains + 5 on-premise for customers who prefer to have their mail server in-house)
0
Andrew Barker Replied
Employee Post
Douglas,

In the scenario you described, the read-only calendar is hidden from the sync. Since the calendar is hidden by the server, there are no synchronization errors on the device or in the EAS logs.

For user-shared folders that have Manage or Owner permissions, they are prefixed with the owner's username when synced over EAS, IMAP and WebDAV. For example, if userA shares "Calendar 2" with userB, granting them Manage permissions, it will sync to userB's EAS client as "userA - Calendar 2". That way, if userB has their own "Calendar 2", it is easy for them to differentiate between their own folder and the one shared by userA.

As for switching users to EWS, that may work. One thing to keep in mind is that EWS clients don't automatically connect to shares and additional steps need to be taken to sync shared folders in an EWS client. For example, Connecting to Shared Resources in eM Client via EWS details how to sync shared folders in eM Client. Another thing to consider is that some EWS clients, such as the MacOS clients, don't include support for connecting to shared folders.
Andrew Barker Software Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com
0
Jay Dubb Replied
@Andrew -- Our circumstance revolves specifically around contact sharing with CardDAV.  That's the only reason SmarterMail was purchased for this particular company.  They already have Exchange 365 but needed a way to regularly maintain and publish a corporate vendor contact list to a fleet of smartphones that didn't involve yet another 365 plug-in subscription.  SmarterMail was the perfect solution with CardDAV because iPhones natively support CardDAV.

Assuming this bug is found and fixed, is it the expectation that the shared contact list (shared from User A to User B as read-only) will be accessible to User B again with CardDAV?  Or has that all changed now?
 
1
Andrew Barker Replied
Employee Post
Jay,

We expect that the contact list in your scenario should be accessible to user B using Card DAV once this bug is resolved.
Andrew Barker Software Developer SmarterTools Inc. (877) 357-6278 www.smartertools.com

Reply to Thread