6.0.0-beta1
7/3/25

[#9217] SyncMl Fails - is_integer issue
Summary SyncMl Fails - is_integer issue
Queue Horde Base
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners mrubinsk (at) horde (dot) org
Requester d-fens (at) 00010111 (dot) de
Created 09/03/2010 (5417 days ago)
Due
Updated 09/05/2010 (5415 days ago)
Assigned 09/03/2010 (5417 days ago)
Resolved 09/05/2010 (5415 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch Yes

History
09/05/2010 09:00:16 PM Michael Rubinsky State ⇒ Resolved
 
09/05/2010 08:50:15 PM d-fens (at) 00010111 (dot) de Comment #12 Reply to this comment
yes, this fixed the issue for me
09/05/2010 08:34:24 PM Michael Rubinsky Comment #11
Assigned to Michael Rubinsky
Reply to this comment
Does this help?
09/05/2010 08:24:48 PM d-fens (at) 00010111 (dot) de Comment #9 Reply to this comment
in lib/SyncML/Sync.php , function SyncML_Sync needs explicit cats to int
09/05/2010 08:05:01 PM d-fens (at) 00010111 (dot) de Comment #8 Reply to this comment
finally!

would be a great idea to add full exception content to the log for 
syncml calls as they aren't viewed in a browser

had to change in lib/Horde.php line 137
self::logMessage(print_r(html_entity_decode($errortext), true), 'EMERG');

to get it

2010-09-05T22:00:12+02:00 EMERG: HORDE [kronolith] <h1>A fatal error 
has occurred</h1><h3>The timestamp needs to be an integer!</h3><div 
id="backtrace"><pre> 1. Horde_Rpc_Syncml->getResponse() 
/var/www/catchall/htdocs/horde/rpc.php:164
  2. SyncML_ContentHandler->process() 
/var/www/catchall/htdocs/horde/lib/Horde/Rpc/Syncml.php:56
  3. xml_parse() /var/www/catchall/htdocs/horde/lib/SyncML.php:144
  4. SyncML_ContentHandler->_endElement()
  5. SyncML_ContentHandler->endElement() 
/var/www/catchall/htdocs/horde/lib/SyncML.php:233
  6. SyncML_ContentHandler->handleCommand() 
/var/www/catchall/htdocs/horde/lib/SyncML.php:320
  7. SyncML_Command_Final->handleCommand() 
/var/www/catchall/htdocs/horde/lib/SyncML.php:450
  8. SyncML_State->handleFinal() 
/var/www/catchall/htdocs/horde/lib/SyncML/Command/Final.php:48
  9. SyncML_Sync->handleFinal() 
/var/www/catchall/htdocs/horde/lib/SyncML/State.php:408
10. SyncML_Sync->createSyncOutput() 
/var/www/catchall/htdocs/horde/lib/SyncML/Sync.php:631
11. SyncML_Sync->_retrieveChanges() 
/var/www/catchall/htdocs/horde/lib/SyncML/Sync.php:387
12. SyncML_Backend_Horde->getServerChanges() 
/var/www/catchall/htdocs/horde/lib/SyncML/Sync.php:587
13. Horde_Registry_Caller->listBy() 
/var/www/catchall/htdocs/horde/lib/SyncML/Backend/Horde.php:149
14. Horde_Registry_Caller->__call() 
/var/www/catchall/htdocs/horde/lib/SyncML/Backend/Horde.php:149
15. Horde_Registry->call() 
/var/www/catchall/htdocs/horde/lib/Horde/Registry/Caller.php:41
16. Horde_Registry->callByPackage() 
/var/www/catchall/htdocs/horde/lib/Horde/Registry.php:853
17. call_user_func_array() 
/var/www/catchall/htdocs/horde/lib/Horde/Registry.php:894
18. Kronolith_Api->listBy()
19. Horde_History->getByTimestamp() 
/var/www/catchall/htdocs/horde/kronolith/lib/Api.php:500
</pre></div><h3>Details</h3><h4>The full error message is logged in 
Horde's log file, and is shown below only to administrators. 
Non-administrative users will not see error details.</h4><div 
id="details"><pre>InvalidArgumentException Object
(
     [message:protected] => The timestamp needs to be an integer!
     [string:private] =>
     [code:protected] => 0
     [file:protected] => /var/www/catchall/htdocs/horde/lib/Horde/History.php
     [line:protected] => 201
     [trace:private] => Array
         (
             [0] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/kronolith/lib/Api.php
                     [line] => 500
                     [function] => getByTimestamp
                     [class] => Horde_History
                     [type] => ->
                     [args] => Array
                         (
                             [0] => >
                             [1] => 1283715483
                             [2] => Array
                                 (
                                     [0] => Array
                                         (
                                             [op] => =
                                             [field] => action
                                             [value] => add
                                         )

                                     [1] => Array
                                         (
                                             [op] => <
                                             [field] => ts
                                             [value] => 1283716811
                                         )

                                 )

                             [3] => kronolith:xxx@xxx.xx
                         )

                 )

             [1] => Array
                 (
                     [function] => listBy
                     [class] => Kronolith_Api
                     [type] => ->
                     [args] => Array
                         (
                             [0] => add
                             [1] => 1283715483
                             [2] =>
                             [3] => 1283716811
                         )

                 )

             [2] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/Horde/Registry.php
                     [line] => 894
                     [function] => call_user_func_array
                     [args] => Array
                         (
                             [0] => Array
                                 (
                                     [0] => Kronolith_Api Object
                                         (
                                             [links] => Array
                                                 (
                                                     [show] => 
%application%/event.php?calendar=|calendar|&eventID=|event|&uid=|uid|
                                                 )

                                             [noPerms] => Array
                                                 (
                                                 )

                                             [disabled] => Array
                                                 (
                                                 )

                                         )

                                     [1] => listBy
                                 )

                             [1] => Array
                                 (
                                     [0] => add
                                     [1] => 1283715483
                                     [2] =>
                                     [3] => 1283716811
                                 )

                         )

                 )

             [3] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/Horde/Registry.php
                     [line] => 853
                     [function] => callByPackage
                     [class] => Horde_Registry
                     [type] => ->
                     [args] => Array
                         (
                             [0] => kronolith
                             [1] => listBy
                             [2] => Array
                                 (
                                     [0] => add
                                     [1] => 1283715483
                                     [2] =>
                                     [3] => 1283716811
                                 )

                         )

                 )

             [4] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/Horde/Registry/Caller.php
                     [line] => 41
                     [function] => call
                     [class] => Horde_Registry
                     [type] => ->
                     [args] => Array
                         (
                             [0] => calendar/listBy
                             [1] => Array
                                 (
                                     [0] => add
                                     [1] => 1283715483
                                     [2] =>
                                     [3] => 1283716811
                                 )

                         )

                 )

             [5] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/SyncML/Backend/Horde.php
                     [line] => 149
                     [function] => __call
                     [class] => Horde_Registry_Caller
                     [type] => ->
                     [args] => Array
                         (
                             [0] => listBy
                             [1] => Array
                                 (
                                     [0] => add
                                     [1] => 1283715483
                                     [2] =>
                                     [3] => 1283716811
                                 )

                         )

                 )

             [6] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/SyncML/Backend/Horde.php
                     [line] => 149
                     [function] => listBy
                     [class] => Horde_Registry_Caller
                     [type] => ->
                     [args] => Array
                         (
                             [0] => add
                             [1] => 1283715483
                             [2] =>
                             [3] => 1283716811
                         )

                 )

             [7] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/SyncML/Sync.php
                     [line] => 587
                     [function] => getServerChanges
                     [class] => SyncML_Backend_Horde
                     [type] => ->
                     [args] => Array
                         (
                             [0] => events
                             [1] => 1283715483
                             [2] => 1283716811
                             [3] => Array
                                 (
                                 )

                             [4] => Array
                                 (
                                 )

                             [5] => Array
                                 (
                                 )

                         )

                 )

             [8] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/SyncML/Sync.php
                     [line] => 387
                     [function] => _retrieveChanges
                     [class] => SyncML_Sync
                     [type] => ->
                     [args] => Array
                         (
                             [0] => events
                             [1] => Array
                                 (
                                 )

                             [2] => Array
                                 (
                                 )

                             [3] => Array
                                 (
                                 )

                         )

                 )

             [9] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/SyncML/Sync.php
                     [line] => 631
                     [function] => createSyncOutput
                     [class] => SyncML_Sync
                     [type] => ->
                     [args] => Array
                         (
                             [0] => SyncML_XMLOutput Object
                                 (
                                     [_msg_CmdID] => 4
                                     [_output] => 
XML_WBXML_ContentHandler Object
                                         (
                                             [_currentUri] => 
XML_WBXML_LifoQueue Object
                                                 (
                                                     [_queue] => Array
                                                         (
                                                             [0] => 
syncml:syncml1.2
                                                             [1] => 
syncml:syncml1.2
                                                         )

                                                 )

                                             [_output] => <SyncML 
xmlns="syncml:syncml1.2"><SyncHdr><VerDTD>1.2</VerDTD><VerProto>SyncML/1.2</VerProto><SessionID>1283716810</SessionID><MsgID>2</MsgID><Target><LocURI>aku-1283546595</LocURI><LocName>xxx@xxx.xx</LocName></Target><Source><LocURI>http://xxx.xx/horde/rpc.php</LocURI></Source><RespURI>http://xxx.xx/horde/rpc.php</RespURI><Meta><MaxMsgSize xmlns="syncml:metinf">1000000000</MaxMsgSize><MaxObjSize 
xmlns="syncml:metinf">1000000000</MaxObjSize></Meta></SyncHdr><SyncBody><Status><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><TargetRef>http://xxx.xx/horde/rpc.php</TargetRef><SourceRef>aku-1283546595</SourceRef><Data>200</Data></Status><Status><CmdID>2</CmdID><MsgRef>2</MsgRef><CmdRef>1</CmdRef><Cmd>Results</Cmd><SourceRef>./devinf12</SourceRef><Data>200</Data></Status><Status><CmdID>3</CmdID><MsgRef>2</MsgRef><CmdRef>3</CmdRef><Cmd>Sync</Cmd><TargetRef>events</TargetRef><SourceRef>calendar</SourceRef><Data>200</Data></Status>
                                             [_opaqueHandler] =>
                                             [_charset] => UTF-8
                                             [_wbxmlVersion] => 2
                                         )

                                     [_uri] => syncml:syncml1.2
                                     [_uriMeta] => syncml:metinf
                                 )

                         )

                 )

             [10] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/SyncML/State.php
                     [line] => 408
                     [function] => handleFinal
                     [class] => SyncML_Sync
                     [type] => ->
                     [args] => Array
                         (
                             [0] => SyncML_XMLOutput Object
                                 (
                                     [_msg_CmdID] => 4
                                     [_output] => 
XML_WBXML_ContentHandler Object
                                         (
                                             [_currentUri] => 
XML_WBXML_LifoQueue Object
                                                 (
                                                     [_queue] => Array
                                                         (
                                                             [0] => 
syncml:syncml1.2
                                                             [1] => 
syncml:syncml1.2
                                                         )

                                                 )

                                             [_output] => <SyncML 
xmlns="syncml:syncml1.2"><SyncHdr><VerDTD>1.2</VerDTD><VerProto>SyncML/1.2</VerProto><SessionID>1283716810</SessionID><MsgID>2</MsgID><Target><LocURI>aku-1283546595</LocURI><LocName>xxx@xxx.xx</LocName></Target><Source><LocURI>http://xxx.xx/horde/rpc.php</LocURI></Source><RespURI>http://xxx.xx/horde/rpc.php</RespURI><Meta><MaxMsgSize xmlns="syncml:metinf">1000000000</MaxMsgSize><MaxObjSize 
xmlns="syncml:metinf">1000000000</MaxObjSize></Meta></SyncHdr><SyncBody><Status><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><TargetRef>http://xxx.xx/horde/rpc.php</TargetRef><SourceRef>aku-1283546595</SourceRef><Data>200</Data></Status><Status><CmdID>2</CmdID><MsgRef>2</MsgRef><CmdRef>1</CmdRef><Cmd>Results</Cmd><SourceRef>./devinf12</SourceRef><Data>200</Data></Status><Status><CmdID>3</CmdID><MsgRef>2</MsgRef><CmdRef>3</CmdRef><Cmd>Sync</Cmd><TargetRef>events</TargetRef><SourceRef>calendar</SourceRef><Data>200</Data></Status>
                                             [_opaqueHandler] =>
                                             [_charset] => UTF-8
                                             [_wbxmlVersion] => 2
                                         )

                                     [_uri] => syncml:syncml1.2
                                     [_uriMeta] => syncml:metinf
                                 )

                             [1] =>
                         )

                 )

             [11] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/SyncML/Command/Final.php
                     [line] => 48
                     [function] => handleFinal
                     [class] => SyncML_State
                     [type] => ->
                     [args] => Array
                         (
                             [0] => SyncML_XMLOutput Object
                                 (
                                     [_msg_CmdID] => 4
                                     [_output] => 
XML_WBXML_ContentHandler Object
                                         (
                                             [_currentUri] => 
XML_WBXML_LifoQueue Object
                                                 (
                                                     [_queue] => Array
                                                         (
                                                             [0] => 
syncml:syncml1.2
                                                             [1] => 
syncml:syncml1.2
                                                         )

                                                 )

                                             [_output] => <SyncML 
xmlns="syncml:syncml1.2"><SyncHdr><VerDTD>1.2</VerDTD><VerProto>SyncML/1.2</VerProto><SessionID>1283716810</SessionID><MsgID>2</MsgID><Target><LocURI>aku-1283546595</LocURI><LocName>xxx@xxx.xx</LocName></Target><Source><LocURI>http://xxx.xx/horde/rpc.php</LocURI></Source><RespURI>http://xxx.xx/horde/rpc.php</RespURI><Meta><MaxMsgSize xmlns="syncml:metinf">1000000000</MaxMsgSize><MaxObjSize 
xmlns="syncml:metinf">1000000000</MaxObjSize></Meta></SyncHdr><SyncBody><Status><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><TargetRef>http://xxx.xx/horde/rpc.php</TargetRef><SourceRef>aku-1283546595</SourceRef><Data>200</Data></Status><Status><CmdID>2</CmdID><MsgRef>2</MsgRef><CmdRef>1</CmdRef><Cmd>Results</Cmd><SourceRef>./devinf12</SourceRef><Data>200</Data></Status><Status><CmdID>3</CmdID><MsgRef>2</MsgRef><CmdRef>3</CmdRef><Cmd>Sync</Cmd><TargetRef>events</TargetRef><SourceRef>calendar</SourceRef><Data>200</Data></Status>
                                             [_opaqueHandler] =>
                                             [_charset] => UTF-8
                                             [_wbxmlVersion] => 2
                                         )

                                     [_uri] => syncml:syncml1.2
                                     [_uriMeta] => syncml:metinf
                                 )

                             [1] =>
                         )

                 )

             [12] => Array
                 (
                     [file] => /var/www/catchall/htdocs/horde/lib/SyncML.php
                     [line] => 450
                     [function] => handleCommand
                     [class] => SyncML_Command_Final
                     [type] => ->
                     [args] => Array
                         (
                             [0] =>
                         )

                 )

             [13] => Array
                 (
                     [file] => /var/www/catchall/htdocs/horde/lib/SyncML.php
                     [line] => 320
                     [function] => handleCommand
                     [class] => SyncML_ContentHandler
                     [type] => ->
                     [args] => Array
                         (
                             [0] => SyncML_Command_Final Object
                                 (
                                     [_cmdName] => Final
                                     [_cmdID] =>
                                     [_stack] => Array
                                         (
                                         )

                                     [_chars] =>
                                     [_outputHandler] => 
SyncML_XMLOutput Object
                                         (
                                             [_msg_CmdID] => 4
                                             [_output] => 
XML_WBXML_ContentHandler Object
                                                 (
                                                     [_currentUri] => 
XML_WBXML_LifoQueue Object
                                                         (
                                                             [_queue] => Array
                                                                 (
                                                                     
[0] => syncml:syncml1.2
                                                                     
[1] => syncml:syncml1.2
                                                                 )

                                                         )

                                                     [_output] => 
<SyncML 
xmlns="syncml:syncml1.2"><SyncHdr><VerDTD>1.2</VerDTD><VerProto>SyncML/1.2</VerProto><SessionID>1283716810</SessionID><MsgID>2</MsgID><Target><LocURI>aku-1283546595</LocURI><LocName>xxx@xxx.xx</LocName></Target><Source><LocURI>http://xxx.xx/horde/rpc.php</LocURI></Source><RespURI>http://xxx.xx/horde/rpc.php</RespURI><Meta><MaxMsgSize xmlns="syncml:metinf">1000000000</MaxMsgSize><MaxObjSize 
xmlns="syncml:metinf">1000000000</MaxObjSize></Meta></SyncHdr><SyncBody><Status><CmdID>1</CmdID><MsgRef>2</MsgRef><CmdRef>0</CmdRef><Cmd>SyncHdr</Cmd><TargetRef>http://xxx.xx/horde/rpc.php</TargetRef><SourceRef>aku-1283546595</SourceRef><Data>200</Data></Status><Status><CmdID>2</CmdID><MsgRef>2</MsgRef><CmdRef>1</CmdRef><Cmd>Results</Cmd><SourceRef>./devinf12</SourceRef><Data>200</Data></Status><Status><CmdID>3</CmdID><MsgRef>2</MsgRef><CmdRef>3</CmdRef><Cmd>Sync</Cmd><TargetRef>events</TargetRef><SourceRef>calendar</SourceRef><Data>200</Data></Status>
                                                     [_opaqueHandler] =>
                                                     [_charset] => UTF-8
                                                     [_wbxmlVersion] => 2
                                                 )

                                             [_uri] => syncml:syncml1.2
                                             [_uriMeta] => syncml:metinf
                                         )

                                 )

                         )

                 )

             [14] => Array
                 (
                     [file] => /var/www/catchall/htdocs/horde/lib/SyncML.php
                     [line] => 233
                     [function] => endElement
                     [class] => SyncML_ContentHandler
                     [type] => ->
                     [args] => Array
                         (
                             [0] =>
                             [1] => Final
                         )

                 )

             [15] => Array
                 (
                     [function] => _endElement
                     [class] => SyncML_ContentHandler
                     [type] => ->
                     [args] => Array
                         (
                             [0] => Resource id #137
                             [1] => Final
                         )

                 )

             [16] => Array
                 (
                     [file] => /var/www/catchall/htdocs/horde/lib/SyncML.php
                     [line] => 144
                     [function] => xml_parse
                     [args] => Array
                         (
                             [0] => Resource id #137
                             [1] => <?xml version="1.0" encoding="UTF-8"?>
<SyncML>
<SyncHdr><VerDTD>1.2</VerDTD>
<VerProto>SyncML/1.2</VerProto>
<SessionID>1283716810</SessionID>
<MsgID>2</MsgID>
<Target><LocURI>http://xxx.xx/horde/rpc.php</LocURI>
</Target>
<Source><LocURI>aku-1283546595</LocURI>
</Source>
</SyncHdr>
<SyncBody><Status><CmdID>1</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>0</CmdRef>
<Cmd>SyncHdr</Cmd>
<TargetRef>aku-1283546595</TargetRef>
<SourceRef>http://xxx.xx/horde/rpc.php</SourceRef>
<Data>200</Data>
</Status>
<Status><CmdID>2</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>3</CmdRef>
<Cmd>Alert</Cmd>
<TargetRef>events</TargetRef>
<SourceRef>calendar</SourceRef>
<Data>200</Data>
<Item><Data><Anchor xmlns="syncml:metinf"><Next>1283716811</Next>
</Anchor>
</Data>
</Item>
</Status>
<Status><CmdID>1</CmdID>
<MsgRef>0</MsgRef>
<CmdRef>6</CmdRef>
<Cmd>Get</Cmd>
<Data>200</Data>
</Status>
<Results><CmdID>1</CmdID>
<MsgRef>0</MsgRef>
<CmdRef>6</CmdRef>
<Meta><Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
</Meta>
<Item><Source><LocURI>./devinf12</LocURI>
</Source>
<Data><DevInf xmlns="syncml:devinf"><VerDTD>1.2</VerDTD>
<Man>Funambol</Man>
<SwV>0.1</SwV>
<DevID>aku-1283546595</DevID>
<DevTyp>workstation</DevTyp>
<UTC/><SupportLargeObjs/><DataStore><SourceRef>calendar</SourceRef>
<Rx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
<DataStore><SourceRef>task</SourceRef>
<Rx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
<DataStore><SourceRef>contact</SourceRef>
<Rx-Pref><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
</DevInf>
</Data>
</Item>
</Results>
<Sync><CmdID>3</CmdID>
<Target><LocURI>events</LocURI>
</Target>
<Source><LocURI>calendar</LocURI>
</Source>
</Sync>
<Final/></SyncBody>
</SyncML>
                         )

                 )

             [17] => Array
                 (
                     [file] => 
/var/www/catchall/htdocs/horde/lib/Horde/Rpc/Syncml.php
                     [line] => 56
                     [function] => process
                     [class] => SyncML_ContentHandler
                     [type] => ->
                     [args] => Array
                         (
                             [0] => <?xml version="1.0" encoding="UTF-8"?>
<SyncML>
<SyncHdr><VerDTD>1.2</VerDTD>
<VerProto>SyncML/1.2</VerProto>
<SessionID>1283716810</SessionID>
<MsgID>2</MsgID>
<Target><LocURI>http://xxx.xx/horde/rpc.php</LocURI>
</Target>
<Source><LocURI>aku-1283546595</LocURI>
</Source>
</SyncHdr>
<SyncBody><Status><CmdID>1</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>0</CmdRef>
<Cmd>SyncHdr</Cmd>
<TargetRef>aku-1283546595</TargetRef>
<SourceRef>http://xxx.xx/horde/rpc.php</SourceRef>
<Data>200</Data>
</Status>
<Status><CmdID>2</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>3</CmdRef>
<Cmd>Alert</Cmd>
<TargetRef>events</TargetRef>
<SourceRef>calendar</SourceRef>
<Data>200</Data>
<Item><Data><Anchor xmlns="syncml:metinf"><Next>1283716811</Next>
</Anchor>
</Data>
</Item>
</Status>
<Status><CmdID>1</CmdID>
<MsgRef>0</MsgRef>
<CmdRef>6</CmdRef>
<Cmd>Get</Cmd>
<Data>200</Data>
</Status>
<Results><CmdID>1</CmdID>
<MsgRef>0</MsgRef>
<CmdRef>6</CmdRef>
<Meta><Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
</Meta>
<Item><Source><LocURI>./devinf12</LocURI>
</Source>
<Data><DevInf xmlns="syncml:devinf"><VerDTD>1.2</VerDTD>
<Man>Funambol</Man>
<SwV>0.1</SwV>
<DevID>aku-1283546595</DevID>
<DevTyp>workstation</DevTyp>
<UTC/><SupportLargeObjs/><DataStore><SourceRef>calendar</SourceRef>
<Rx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
<DataStore><SourceRef>task</SourceRef>
<Rx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
<DataStore><SourceRef>contact</SourceRef>
<Rx-Pref><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
</DevInf>
</Data>
</Item>
</Results>
<Sync><CmdID>3</CmdID>
<Target><LocURI>events</LocURI>
</Target>
<Source><LocURI>calendar</LocURI>
</Source>
</Sync>
<Final/></SyncBody>
</SyncML>
                             [1] => application/vnd.syncml+xml
                             [2] => Horde_Url Object
                                 (
                                     [url] => http://xxx.xx/horde/rpc.php
                                     [raw] => 1
                                     [parameters] => Array
                                         (
                                         )

                                     [pathInfo] =>
                                     [anchor] =>
                                     [toStringCallback] =>
                                 )

                         )

                 )

             [18] => Array
                 (
                     [file] => /var/www/catchall/htdocs/horde/rpc.php
                     [line] => 164
                     [function] => getResponse
                     [class] => Horde_Rpc_Syncml
                     [type] => ->
                     [args] => Array
                         (
                             [0] => <?xml version="1.0" encoding="UTF-8"?>
<SyncML>
<SyncHdr><VerDTD>1.2</VerDTD>
<VerProto>SyncML/1.2</VerProto>
<SessionID>1283716810</SessionID>
<MsgID>2</MsgID>
<Target><LocURI>http://xxx.xx/horde/rpc.php</LocURI>
</Target>
<Source><LocURI>aku-1283546595</LocURI>
</Source>
</SyncHdr>
<SyncBody><Status><CmdID>1</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>0</CmdRef>
<Cmd>SyncHdr</Cmd>
<TargetRef>aku-1283546595</TargetRef>
<SourceRef>http://xxx.xx/horde/rpc.php</SourceRef>
<Data>200</Data>
</Status>
<Status><CmdID>2</CmdID>
<MsgRef>1</MsgRef>
<CmdRef>3</CmdRef>
<Cmd>Alert</Cmd>
<TargetRef>events</TargetRef>
<SourceRef>calendar</SourceRef>
<Data>200</Data>
<Item><Data><Anchor xmlns="syncml:metinf"><Next>1283716811</Next>
</Anchor>
</Data>
</Item>
</Status>
<Status><CmdID>1</CmdID>
<MsgRef>0</MsgRef>
<CmdRef>6</CmdRef>
<Cmd>Get</Cmd>
<Data>200</Data>
</Status>
<Results><CmdID>1</CmdID>
<MsgRef>0</MsgRef>
<CmdRef>6</CmdRef>
<Meta><Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
</Meta>
<Item><Source><LocURI>./devinf12</LocURI>
</Source>
<Data><DevInf xmlns="syncml:devinf"><VerDTD>1.2</VerDTD>
<Man>Funambol</Man>
<SwV>0.1</SwV>
<DevID>aku-1283546595</DevID>
<DevTyp>workstation</DevTyp>
<UTC/><SupportLargeObjs/><DataStore><SourceRef>calendar</SourceRef>
<Rx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
<DataStore><SourceRef>task</SourceRef>
<Rx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/calendar</CTType>
<VerCT></VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
<DataStore><SourceRef>contact</SourceRef>
<Rx-Pref><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
</SyncCap>
</DataStore>
</DevInf>
</Data>
</Item>
</Results>
<Sync><CmdID>3</CmdID>
<Target><LocURI>events</LocURI>
</Target>
<Source><LocURI>calendar</LocURI>
</Source>
</Sync>
<Final/></SyncBody>
</SyncML>
                         )

                 )

         )

)
</pre></div> [pid 12867 on line 137 of 
"/var/www/catchall/htdocs/horde/lib/Horde.php"]

09/05/2010 07:09:35 PM d-fens (at) 00010111 (dot) de Comment #7 Reply to this comment
well i knew that - still it just outputs a

WARN: HORDE [horde] Caught output: object(Horde_Registry_Caller)#261 (2) {
   ["registry:protected"]=>
   object(Horde_Registry)#6 (10) ....


so no proper backtrace as i expected some consequent function calls 
getting listed
09/04/2010 09:00:23 PM Michael Rubinsky Comment #6 Reply to this comment
09/04/2010 08:21:34 PM d-fens (at) 00010111 (dot) de Comment #5 Reply to this comment
actually i tried a few ways but i need a howto get horde spit out backtraces
09/03/2010 06:05:59 PM Michael Rubinsky Comment #4 Reply to this comment
Its a String but with a int. Value
Exactly. It needs to be an int, not a string - at least according to 
the phpdoc for that method. So the calling code is responsible for 
making sure the value is cast to an integer...hence the reason I asked 
for a backtrace, to see where it is being called from.
09/03/2010 05:35:25 PM d-fens (at) 00010111 (dot) Comment #3 Reply to this comment
Its a String but with a int. Value
09/03/2010 05:31:19 PM Michael Rubinsky Comment #2
State ⇒ Feedback
Priority ⇒ 1. Low
Reply to this comment
According to the phpdoc, Horde_History#getByTimestamp must be passed 
an integer value for $ts. So the question becomes, what is passing the 
$ts value as a non-integer? Can you provide a backtrace from a call 
that fails?
09/03/2010 04:08:56 PM d-fens (at) 00010111 (dot) de Comment #1
Patch ⇒ Yes
State ⇒ Unconfirmed
Milestone ⇒
Queue ⇒ Horde Base
Summary ⇒ SyncMl Fails - is_integer issue
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
hi,

in History.php , function getByTimestamp, line 197 it should rather read
if (!is_integer(intval($ts))) {

than

if (!is_integer($ts)) {

cause the current version fails for strings from syncMl containing 
integer values

Saved Queries