From 0d2f1688e4ade41b2937572b28f711186660bd9e Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sat, 25 Feb 2012 16:26:47 +0100 Subject: add empty methods updatePrincipal and searchPrincipals and change method getPrincipalByPath to work with sabredav 1.6 --- lib/connector/sabre/principal.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/connector/sabre/principal.php b/lib/connector/sabre/principal.php index 72e180c65c0..6cfb3449e1a 100644 --- a/lib/connector/sabre/principal.php +++ b/lib/connector/sabre/principal.php @@ -90,7 +90,7 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend { * @return array */ public function getPrincipalByPath($path) { - list($prefix,$name) = Sabre_DAV_URLUtil::splitPath($path); + list($prefix,$name) = explode('/', $path); if ($prefix == 'principals' && OC_User::userExists($name)) { return array( @@ -159,4 +159,6 @@ class OC_Connector_Sabre_Principal implements Sabre_DAVACL_IPrincipalBackend { public function setGroupMemberSet($principal, array $members) { throw new Sabre_DAV_Exception('Setting members of the group is not supported yet'); } + function updatePrincipal($path, $mutations){return 0;} + function searchPrincipals($prefixPath, array $searchProperties){return 0;} } -- cgit v1.2.3