Unable to list entities I have access to in folder

Description

I used to be able to query for entitites in a parent when I didn’t have read access to the parent. That is, list all files/tables/folders that I have been given access to. the new API for listing children does not offer this functionality. We have collaborators that have tried to navigate to using the getChildren call in the python/R clients but they get a 403 error.

{{In [4]: list(syn.client.getChildren('syn11151027', includeTypes=['table']))
---------------------------------------------------------------------------
SynapseHTTPError Traceback (most recent call last)
<ipython-input-4-b4a5332d17c5> in <module>
----> 1 list(syn.client.getChildren('syn11151027', includeTypes=['table']))

~/20190724T191717/lib/python3.6/site-packages/synapseclient/client.py in getChildren(self, parent, includeTypes, sortBy, sortDirection)
1421 entityChildrenResponse = {"nextPageToken": "first"}
1422 while entityChildrenResponse.get('nextPageToken') is not None:
-> 1423 entityChildrenResponse = self.restPOST('/entity/children', body=json.dumps(entityChildrenRequest))
1424 for child in entityChildrenResponse['page']:
1425 yield child

~/20190724T191717/lib/python3.6/site-packages/synapseclient/client.py in restPOST(self, uri, body, endpoint, headers, retryPolicy, **kwargs)
3345 response = _with_retry(lambda: self._requests_session.post(uri, data=body, headers=headers, **kwargs),
3346 verbose=self.debug, **retryPolicy)
-> 3347 exceptions._raise_for_status(response, verbose=self.debug)
3348 return self._return_rest_body(response)
3349

~/20190724T191717/lib/python3.6/site-packages/synapseclient/exceptions.py in _raise_for_status(response, verbose)
151 message += "\nCould not append all response info"
152
--> 153 raise SynapseHTTPError(message, response=response)

SynapseHTTPError: 403 Client Error:}}

Environment

None

Status

Assignee

Unassigned

Reporter

Larsson Omberg

Labels

None

Validator

Bruce Hoff

Release Version History

None

Priority

Major
Configure