Open master-sonic opened 10 years ago
Thanks for the detailed report :) seems related to #19, working on it.
I know this is a little off-topic, but I have a self signed SSL certificate which doesn't work with Flock as well. Will this also be fixed, or do I need another certificate?
@entonjackson Use/Create your own CA to sign your certs. Then import the cert of your CA to your phone. See for example issue #18 or here: http://www.freebsdmadeeasy.com/tutorials/freebsd/create-a-ca-with-openssl.php http://www.freebsdmadeeasy.com/tutorials/web-server/apache-ssl-certs.php (don't forget to add SSLCertificateChainFile and SSLCACertificateFile to your apache vhost) http://davdroid.bitfire.at/faq/entry/importing-a-certificate
test on baikal/nginx:
one problem is in [CalDavStore|CardDavStore]::getCurrentUserPrincipal() - there is only checked for SC_MOVED_PERMANENTLY, not for SC_MOVED_TEMPORARILY
next error is like bug #23 - this can be fixed with qualified namespace "http://org.anhonesteffort.flock"" in OwsWebDav.NAMESPACE
remaining problem is that custom properties are not supported
Some debugging information for baikal on nginx with the patch by @jmue:
Requests
PROPFIND /.well-known/carddav HTTP/1.1
- 302 (redirects to /card.php
)PROPFIND /card.php HTTP/1.1
- 401 (no digest authentication)PROPFIND /card.php HTTP/1.1
- 207 (success [in theory])Response /card.php
<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:card="urn:ietf:params:xml:ns:carddav">
<d:response>
<d:href>/card.php/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Mon, 04 Aug 2014 07:25:57 GMT</d:getlastmodified>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/card.php/principals/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Mon, 04 Aug 2014 07:25:57 GMT</d:getlastmodified>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
<d:response>
<d:href>/card.php/addressbooks/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Mon, 04 Aug 2014 07:25:57 GMT</d:getlastmodified>
<d:resourcetype>
<d:collection/>
</d:resourcetype>
</d:prop>
<d:status>HTTP/1.1 200 OK</d:status>
</d:propstat>
</d:response>
</d:multistatus>
Just finished installing Baikal, gotta say they got their act together :) really painless install.
I've made it to handleCardDavTestAddressbookHomeset() but fail here, the problem seems to be that Baikal is telling Flock to check out "/baikal/html/card.php/principals/usr00%40flock/" for the current user principal but instead Flock (in my case) makes a request to "/b//baikal/html/card.php/principals/usr00%40flock/". Note that I have a rewrite rule setup in lighttpd for "/b".
I think this is because Flock is treating the URL entered in the server tests fragment as a host name and not a URL, gonna try this out and see what comes up next...
Bleh.....
Turns out that Baikal does the same silly thing as OwnCloud and only persists a static list of WebDAV properties and thus breaks spec. The database structure Baikal uses for calendars makes it impossible for Baikal to fully support the requirements of WebDAV collection properties. For a more detailed explanation of what is wrong with the Baikal DB structure and how it can very trivially be resolved please see https://github.com/WhisperSystems/Flock/issues/19#issuecomment-56099500
Going to keep this issue around for the purposes of documentation but labelling as won't fix because the core of this issue is within the Baikal server.
I ran into similar issues with Baikal as in issue #19.
Here's my logcat:
Apache's access log:
Output of curl test:
And part of baikal's vhost:
Finally a screenshot of the error message in flock:
Might there be some error in my setup?