{"action":"opened","issue":{"url":"https://api.github.com/repos/syncany/syncany/issues/406","labels_url":"https://api.github.com/repos/syncany/syncany/issues/406/labels{/name}","comments_url":"https://api.github.com/repos/syncany/syncany/issues/406/comments","events_url":"https://api.github.com/repos/syncany/syncany/issues/406/events","html_url":"https://github.com/syncany/syncany/issues/406","id":60610024,"number":406,"title":"webdav plugin: cannot initialize repository","user":{"login":"elephaant","id":11418333,"avatar_url":"https://avatars.githubusercontent.com/u/11418333?v=3","gravatar_id":"","url":"https://api.github.com/users/elephaant","html_url":"https://github.com/elephaant","followers_url":"https://api.github.com/users/elephaant/followers","following_url":"https://api.github.com/users/elephaant/following{/other_user}","gists_url":"https://api.github.com/users/elephaant/gists{/gist_id}","starred_url":"https://api.github.com/users/elephaant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elephaant/subscriptions","organizations_url":"https://api.github.com/users/elephaant/orgs","repos_url":"https://api.github.com/users/elephaant/repos","events_url":"https://api.github.com/users/elephaant/events{/privacy}","received_events_url":"https://api.github.com/users/elephaant/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-11T04:46:55Z","updated_at":"2015-03-11T04:46:55Z","closed_at":null,"body":"Syncany fails to initialize new webdav repository claiming target cannot be created.\r\n\r\nsyncany version 0.4.3\r\nwebdav plugin: 0.4.0\r\n\r\nwa@clef:~/edav$ sy init -t\r\nChoose a storage plugin. Available plugins are: local, sftp, webdav\r\nPlugin: webdav\r\n\r\nConnection details for webdav connection:\r\n- URL: https://edav.ssss.com:5006/home\r\n- Username: edav\r\n- Password (not displayed): \r\n\r\nERROR: Repository cannot be initialized, because the target does not exist and\r\n       it cannot be created. Please check your permissions or create the target manually.\r\n\r\nDetails:\r\n- Target connect success: true\r\n- Target exists:          false\r\n- Target creatable:       false\r\n- Target writable:        false\r\n- Repo file exists:       false\r\n\r\nConnection failure\r\nWould you change the settings and retry the connection (y/n)? n\r\n\r\n## However cadaver has no problems writing to it\r\n\r\nwa@clef:~/edav$ cadaver https://edav.ssss.com:5006/home\r\nWARNING: Untrusted server certificate presented for `synology.com':\r\nCertificate was issued to hostname `synology.com' rather than `edav.ssss.com'\r\nThis connection could have been intercepted.\r\nIssued to: FTP Team, Synology Inc., Taipei, Taiwan, TW\r\nIssued by: Certificate Authority, Synology Inc., Taipei, Taiwan, TW\r\nCertificate is valid from Sat, 17 Jan 2015 18:55:19 GMT to Wed, 04 Oct 2034 18:55:19 GMT\r\nDo you wish to accept the certificate? (y/n) y\r\nAuthentication required for SYNO_WebDAV Storage on server `edav.ssss.com':\r\nUsername: edav\r\nPassword: \r\ndav:/home/> ls\r\nListing collection `/home/': collection is empty.\r\ndav:/home/> mkcol somedir\r\nCreating `somedir': succeeded.\r\ndav:/home/> ls\r\nListing collection `/home/': succeeded.\r\nColl:   somedir                                0  Mar  9 19:36\r\ndav:/home/> rmcol somedir\r\nDeleting collection `somedir': succeeded.\r\ndav:/home/> quit\r\nConnection to `edav.ssss.com' closed.\r\n\r\n## Syncany logs reveal execptions thrown:\r\n\r\n9-3-15 19:34:52.410 | AbstractInitOpe | main           | INFO : Running 'Init'\r\n9-3-15 19:34:52.410 | AbstractInitOpe | main           | INFO : --------------------------------------------\r\n9-3-15 19:34:52.430 | AbstractTransfe | main           | INFO : Performing storage test TM.test() ...\r\n9-3-15 19:34:52.431 | AbstractTransfe | main           | INFO : - Running connect() ...\r\n9-3-15 19:34:52.431 | WebdavTransferM | main           | INFO : WebDAV: Connect called. Creating Sardine (SSL!) ...\r\n9-3-15 19:34:53.511 | WebdavTransferM | main           | WARN : testTargetExists: Exception thrown while testing if folder exists.\r\njavax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name\r\n        at sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1373)\r\n        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1952)\r\n[...]\r\n9-3-15 19:34:53.540 | WebdavTransferM | main           | INFO : testTargetCanWrite: Can NOT write to target.\r\njavax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name\r\n        at sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1373)\r\n        at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1952)\r\n        at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1077)\r\n[...]\r\n9-3-15 19:34:53.569 | WebdavTransferM | main           | WARN : testRepoFileExists: Exception thrown while testing if repo file exists.\r\njavax.net.ssl.SSLProtocolException: handshake alert:  unrecognized_name\r\n        at sun.security.ssl.ClientHandshaker.handshakeAlert(ClientHandshaker.java:1373)\r\n[...]\r\n"}}