[SOLVED] z-push-2 OOF - what have I got wrong?

Add new and modify functionalities to Z-push

[SOLVED] z-push-2 OOF - what have I got wrong?

Postby liverpoolfcfan » Tue Jun 26, 2012 11:45 am

I am trying to map OOF settings in the zimbra backend to the new z-push-2 objects.

Please see the log file below for how I constructed the SyncOOF and SyncOOFMessage objects.

I am getting an error on the phone - as the WBXML streaming out to the phone is not complete.

Can you tell me what I have wrong in the objects that is causing the Encode to fail. Or is there a log somewhere that will tell me that ?

Code: Select all
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] OOF Message Int [I will be out of the office on Friday ]
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] OOF Switch Enabled [1]
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] OOF UntilDate [20120727230000Z]
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] OOF FromDate [20120624230000Z]
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] START Date4ActiveSync { date = 20120624T230000Z; tz = UTC; adjust4Utc = 1; allDay =  }
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] END Date4ActiveSync { ts = 1340578800 }
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] START Date4ActiveSync { date = 20120727T230000Z; tz = UTC; adjust4Utc = 1; allDay =  }
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] END Date4ActiveSync { ts = 1343430000 }
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] OOF State ? [2]
26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] Final OOF SyncOOF Object
(
    [oofstate] => 2
    [starttime] => 1340578800
    [endtime] => 1343430000
    [oofmessage] => Array
        (
            [0] => SyncOOFMessage Object
                (
                    [appliesToInternal] => 1
                    [appliesToExternal] =>
                    [appliesToExternalUnknown] =>
                    [enabled] => 1
                    [replymessage] => I will be out of the office on Friday
                    [bodytype] => Text
                    [unsetVars:protected] => Array
                        (
                        )

                    [mapping:protected] => Array
                        (
                            [Settings:AppliesToInternal] => Array
                                (
                                    [1] => appliesToInternal
                                    [3] => 6
                                )

                            [Settings:AppliesToExternalKnown] => Array
                                (
                                    [1] => aplliesToExternal
                                    [3] => 6
                                )

                            [Settings:AppliesToExternalUnknown] => Array
                                (
                                    [1] => aplliesToExternalUnknown
                                    [3] => 6
                                )

                            [Settings:Enabled] => Array
                                (
                                    [1] => enabled
                                )

                            [Settings:ReplyMessage] => Array
                                (
                                    [1] => replymessage
                                )

                            [Settings:BodyType] => Array
                                (
                                    [1] => bodytype
                                    [6] => Array
                                        (
                                            [10] => Array
                                                (
                                                    [0] => HTML
                                                    [1] => Text
                                                )

                                        )

                                )

                        )

                    [flags] =>
                    [content] =>
                )

            [1] => SyncOOFMessage Object
                (
                    [appliesToInternal] =>
                    [appliesToExternal] => 1
                    [appliesToExternalUnknown] =>
                    [enabled] => 1
                    [replymessage] => I will be out of the office on Friday
                    [bodytype] => Text
                    [unsetVars:protected] => Array
                        (
                        )

                    [mapping:protected] => Array
                        (
                            [Settings:AppliesToInternal] => Array
                                (
                                    [1] => appliesToInternal
                                    [3] => 6
                                )

                            [Settings:AppliesToExternalKnown] => Array
                                (
                                    [1] => aplliesToExternal
                                    [3] => 6
                                )

                            [Settings:AppliesToExternalUnknown] => Array
                                (
                                    [1] => aplliesToExternalUnknown
                                    [3] => 6
                                )

                            [Settings:Enabled] => Array
                                (
                                    [1] => enabled
                                )

                            [Settings:ReplyMessage] => Array
                                (
                                    [1] => replymessage
                                )

                            [Settings:BodyType] => Array
                                (
                                    [1] => bodytype
                                    [6] => Array
                                        (
                                            [10] => Array
                                                (
                                                    [0] => HTML
                                                    [1] => Text
                                                )

                                        )

                                )

                        )

                    [flags] =>
                    [content] =>
                )

            [2] => SyncOOFMessage Object
                (
                    [appliesToInternal] =>
                    [appliesToExternal] =>
                    [appliesToExternalUnknown] => 1
                    [enabled] => 1
                    [replymessage] => I will be out of the office on Friday
                    [bodytype] => Text
                    [unsetVars:protected] => Array
                        (
                        )

                    [mapping:protected] => Array
                        (
                            [Settings:AppliesToInternal] => Array
                                (
                                    [1] => appliesToInternal
                                    [3] => 6
                                )

                            [Settings:AppliesToExternalKnown] => Array
                                (
                                    [1] => aplliesToExternal
                                    [3] => 6
                                )

                            [Settings:AppliesToExternalUnknown] => Array
                                (
                                    [1] => aplliesToExternalUnknown
                                    [3] => 6
                                )

                            [Settings:Enabled] => Array
                                (
                                    [1] => enabled
                                )

                            [Settings:ReplyMessage] => Array
                                (
                                    [1] => replymessage
                                )

                            [Settings:BodyType] => Array
                                (
                                    [1] => bodytype
                                    [6] => Array
                                        (
                                            [10] => Array
                                                (
                                                    [0] => HTML
                                                    [1] => Text
                                                )

                                        )

                                )

                        )

                    [flags] =>
                    [content] =>
                )

        )

    [Status] => 1
    [unsetVars:protected] => Array
        (
        )

    [mapping:protected] => Array
        (
            [Settings:OofState] => Array
                (
                    [1] => oofstate
                    [6] => Array
                        (
                            [0] => Array
                                (
                                    [10] => Array
                                        (
                                            [0] => 0
                                            [1] => 1
                                            [2] => 2
                                        )

                                )

                        )

                )

            [Settings:StartTime] => Array
                (
                    [1] => startime
                    [3] => 1
                )

            [Settings:EndTime] => Array
                (
                    [1] => endtime
                    [3] => 1
                )

            [Settings:OofMessage] => Array
                (
                    [1] => oofmessage
                    [3] => SyncOOFMessage
                    [4] => 7
                    [2] => Settings:OofMessage
                )

            [Settings:BodyType] => Array
                (
                    [1] => bodytype
                    [6] => Array
                        (
                            [10] => Array
                                (
                                    [0] => HTML
                                    [1] => Text
                                )

                        )

                )

            [Settings:PropertyStatus] => Array
                (
                    [1] => Status
                    [3] => 5
                )

        )

    [flags] =>
    [content] =>
)

26/06/2012 10:36:37 [ 5200] [myUser] [DEBUG] END Settings
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O   <Settings:Oof>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O    <Settings:Status>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O    1
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O    </Settings:Status>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O    <Settings:Get>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O     <Settings:OofState>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O     2
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O     </Settings:OofState>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O     <Settings:EndTime>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O     20120727T230000Z
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O     </Settings:EndTime>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O     <Settings:OofMessage/>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O    </Settings:Get>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O   </Settings:Oof>
26/06/2012 10:36:37 [ 5200] [myUser] [WBXML] O  </Settings:Settings>
Last edited by liverpoolfcfan on Thu Jun 28, 2012 2:44 pm, edited 1 time in total.
liverpoolfcfan
 
Posts: 303
Joined: Mon Feb 22, 2010 2:47 pm

Re: z-push-2 OOF - what have I got wrong?

Postby liverpoolfcfan » Thu Jun 28, 2012 2:43 pm

Answering my own post - pretty much nothing wrong.

See linked thread http://z-push.sourceforge.net/phpbb/viewtopic.php?f=7&t=2088 for z-push bugs that were responsible for the problem.
liverpoolfcfan
 
Posts: 303
Joined: Mon Feb 22, 2010 2:47 pm


Return to Developer Board

Who is online

Users browsing this forum: No registered users and 1 guest

cron