current-user-principal returns incorrect href. #23306

gvde opened this Issue Mar 16, 2016 · 4 comments


None yet

5 participants

gvde commented Mar 16, 2016

Request the current user principal from carddav and it returns an incorrect href for the current user principal on owncloud 9:

$ curl  -u myself --data @propfind4.xml -H 'Depth: 0' -H 'Content-Type: application/xml; charset-utf-8' -X PROPFIND

with propfind4.xml:

<d:propfind xmlns:d="DAV:">
     <d:current-user-principal />

and after entering correct user password, returns:

<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="" xmlns:card="urn:ietf:params:xml:ns:carddav">
   <d:status>HTTP/1.1 200 OK</d:status>

However, /owncloud/remote.php/carddav/principals/users/myself/ does not exist. The only principal uri that exists would be /owncloud/remote.php/carddav/principals/myself/


@DeepDiver1975 didn't you fix this already ? I remember seeing a PR that fixed hrefs

@DeepDiver1975 DeepDiver1975 added this to the 9.1-current milestone Mar 17, 2016
@DeepDiver1975 DeepDiver1975 self-assigned this Mar 17, 2016

The LegacyDAVACL plugin is performing the transformation of principals - which is not necessary in this case 😢


@gvde thanks a lot for this in depth testing - fix is available at #23342

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment