{"action":"created","issue":{"url":"https://api.github.com/repos/jobisoft/TbSync/issues/8","repository_url":"https://api.github.com/repos/jobisoft/TbSync","labels_url":"https://api.github.com/repos/jobisoft/TbSync/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/jobisoft/TbSync/issues/8/comments","events_url":"https://api.github.com/repos/jobisoft/TbSync/issues/8/events","html_url":"https://github.com/jobisoft/TbSync/issues/8","id":227700344,"number":8,"title":"ActiveSync with Open-Xchange quitting with HTTP 405","user":{"login":"deadmanIsARabbit","id":25929199,"avatar_url":"https://avatars0.githubusercontent.com/u/25929199?v=3","gravatar_id":"","url":"https://api.github.com/users/deadmanIsARabbit","html_url":"https://github.com/deadmanIsARabbit","followers_url":"https://api.github.com/users/deadmanIsARabbit/followers","following_url":"https://api.github.com/users/deadmanIsARabbit/following{/other_user}","gists_url":"https://api.github.com/users/deadmanIsARabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/deadmanIsARabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadmanIsARabbit/subscriptions","organizations_url":"https://api.github.com/users/deadmanIsARabbit/orgs","repos_url":"https://api.github.com/users/deadmanIsARabbit/repos","events_url":"https://api.github.com/users/deadmanIsARabbit/events{/privacy}","received_events_url":"https://api.github.com/users/deadmanIsARabbit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-10T14:31:28Z","updated_at":"2017-05-11T09:33:00Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to connect TbSync with an OX installation. While Android and iOS devices have no problem to connect via EAS TbSync keeps quitting with the following messages:\r\n\r\n\r\n\r\n**With Provisioning enabled:**\r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [setSyncState] : State: syncing, Account: EAS IP Based test\r\n> \r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [setSyncState] : State: requestingprovision, Account: EAS IP Based test\r\n> \r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [Sending data requestingprovision (WBXML)] : \r\n> 3 1 6a 0 0 e 45 46 47 48 3 4d 53 2d 45 41 53 2d 50 72 6f 76 69 73 69 6f 6e 69 6e 67 2d 57 42 58 4d 4c 0 1 1 1 1\r\n> \r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [Sending data requestingprovision (XML)] : \r\n> <?xml version=\"1.0\"?>\r\n> <Provision xmlns='Provision'>\r\n> <Policies>\r\n> <Policy>\r\n> <PolicyType>MS-EAS-Provisioning-WBXML</PolicyType>\r\n> </Policy>\r\n> </Policies>\r\n> </Provision>\r\n> \r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [sending] : POST http://IP.OF.OX.SERVER/Microsoft-Server-ActiveSync?Cmd=Provision&User=MYUSER&DeviceType=Thunderbird&DeviceId=mztb9a217ad00e0ef89fb656a7267d2f\r\n> \r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [PolicyKey used] : 0\r\n> \r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [finishSync(): Error @ Account EAS IP Based test] : Communication error (HTTP status 405).\r\n> \r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [setSyncState] : State: done, Account: EAS IP Based test\r\n> \r\n> ** Wed May 10 2017 16:16:06 GMT+0200 (CEST) **\r\n> [setSyncState] : State: accountdone, Account: EAS IP Based test\r\n> \r\n> ** Wed May 10 2017 16:16:08 GMT+0200 (CEST) **\r\n> [setSyncState] : State: idle\r\n\r\n\r\n\r\n**Without Provisioning:**\r\n> ** Wed May 10 2017 16:18:10 GMT+0200 (CEST) **\r\n> [setSyncState] : State: syncing, Account: EAS IP Based test\r\n> \r\n> ** Wed May 10 2017 16:18:10 GMT+0200 (CEST) **\r\n> [setSyncState] : State: requestingfolders, Account: EAS IP Based test\r\n> \r\n> ** Wed May 10 2017 16:18:10 GMT+0200 (CEST) **\r\n> [Sending data requestingfolders (WBXML)] : \r\n> 3 1 6a 0 0 7 56 52 3 30 0 1 1\r\n> \r\n> ** Wed May 10 2017 16:18:10 GMT+0200 (CEST) **\r\n> [Sending data requestingfolders (XML)] : \r\n> <?xml version=\"1.0\"?>\r\n> <FolderSync xmlns='FolderHierarchy'>\r\n> <SyncKey>0</SyncKey>\r\n> </FolderSync>\r\n> \r\n> ** Wed May 10 2017 16:18:10 GMT+0200 (CEST) **\r\n> [sending] : POST http://IP.OF.OX.SERVER/Microsoft-Server-ActiveSync?Cmd=FolderSync&User=MYUSER&DeviceType=Thunderbird&DeviceId=mztb9a217ad00e0ef89fb656a7267d2f\r\n> \r\n> ** Wed May 10 2017 16:18:10 GMT+0200 (CEST) **\r\n> [finishSync(): Error @ Account EAS IP Based test] : Communication error (HTTP status 405).\r\n> \r\n> ** Wed May 10 2017 16:18:10 GMT+0200 (CEST) **\r\n> [setSyncState] : State: done, Account: EAS IP Based test\r\n> \r\n> ** Wed May 10 2017 16:18:10 GMT+0200 (CEST) **\r\n> [setSyncState] : State: accountdone, Account: EAS IP Based test\r\n> \r\n> ** Wed May 10 2017 16:18:11 GMT+0200 (CEST) **\r\n> [setSyncState] : State: idle\r\n\r\n\r\n\r\n\r\n\r\nCalling the site with method OPTIONS results in:\r\n> curl -i -k -X OPTIONS http://IP.OF.OX.SERVER/Microsoft-Server-ActiveSync \r\n> 'HTTP/1.1 200 OK\r\n> Date: Wed, 10 May 2017 14:20:43 GMT\r\n> Server: grizzly/2.2.22\r\n> Public: OPTIONS, POST\r\n> MS-ASProtocolVersions: 2.5,12.0,12.1\r\n> MS-ASProtocolCommands: Sync,FolderCreate,FolderDelete,FolderSync,FolderUpdate,GetAttachment,GetHierarchy,GetItemEstimate,MeetingResponse,MoveItems,Ping,Provision,ResolveRecipients,Search,SendMail,SmartForward,SmartReply,ValidateCert,Settings,ItemOperations\r\n> Pragma: no-cache\r\n> Allow: GET, HEAD, POST, TRACE, OPTIONS\r\n> Via: 1.1 HOST.DOMAIN.TLD\r\n> Keep-Alive: timeout=5, max=100\r\n> Content-Length: 0\r\n> Accept-Ranges: none\r\n> Connection: keep-alive\r\n\r\n\r\nDo you have any idea why or is there no implementation for open-xchange planned? \r\n"},"comment":{"url":"https://api.github.com/repos/jobisoft/TbSync/issues/comments/300736599","html_url":"https://github.com/jobisoft/TbSync/issues/8#issuecomment-300736599","issue_url":"https://api.github.com/repos/jobisoft/TbSync/issues/8","id":300736599,"user":{"login":"deadmanIsARabbit","id":25929199,"avatar_url":"https://avatars0.githubusercontent.com/u/25929199?v=3","gravatar_id":"","url":"https://api.github.com/users/deadmanIsARabbit","html_url":"https://github.com/deadmanIsARabbit","followers_url":"https://api.github.com/users/deadmanIsARabbit/followers","following_url":"https://api.github.com/users/deadmanIsARabbit/following{/other_user}","gists_url":"https://api.github.com/users/deadmanIsARabbit/gists{/gist_id}","starred_url":"https://api.github.com/users/deadmanIsARabbit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deadmanIsARabbit/subscriptions","organizations_url":"https://api.github.com/users/deadmanIsARabbit/orgs","repos_url":"https://api.github.com/users/deadmanIsARabbit/repos","events_url":"https://api.github.com/users/deadmanIsARabbit/events{/privacy}","received_events_url":"https://api.github.com/users/deadmanIsARabbit/received_events","type":"User","site_admin":false},"created_at":"2017-05-11T09:33:00Z","updated_at":"2017-05-11T09:33:00Z","body":"Sure here we go.\r\n**That's from the access log when connecting with my Android Device:**\r\n> 10.0.0.250 - - [11/May/2017:11:02:32 +0200] \"POST /Microsoft-Server-ActiveSync?Cmd=Ping&User=MYUSER&DeviceId=androidc331384742&DeviceType=SonyD6603 HTTP/1.1\" 200 433 \"-\" \"SonyD6603/6.0.1-EAS-2.0\"\r\n> 10.0.0.250 - - [11/May/2017:11:02:33 +0200] \"POST /Microsoft-Server-ActiveSync?Cmd=Sync&User=MYUSER&DeviceId=androidc331384742&DeviceType=SonyD6603 HTTP/1.1\" 200 612 \"-\" \"SonyD6603/6.0.1-EAS-2.0\"\r\n> 10.0.0.250 - - [11/May/2017:11:02:36 +0200] \"POST /Microsoft-Server-ActiveSync?Cmd=FolderSync&User=MYUSER&DeviceId=androidc331384742&DeviceType=SonyD6603 HTTP/1.1\" 200 598 \"-\" \"SonyD6603/6.0.1-EAS-2.0\"\r\n\r\n**This is from the EAS Debug log when I'm syncing my android:**\r\n> 2017-05-11 11:17:12.609: b02ef622-0453-4025-b18c-1a67423bc441 --- POST: MYUSER(10.0.0.250) application/vnd.ms-sync.wbxml ---\r\n> 10:183:MYUSER:EAS:androidc331384742: Sync executed in 302 ms, 4 OX calls took 253 ms.\r\nFun Fact the TbSync connection attempt does not even reach the EAS Debug log. \r\n\r\nMaking a CURL Post seems to work:\r\n\r\n> curl -i -k -X POST --data 'Cmd=FolderSync&User=MYUSER&DeviceType=Thunderbird&DeviceId=mztb9a217ad00e0ef89fb656a7tp://MYUSSER:MYPASSWRD@IP.OF.EAS.SERVER/Microsoft-Server-ActiveSync\r\n> HTTP/1.1 200 OK\r\n> Date: Thu, 11 May 2017 09:25:38 GMT\r\n> Server: grizzly/2.2.22\r\n> Pragma: no-cache\r\n> Content-Type: application/vnd.ms-sync.wbxml\r\n> Set-Cookie: JSESSIONID=7314191431804231759.APP1; Expires=Thu, 18-May-2017 09:25:38 GMT; Path=/; HttpOnly\r\n> Via: 1.1 HOST.DOMAINNAME.TLD\r\n> Keep-Alive: timeout=5, max=100\r\n> Content-Length: 14\r\n> Accept-Ranges: none\r\n> Connection: keep-alive\r\n\r\nThis also results in an positiv entry in the EAS Debug log:\r\n>2017-05-11 11:25:38.358: 75d99fdc-6f1d-48ef-a160-59b36b535944 --- POST: MYUSER(10.0.0.250) application/x-www-form-urlencoded ---\r\n>10:183:MYUSER:EAS:mztb9a217ad00e0ef89fb656a7267d2f: FolderSync executed in 2 ms, no OX calls made.\r\n"}}
{"actor":{"display_login":"deadmanIsARabbit"}}