Skip to content

New DAV endpoint missing properties on files root #26064

Closed

Description

@PVince81

Steps:

  1. Create a file "propfind.xml" with the following contents:
<?xml version="1.0"?>
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
        <d:prop>
                <d:resourcetype/>
                <d:getlastmodified/>
                <d:getcontentlength/>
                <d:getetag/>
                <oc:id/>
                <oc:downloadURL/>
                <oc:dDC/>
                <oc:permissions/>
                <oc:size />
                <oc:share-types />
        </d:prop>
</d:propfind>
  1. Propfind on the root of the new DAV endpoint: curl -X PROPFIND -H "Content-Type: text/xml" --data-binary "@propfind.xml" -H "Depth: 0" http://admin:admin@localhost/owncloud/remote.php/dav/files/admin/

Expected result

Properties returned like for the old one:

  % curl -X PROPFIND -H "Content-Type: text/xml" --data-binary "@propfind.xml" -H "Depth: 0" http://admin:admin@localhost/owncloud/remote.php/webdav/
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:oc="http://owncloud.org/ns">
 <d:response>
  <d:href>/owncloud/remote.php/webdav/</d:href>
  <d:propstat>
   <d:prop>
    <d:resourcetype>
     <d:collection/>
    </d:resourcetype>
    <d:getlastmodified>Thu, 08 Sep 2016 10:31:15 GMT</d:getlastmodified>
    <d:getetag>&quot;57d13df383420&quot;</d:getetag>
    <oc:id>00000002oc2d13a6a068</oc:id>
    <oc:permissions>RDNVCK</oc:permissions>
    <oc:size>225878212</oc:size>
    <d:quota-used-bytes>225878212</d:quota-used-bytes>
    <d:quota-available-bytes>-3</d:quota-available-bytes>
    <oc:share-types/>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
  <d:propstat>
   <d:prop>
    <d:getcontentlength/>
    <oc:downloadURL/>
    <oc:dDC/>
   </d:prop>
   <d:status>HTTP/1.1 404 Not Found</d:status>
  </d:propstat>
 </d:response>
</d:multistatus>

Actual result

Missing properties:

  % curl -X PROPFIND -H "Content-Type: text/xml" --data-binary "@propfind.xml" -H "Depth: 0" http://admin:admin@localhost/owncloud/remote.php/dav/files/admin/
<?xml version="1.0"?>
<d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:cal="urn:ietf:params:xml:ns:caldav" xmlns:cs="http://calendarserver.org/ns/" xmlns:card="urn:ietf:params:xml:ns:carddav" xmlns:oc="http://owncloud.org/ns">
 <d:response>
  <d:href>/owncloud/remote.php/dav/files/admin/</d:href>
  <d:propstat>
   <d:prop>
    <d:resourcetype>
     <d:collection/>
    </d:resourcetype>
    <d:getlastmodified>Thu, 08 Sep 2016 10:31:15 GMT</d:getlastmodified>
   </d:prop>
   <d:status>HTTP/1.1 200 OK</d:status>
  </d:propstat>
  <d:propstat>
   <d:prop>
    <d:getcontentlength/>
    <d:getetag/>
    <oc:id/>
    <oc:downloadURL/>
    <oc:dDC/>
    <oc:permissions/>
    <oc:size/>
    <d:quota-used-bytes/>
    <d:quota-available-bytes/>
    <oc:share-types/>
   </d:prop>
   <d:status>HTTP/1.1 404 Not Found</d:status>
  </d:propstat>
 </d:response>
</d:multistatus>

Versions

Observed on 9.2 prealpha/master, very likely to exist in 9.1 as well.
Blocks #25494 (switching web UI to new endpoint)

@DeepDiver1975 FYI

I'll have a look, hopefully just a matter of plugging the FilesPlugin

Activity

  1. added this to the 9.1.2 milestone on Sep 8, 2016
  2. self-assigned this
    on Sep 8, 2016
  3. PVince81 commented on Sep 8, 2016

    @PVince81
    ContributorAuthor

    Fix is here #26066

  4. guruz commented on Sep 8, 2016

    @guruz
    Contributor

    What about data-fingerprint?

  5. lock commented on Aug 3, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions