Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Duplicate+heavy OCS call for indicators #7593

Closed

Description

@diocas

To get the indicators, web is doing 2 OCS requests to get the shares for the current and parent folders.
The problem is that the last request is done without the path filter query param, which means all the shares are returned. This is expensive and returns lots of information we already have.

Imagining we have created the tree /New folder/New folder, the last request will include it:

GET https://ocis.ocis-web.latest.owncloud.works/ocs/v1.php/apps/files_sharing/api/v1/shares?reshares=true

...
      <element>
        ...
         <path>/New folder/New folder</path>
         <item_type>folder</item_type>
        ...
      </element>
...

but this is redundant because we already did

GET https://ocis.ocis-web.latest.owncloud.works/ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2FNew%20folder%2FNew%20folder&reshares=true

I suppose what is wrong here is the ocs request without filter because that's expensive and the individual requests for specific folders might be less so (are they?).

Also, if we already rely on the webdav response for the current folder, I assume we only need to query ocs for the parent folders, but I see a request for the current one as well.

(ps: this issue was reported via chat before, just added it here for better tracking)

Activity

  1. added
    Type:Bug
    on Sep 7, 2022
  2. JammingBen commented on Sep 7, 2022

    @JammingBen
    Contributor

    This should/will be fixed via #7580

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

    Early-Adopter:CERNType:Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions