Skip to content

search REPORT should render dav oc:permissions property in letters instead of numeric values #4575

Closed

Description

@AlexAndBear

Describe the bug

image

Should be letters like in PROPFIND, but exposes numeric values actually.

Activity

  1. changed the title [-]REPORT exposes permissions dav property in letters instead of numbers [/-] [+]REPORT exposes permissions dav property in letters instead of numeric values [/+] on Sep 13, 2022
  2. butonic commented on Sep 13, 2022

    @butonic
    Contributor

    What does the request look like? checking the code, a REPORT for search-files does not render permissions at all (implemened in ocis), thefilter-files in reva uses the same rendering code path as for propfinds ... so ... what REPORT?

  3. AlexAndBear commented on Sep 13, 2022

    @AlexAndBear
    ContributorAuthor
    curl 'https://localhost:9200/remote.php/dav/files/admin/' \
      -X 'REPORT' \
      -H 'Accept: application/json, text/plain, */*' \
      -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8,de;q=0.7,es;q=0.6' \
      -H 'Authorization: Bearer ***' \
      -H 'Connection: keep-alive' \
      -H 'Content-Type: application/xml; charset=UTF-8' \
      -H 'OCS-APIREQUEST: true' \
      -H 'Origin: https://localhost:9200' \
      -H 'Referer: https://localhost:9200/files/search/list?term=new&provider=files.sdk&sort-by=name&sort-dir=asc&items-per-page=100' \
      -H 'Sec-Fetch-Dest: empty' \
      -H 'Sec-Fetch-Mode: cors' \
      -H 'Sec-Fetch-Site: same-origin' \
      -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36' \
      -H 'X-Request-ID: f7b6c61f-77bc-4e04-9719-8feedc099e4b' \
      -H 'X-Requested-With: XMLHttpRequest' \
      -H 'sec-ch-ua: "Google Chrome";v="105", "Not)A;Brand";v="8", "Chromium";v="105"' \
      -H 'sec-ch-ua-mobile: ?0' \
      -H 'sec-ch-ua-platform: "Linux"' \
      --data-raw $'<?xml version="1.0"?>\n<oc:search-files  xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">\n  <d:prop>\n    <oc:permissions />\n    <oc:favorite />\n    <oc:fileid />\n    <oc:name />\n    <oc:owner-id />\n    <oc:owner-display-name />\n    <oc:shareid />\n    <oc:shareroot />\n    <oc:share-types />\n    <oc:privatelink />\n    <d:getcontentlength />\n    <oc:size />\n    <d:getlastmodified />\n    <d:getetag />\n    <d:getcontenttype />\n    <d:resourcetype />\n    <oc:downloadURL />\n  </d:prop>\n  <oc:search>\n    <oc:pattern>new</oc:pattern>\n    <oc:limit>10</oc:limit>\n  </oc:search>\n</oc:search-files>' \
      --compressed \
      --insecure
    
  4. changed the title [-]REPORT exposes permissions dav property in letters instead of numeric values [/-] [+]search REPORT should render dav oc:permissions property in letters instead of numeric values[/+] on Sep 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions