linagora / linshare

LinShare
https://www.linshare.org/
GNU Affero General Public License v3.0
449 stars 84 forks source link

Shared space not found when getting nodes with REST API #293

Open markarasev opened 9 months ago

markarasev commented 9 months ago

Hello,

I'm trying to use the public web application's REST API and I have a single shared space I created with a few documents inside it.

I can retrieve my shared space's UUID using GET https://web.linshare.app/linshare/webservice/rest/user/v5/shared_spaces with correct authentication.

Then, retrieving the shared space's metadata using GET https://web.linshare.app/linshare/webservice/rest/user/v5/shared_spaces/<my_UUID> gives me a 200 response with the expected info.

But, when I try to list the shared space documents using GET https://web.linshare.app/linshare/webservice/rest/user/v5/shared_spaces/<my_UUID>/nodes returns me a 404 not found error with the following message: "Can not find shared space with uuid : ".

I use the exact same HTTP parameters for all these requests expect for the URI path.

I can see with GET https://web.linshare.app/linshare/webservice/rest/user/v5/shared_spaces/<my_UUID>/members that the credentials I use have the WORK_SPACE_ADMIN role for this work space.

Maybe it is somehow related to https://github.com/linagora/linshare/issues/285?