Skip to content

Search via webdav includes root folder #27747

@tobiasKaminsky

Description

@tobiasKaminsky

I found a potential regression or at least a change of search syntax:
When I do a search for a user without any content, I do receive:
NC21: http 207 with empty multistatus
master, NC22: http 207 with root folder of this user
You can test this with:

curl --request SEARCH \
--url http://localhost/nc/remote.php/dav \
--header 'Content-Type: text/xml' \
--header 'OCS-APIRequest: true' \
--data '<?xml version="1.0" encoding="UTF-8"?>
<d:searchrequest xmlns:d="DAV:" xmlns:oc="http://nextcloud.com/ns">
<d:basicsearch>
    <d:select>
        <d:prop>
            <d:displayname />
        </d:prop>
    </d:select>
    <d:from>
        <d:scope>
            <d:href>/files/test</d:href>
            <d:depth>infinity</d:depth>
        </d:scope>
    </d:from>
    <d:where>
        <d:and>
            <d:is-collection />
        </d:and>
    </d:where>
    <d:orderby />
</d:basicsearch>
</d:searchrequest>'

@icewind1991 maybe?

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions