Sharing public folders with Z-Push


  • Kopano

    Hi mcostan,

    did you check z-push.log if the device attempts to synchronise that folder? Is there a way on your mobile device to force a folder sync?

    Manfred


  • Translator

    @manfred

    Apologies I should have sent you the log files to start with.

    For normal folders I see stuff like this:

    19/07/2018 23:08:05 [ 4700] [DEBUG] [#unknown] HierarchyCache: AddFolder() serverid: Ub4498 displayname: FollowUp
    19/07/2018 23:08:05 [ 4700] [DEBUG] [#unknown] ASDevice->GetFolderIdForBackendId(): generated new folderid 'Ufae70' for backend-folderid '9995a8356ba047cd800edeb80b480023106308000000'
    

    For the public ones I see this:

    19/07/2018 23:08:04 [ 4700] [DEBUG] [#unknown] ChangesMemoryWrapper->Config(AdditionalFolders) : process folder 'CaterAllen - '
    19/07/2018 23:08:04 [ 4700] [WARN] [#unknown] KopanoBackend->openMessageStore(''): No store found for this user
    

    And nothing else… What does “No store found for this user”?
    I created the folders myself under Public Folders…


  • Translator

    @mcostan

    Some more findings.

    I added a standard folder and I can see the following:

    19/07/2018 23:36:46 [10172] [DEBUG] [#unknown] HierarchyCache: AddFolder() serverid: U15797 displayname: abla2
    

    This appears soon in the mobile device.

    I then went and removed all permissions to the topmost public folder (It had my name specifically added in the permissions and I now see:

    9/07/2018 23:33:01 [ 8251] [DEBUG] [#unknown] ZPushAdmin::AdditionalFolderAdd(): added folder '36BlandfordRoad - ' to additional folders list of device '4e696e65434335424635444441343039' of user 'mrc' with status: true
    

    Except the folder never makes it to the mobile device…

    The device ID is indeed the one of the Nine mail program in the MDM list.


  • Translator

    I am out of ideas… The only thing that comes to my mind is whether I should try in Outlook 2016 and see if it makes it there, by enabling the same folders in the MDM plugin?


  • Kopano

    Hi @mcostan,

    did you try to add a public folder with z-push-admin? You have to specify SYSTEM as a store for a public folder.

    Running z-push-admin with -s flag provides more information on shared folders, e.g.

    z-push-admin -a list -u mrc -s
    

    Manfred


  • Translator

    @manfred

    I tried adding it with z-push with the following:

     z-push-admin -a addshared -u mrc -n 36BlandfordRoad -o SYSTEM -t email -f 9995a8356ba047cd800edeb80b4800238d4a00000000
    
    root@mrc-ubz64:~# z-push-admin -a list -u mrc
    
    Synchronized devices of user: mrc
    -----------------------------------------------------
    DeviceId:               androidc700440035
    Device type:            Android
    UserAgent:              Android/6.0-EAS-1.3
    Device Model:           Redmi Note 4
    Device IMEI:            863263032211641
    Device friendly name:   Redmi Note 4
    Device OS:              Android 6.0
    Device Operator:        Vectone  (23430)
    ActiveSync version:     14.1
    First sync:             2018-07-28 19:07
    Last sync:              2018-07-28 19:07
    Sync Period:            unlimited (0)
    Total folders:          256
    Short folder Ids:       Yes
    Synchronized folders:   1
    Synchronized data:      Emails
    Additional Folders:     1
            Folder name                    Store          Type     Origin     Synched
            36BlandfordRoad                SYSTEM         Email    Shared     Inactive (not yet synchronized or no permissions)
    Status:                 OK
    WipeRequest on:         not set
    WipeRequest by:         not set
    Wiped on:               not set
    Policy name:            default
    Attention needed:       No errors known
    
    

    The same behaviour is for both the standard Android client as well as the Nine email program on Android.

    Any help much appreciated. Right now the only way I have to access public folders is via k9mail and IMAP but it is terribly slow…


  • Kopano

    Hi @mcostan,

    in your last z-push-admin output you forgot the “-s” flag. See my previous post.
    According to this last output you have 256 folders, but only 1 is synced. Is this correct and intended?

    Providing just bits of information is not very helpful for me to debug. Post complete z-push.log after you add a shared folder and device syncs.

    Manfred


  • Translator

    @manfred

    So I got somewhere with this.

    When I add them with the comamnd line, the folders do appear in Nine after a while which I am very very happy about.

    the output of the z-push-admin -a list -u mrc -s is below for an example:

           Folder name:    Insurance
            Store:          SYSTEM
            Type:           Email
            Origin:         Shared
            Folder id:      9995a8356ba047cd800edeb80b480023f14a00000000
            Parent id:      0
            Synched:        Active
    

    However, when I add them via the MDM plugin they do not seem to appear, although it may just be that I have now added a lot of folders at once and I just need to let it syncronize.

    I noticed that for the ones added via the MDM plugin it comes up with the store empty like this:

          Folder name:    Bills - 
            Store:
            Type:           Email
            Origin:         Shared
            Folder id:      9995a8356ba047cd800edeb80b480023384b00000000
            Parent id:      0
            Synched:        Inactive (not yet synchronized or no permissions)
    

    Whether that would make any difference or not I have no idea.

    In any case I am very very happy with the current state as it is progress for me.

    Apologies for taking your time on this.


  • Kopano

    Hi mcostan,

    @mcostan said in Sharing public folders with Z-Push:

    However, when I add them via the MDM plugin they do not seem to appear, although it may just be that I have now added a lot of folders at once and I just need to let it syncronize.

    I noticed that for the ones added via the MDM plugin it comes up with the store empty like this:

          Folder name:    Bills - 
            Store:
            Type:           Email
            Origin:         Shared
            Folder id:      9995a8356ba047cd800edeb80b480023384b00000000
            Parent id:      0
            Synched:        Inactive (not yet synchronized or no permissions)
    

    Whether that would make any difference or not I have no idea.

    That doesn’t look right. It might be that a store goes missing somewhere or there is a bug. Without a store Z-Push won’t be able to open the folder.
    I suggest you open a new thread at https://forum.kopano.io/category/21/plugins-for-kopano-webapp with the link to this thread.

    Manfred


  • Translator

    @manfred

    Will do. I am glad we were able to get to a diagnosis of the problem. Very much appreciated.