Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Properties Query string Seems to Require the Use of visibility=PRIVATE/PUBLIC While Module Returns Error When Provided #2295

Closed
Go2ClassPoorYorick opened this issue Jul 23, 2020 · 1 comment
Assignees
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@Go2ClassPoorYorick
Copy link

  1. Is this a client library issue or a product issue?
    This appears to be an issue with the client. Copy-pasting a query string that works on The API Docs into the query string for a drive.files.list() call throws an error.

  2. Did someone already solve this?
    This was brought up in issue drive.files.list query on properties not working #426, but the solution no longer seems relevant

  3. Do you have a support contract?
    Yeah, but that's lame.

Environment details

  • OS: Linux
  • Node.js version:v10.19.0
  • npm version:6.14.4
  • googleapis version: 48.0.0

Steps to reproduce

  1. attempt a Files.list() search for a custom property in the developers documentation (using the try this api):
    q:properties has {key="key" and value="true" and visibility='PRIVATE'}
  2. If you have searched a valid key value/visibility combination, you should see results
  3. Attempt same search using nodejs-client and it should fail:
    drive.files.list({'q':`properties has {key="key" and value="true" and visibility='PRIVATE'}`},(err,res)=>console.log(err+'\n'+JSON.stringify(res,1,1)))
Error: Invalid Value
undefined
  1. Try the search as documented in drive.files.list query on properties not working #426:
    drive.files.list({'q':`properties has {key="key" and value="true"`},(err,res)=>console.log(err+'\n'+JSON.stringify(res,1,1)))

You should receive an empty list from this call.

@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Jul 24, 2020
@sofisl sofisl added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. and removed triage me I really want to be triaged. labels Jul 24, 2020
@Go2ClassPoorYorick
Copy link
Author

@sofisl
It would appear that this no longer occurs, at least as of version 60.0.1, as the query in step 4 now returns properly when tested.

I'm unsure if this was an issue with the node module or api, but it seems to work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants