0
我正在將sabredav集成到我的web應用程序中,我的應用程序之間的連接 - > sabredab似乎很好。使用瀏覽器,我可以訪問所有需要的電子名片。sabredav carddav不工作在ios上,在android上進行barily工作
在Android上,當我使用url
example.org/sabredavcontroller/index/addressbooks/principalID/addressbookID
其同步完美
但是在iOS(6),它會在example.org/.well-known/carddav
我已經重定向到example.org/sabredavcontroller/index/,但它沒有做任何事情,並嘗試其他網址也不工作,並出錯。
這是從當IOS嘗試建立一個帳戶的CardDAV的ACCESSLOG:
projectnexys.com:80 192.168.125.24 - - [22/Mar/2013:10:41:58 +0100] "PROPFIND /.well-known/carddav HTTP/1.1" 302 574 "-" "iOS/6.1.2 (10B146) Preferences/1.0"
projectnexys.com:80 192.168.125.24 - - [22/Mar/2013:10:41:59 +0100] "PROPFIND /sabredavcontroller/index/ HTTP/1.1" 401 985 "-" "iOS/6.1.2 (10B146) Preferences/1.0"
projectnexys.com:80 192.168.125.24 - [email protected] [22/Mar/2013:10:41:59 +0100] "PROPFIND /sabredavcontroller/index/ HTTP/1.1" 207 1423 "-" "iOS/6.1.2 (10B146) Preferences/1.0"
projectnexys.com:80 192.168.125.24 - - [22/Mar/2013:10:42:00 +0100] "PROPFIND/HTTP/1.1" 302 818 "-" "iOS/6.1.2 (10B146) Preferences/1.0"
projectnexys.com:80 192.168.125.24 - - [22/Mar/2013:10:42:01 +0100] "PROPFIND /account HTTP/1.1" 200 2107 "-" "iOS/6.1.2 (10B146) Preferences/1.0"
projectnexys.com:80 192.168.125.24 - - [22/Mar/2013:10:42:01 +0100] "PROPFIND /principals/ HTTP/1.1" 404 890 "-" "iOS/6.1.2 (10B146) Preferences/1.0"
(澄清:第一行是通過重定向找出sabredav的根:301 的二線是到根目錄的請求,但它需要一個用戶名/ PW 第三相同第二但認證 ,然後將其在此URL放棄並嘗試其他選項 )
結果從第三行是,使用curl和這個命令:
curl --header "Content-Type: text/xml" -u "[email protected]:bla" --request PROPFIND projectnexys.com/sabredavcontroller/index/ | xmllint --format -
-
<?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>/sabredavcontroller/index/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Fri, 22 Mar 2013 09:36:52 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>/sabredavcontroller/index/principals/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Fri, 22 Mar 2013 09:36:52 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>/sabredavcontroller/index/addressbooks/</d:href>
<d:propstat>
<d:prop>
<d:getlastmodified>Fri, 22 Mar 2013 09:36:52 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>
任何人都可以給我什麼可能會錯誤的提示?
詩篇。我正在使用SabreDAV http://sabre.io/我無法創建新標籤,但因信譽問題
一個常見的錯誤是不加載ACL插件,這是必需的。另外,你有什麼基地網址? – Evert 2013-03-23 18:01:43
你是完全正確的,它需要一些擺弄正確的羣體,但不是它的作品像一個魅力,如果你將它添加爲我接受它的答案;) – Xeli 2013-03-27 08:31:49