500 on PROPFIND with "oc:owner-display-name" #23116

Closed
LukasReschke opened this Issue Mar 10, 2016 · 0 comments

Projects

None yet

3 participants

@LukasReschke
Member

On a newly installed master.


Request:

PROPFIND /oc/remote.php/dav/files/admin HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:46.0) Gecko/20100101 Firefox/46.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Depth: 1
Content-Type: application/xml; charset=utf-8
Content-Length: 390
Authorization: Basic YWRtaW46YWRtaW4=
Connection: close

<?xml version="1.0"?>
<d:propfind  xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
  <d:prop>
    <d:getlastmodified />
    <d:getetag />
    <d:getcontenttype />
    <d:resourcetype />
    <oc:fileid />
    <oc:permissions />
    <oc:size />
    <d:getcontentlength />
    <oc:tags />
    <oc:favorite />
    <oc:comments-unread />
    <oc:owner-display-name />
  </d:prop>
</d:propfind>

Response:

HTTP/1.0 500 Internal Server Error
Date: Thu, 10 Mar 2016 17:16:25 GMT
Server: Apache/2.4.16 (Unix) PHP/5.6.18
X-Powered-By: PHP/5.6.18
Set-Cookie: oca9b3ferqu5=4p757hs72up8b4mj11o5bqt8t7; path=/oc; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: oc_sessionPassphrase=vOl6j5HmsnLiioiVO7DuPL%2F%2F6RIcG3w9B8h53jKN0gr0UEYGnTZOb7spv6UaLI3nmFimDSiaLGBRYNHZbGMWCbyzhr7qy7PYkT1m19zIOcr3KDiybcRwmn7oWgV1XCuR; path=/oc; httponly
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; frame-src *; img-src * data: blob:; font-src 'self' data:; media-src *; connect-src *
Set-Cookie: oca9b3ferqu5=10b5rb4o71fd8rrh1cjennpj03; path=/oc; HttpOnly
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Robots-Tag: none
X-Frame-Options: SAMEORIGIN
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8

Log:

{"reqId":"D4ciLa0TRegvlxnQqctx","remoteAddr":"127.0.0.1","app":"PHP","message":"Call to undefined method OCA\\DAV\\Files\\FilesHome::getOwner() at \/Users\/lukasreschke\/Documents\/Programming\/oc\/apps\/dav\/lib\/connector\/sabre\/filesplugin.php#276","level":3,"time":"2016-03-10T17:15:00+00:00"}

$node is:

OCA\DAV\Files\FilesHome Object
(
    [principalInfo] => Array
        (
            [uri] => principals/users/admin
            [{DAV:}displayname] => admin
        )

)

=> OCA\DAV\Files\FilesHomeis missing getOwner

cc @DeepDiver1975

@DeepDiver1975 DeepDiver1975 self-assigned this Mar 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment