Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CardDAV not working with SabreDAV ( OwnCloud 5.0.7) #82

Closed
arved opened this issue Jul 1, 2013 · 1 comment
Closed

CardDAV not working with SabreDAV ( OwnCloud 5.0.7) #82

arved opened this issue Jul 1, 2013 · 1 comment

Comments

@arved
Copy link

arved commented Jul 1, 2013

Sorry for opening another issue, but I cant locate the last relateted one.
After doning some investigations it seems, that the main issue on having CardDAV not working against sabreDAV, it apperars that sabreDAV does not support the "sync-collection" command, used in /include/carddav.php:

public function get_all_vcards($include_vcards = true, $raw = false)
....

$content = '<D:sync-collection xmlns:D="DAV:" xmlns:C="urn:ietf:params:xml:ns:carddav"><D:sync-token>/D:sync-token<D:prop><D:getcontenttype/><D:getetag/><D:allprop/><C:address-data><C:allprop/>/C:address-data/D:prop<C:filter/>/D:sync-collection';

After made some minor changes to this file to avoid the access problems (Changing any apperance of CURLAUTH_ANY to CURLAUTH_BASIC, ans adding this

    if ($this->auth !== null)
    {

        curl_setopt($this->curl, CURLOPT_HTTPAUTH,  CURLAUTH_BASIC);
        curl_setopt($this->curl, CURLOPT_USERPWD, $this->auth);

    }

direct before the

    $complete_response  = curl_exec($this->curl);

line in the query function.

As far as I see the function get_all_vcards exists not in the carddav.php repository, so I assume, that this function ist created in this project.

Maybe it will work, when this CardDAV report body is replaced by something compareable with a PROPFIND or addressbook-query statement?

@arved
Copy link
Author

arved commented Jul 1, 2013

added content to similar issue #80 #80 and closed it.

@arved arved closed this as completed Jul 1, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant