question

xsohaix avatar image
xsohaix asked

Filter AND Clause is not working?

Doing "filters=kind:FOLDER AND isRoot:true", I get back all folders including root but I am expecting just root folder. When I Do "filters=isRoot:true AND kind:FOLDER", it returns back only root folder. I am suspecting the "AND" clause is not working. Can somebody verify? [curl]< GET /drive/v1/nodes?filters=kind:FOLDER AND isRoot:true HTTP/1.1 Host: cdws.us-east-1.amazonaws.com === dump json begin === Object:get_root_folder { Array:data [ Object: { Boolean:isRoot 1 String:eTagResponse brGDGV8nVbM String:id TpOYp-1nRfyGr0ul5mdwbg String:kind FOLDER Number:version 82.00 Array:labels [ ] String:createdDate 2015-08-27T22:05:50.481Z String:createdBy CloudDriveFiles Boolean:restricted 0 String:modifiedDate 2015-10-23T02:07:27.551Z Boolean:isShared 0 Array:parents [ ] String:status AVAILABLE } Object: { String:eTagResponse 6EMxvPNGpf4 String:id Ik07u1QyRVy7RDGl_k0JOw String:kind FOLDER Number:version 4.00 Array:labels [ ] String:createdDate 2015-10-23T01:19:16.896Z String:createdBy CloudDriveWeb Boolean:restricted 0 String:modifiedDate 2015-10-23T01:21:44.240Z String:name Pictures Boolean:isShared 0 Array:parents [ String: LuGCFhuyQ3O5-cDzabtqRQ ] String:status AVAILABLE } Object: { String:eTagResponse vwtxO2T_KoA String:id 2eNbshEwRC2pPBvfizT5rA String:kind FOLDER Number:version 3.00 Array:labels [ ] String:createdDate 2015-10-23T01:21:35.861Z String:createdBy CloudDriveWeb Boolean:restricted 0 String:modifiedDate 2015-10-23T01:22:57.750Z String:name 2015_Sept Boolean:isShared 0 Array:parents [ String: Ik07u1QyRVy7RDGl_k0JOw ] String:status AVAILABLE } ..... ] Number:count 7.00 } === dump json end === [curl]< GET /drive/v1/nodes?filters=isRoot:true AND kind:FOLDER HTTP/1.1 Host: cdws.us-east-1.amazonaws.com === dump json begin === Object:get_root_folder { Array:data [ Object: { Boolean:isRoot 1 String:eTagResponse brGDGV8nVbM String:id TpOYp-1nRfyGr0ul5mdwbg String:kind FOLDER Number:version 82.00 Array:labels [ ] String:createdDate 2015-08-27T22:05:50.481Z String:createdBy CloudDriveFiles Boolean:restricted 0 String:modifiedDate 2015-10-23T02:07:27.551Z Boolean:isShared 0 Array:parents [ ] String:status AVAILABLE } ] Number:count 1.00 } === dump json end ===
amazon drive
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jamie Grossman avatar image
Jamie Grossman answered
Hi there, Let me investigate and I'll get back to you as soon as I have more information on the matter. Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jamie Grossman avatar image
Jamie Grossman answered
Hi there, Thanks for posting! Looks like this is a bug, and it isn't related to the AND clause; it's related to the filter behaviour when isRoot is the first token in the set. We are investigating this now. Thanks! Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

xsohaix avatar image
xsohaix answered
Thanks for the update. Can you please let me know when this is fixed?
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jamie Grossman avatar image
Jamie Grossman answered
Hey there! Unfortunately, I can't provide an ETA on this, but we are aware of the issue and it's being investigated. Regards, Jamie
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.