google-api-ruby-client
google-api-ruby-client copied to clipboard
Missing results in list_files query
Results are empty when an OR
clause concerns a folder which is inaccessible by the client
Environment details
- OS: ubuntu 20.04
- Ruby version: 2.7.1
- Gem name and version: google-api-client (0.50.0)
Steps to reproduce
- run the quickstart without modifications and confirm it returns some files
- add a
q
parameter as follows:q: "'root' in parents or '1qalXys4O1i1UJPFttX2qvarT2iTfSav_' in parents",
and confirm it returns no results.
Code example
response = drive_service.list_files(page_size: 10,
q: "'root' in parents or '1qalXys4O1i1UJPFttX2qvarT2iTfSav_' in parents",
fields: "nextPageToken, files(id, name)")
Issue b/200055738 has been reported to the Drive backend.