google-api-ruby-client icon indicating copy to clipboard operation
google-api-ruby-client copied to clipboard

Missing results in list_files query

Open quentindemetz opened this issue 4 years ago • 1 comments

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

  1. run the quickstart without modifications and confirm it returns some files
  2. 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)")

quentindemetz avatar Nov 19 '20 11:11 quentindemetz

Issue b/200055738 has been reported to the Drive backend.

dazuma avatar Sep 15 '21 19:09 dazuma