Skip to content

REPORT request without remote.php returns empty result (only with dav/spaces path) #10329

Closed

Description

@saw-jan

Steps

TL;DR

https://localhost:9200/remote.php/webdav ✔️
https://localhost:9200/remote.php/dav/files ✔️
https://localhost:9200/remote.php/dav/spaces ✔️

https://localhost:9200/webdav ✔️
https://localhost:9200/dav/files ✔️
https://localhost:9200/dav/spaces ❌
  1. Search with remote.php ✔️
curl -XREPORT 'https://localhost:9200/remote.php/dav/spaces' \                                                                                                                            
-d"<?xml version='1.0' encoding='utf-8' ?>
<oc:search-files xmlns:a='DAV:' xmlns:oc='http://owncloud.org/ns' >
    <oc:search><oc:pattern>*file*</oc:pattern></oc:search>
</oc:search-files>" \
-uadmin:admin -vk | xmllint --format -
< HTTP/1.1 207 Multi-Status

<?xml version="1.0"?>
<d:multistatus xmlns:s="http://sabredav.org/ns" xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
  <d:response>
    <d:href>/remote.php/dav/spaces/14cb34c2-9a97-40d4-9cb5-c0e221bbd9cb$b0570ce2-b9d6-4f90-9793-bacbae19c571/New%20file.txt</d:href>
    <d:propstat>
      <d:prop>
        <oc:fileid>14cb34c2-9a97-40d4-9cb5-c0e221bbd9cb$b0570ce2-b9d6-4f90-9793-bacbae19c571!6adbcc3b-689e-439c-86c5-4cef7e4f2927</oc:fileid>
        <oc:file-parent>14cb34c2-9a97-40d4-9cb5-c0e221bbd9cb$b0570ce2-b9d6-4f90-9793-bacbae19c571!b0570ce2-b9d6-4f90-9793-bacbae19c571</oc:file-parent>
        <oc:name>New file.txt</oc:name>
        <d:getlastmodified>2024-10-17T10:00:27Z</d:getlastmodified>
        <d:getcontenttype>text/plain</d:getcontenttype>
        <oc:permissions>RDNVW</oc:permissions>
        <oc:highlights/>
        <oc:tags/>
        <d:getetag/>
        <d:resourcetype/>
        <d:getcontentlength>18</d:getcontentlength>
        <oc:score>1.3595103025436401</oc:score>
      </d:prop>
      <d:status>HTTP/1.1 200 OK</d:status>
    </d:propstat>
  </d:response>
</d:multistatus>
  1. Search without remote.php ❌
curl -XREPORT 'https://localhost:9200//dav/spaces' \                                                                                                                            
-d"<?xml version='1.0' encoding='utf-8' ?>
<oc:search-files xmlns:a='DAV:' xmlns:oc='http://owncloud.org/ns' >
    <oc:search><oc:pattern>*file*</oc:pattern></oc:search>
</oc:search-files>" \
-uadmin:admin -vk | xmllint --format -
< HTTP/1.1 207 Multi-Status

<?xml version="1.0"?>
<d:multistatus xmlns:s="http://sabredav.org/ns" xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns"/>

Expected behavior

...to return a file

Actual behavior

Empty result

Setup

Details

OCIS = `Infinite Scale 6.5.0+6bde4ef950 Community`

Activity

  1. changed the title [-]REPORT request without `remote.php` returns empty result[/-] [+]REPORT request without `remote.php` returns empty result (only with `dav/spaces` path)[/+] on Oct 17, 2024
  2. self-assigned this
    on Sep 19, 2025
  3. LukasHirt commented on Sep 19, 2025

    @LukasHirt
    Contributor

    Fixed in #11664

  4. saw-jan commented on Sep 22, 2025

    @saw-jan
    MemberAuthor

    ✔️ works now

    curl -XREPORT 'https://localhost:9200/remote.php/dav/spaces' \                                                                                                                            
    -d"<?xml version='1.0' encoding='utf-8' ?>
    <oc:search-files xmlns:a='DAV:' xmlns:oc='http://owncloud.org/ns' >
        <oc:search><oc:pattern>*file*</oc:pattern></oc:search>
    </oc:search-files>" \
    -uadmin:admin -vk | xmllint --format -
    
    < HTTP/1.1 207 Multi-Status
    < Content-Length: 986
    
    <?xml version="1.0"?>
    <d:multistatus xmlns:s="http://sabredav.org/ns" xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
      <d:response>
        <d:href>/remote.php/dav/spaces/35b3160d-ddc5-47c8-885a-5d5794cc7ef1$f133410a-50ae-4ac1-be4f-76b426c4d940/test/file.txt</d:href>
        <d:propstat>
          <d:prop>
            <oc:fileid>35b3160d-ddc5-47c8-885a-5d5794cc7ef1$f133410a-50ae-4ac1-be4f-76b426c4d940!7b1ed76c-3449-4c0d-9776-b705e76ef4b2</oc:fileid>
            <oc:file-parent>35b3160d-ddc5-47c8-885a-5d5794cc7ef1$f133410a-50ae-4ac1-be4f-76b426c4d940!8331d426-1467-488a-8e7b-802c74f422e9</oc:file-parent>
            <oc:name>file.txt</oc:name>
            <d:getlastmodified>Mon, 22 Sep 2025 04:22:45 GMT</d:getlastmodified>
            <d:getcontenttype>text/plain</d:getcontenttype>
            <oc:permissions>RDNVW</oc:permissions>
            <oc:highlights/>
            <oc:tags/>
            <d:getetag/>
            <d:resourcetype/>
            <d:getcontentlength>9</d:getcontentlength>
            <oc:score>2.4737894535064697</oc:score>
          </d:prop>
          <d:status>HTTP/1.1 200 OK</d:status>
        </d:propstat>
      </d:response>
    </d:multistatus>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions