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

File attribute "starred" appears to never be set #852

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments
Open

File attribute "starred" appears to never be set #852

GoogleCodeExporter opened this issue Mar 15, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link
Collaborator

Version of google-api-java-client (e.g. 1.15.0-rc)?
google-apiservices-drive-v2-rev110--1.17.0-rc

Java environment (e.g. Java 6, Android 2.3, App Engine)?
appengine-api-1.0-sdk-1.8.4
Java 1.7

Describe the problem.
Executing:
Files.List fileList = service.files().list().setQ(mimeType = 'image/jpeg' and 
'0BwVZ_b1U-EryTVhuSVZMNXlwR28' in parents and trashed = false and starred = 
true);

This returns no results. If I remove "and starred = true" I get 600+ results. 
When I view the image in my browser on Drive, it is clearly starred. Also, if I 
search my Drive folder for "is:starred" the file is returned. 

I also wrote a brief junit test to run through all of the files to check the 
getStarred() value in the label:
results = ds.retrieveFiles(service.getDriveService(), typeImage, 
"0BwVZ_b1U-EryTVhuSVZMNXlwR28", true);
for(File s : results)
{
    if(s.getId().equals("0BwVZ_b1U-EryS0YyWXJCUWNLSlU"))
    {
        System.out.println("got the file");
        System.out.println(s.getLabels().getStarred().booleanValue());
    }
}

The block above writes:
got the file
false

I starred this file today, and it is the only file in my Drive folder with a 
star.

How would you expect it to be fixed?
When the line is executed, any file within the folder with a star should be 
returned.

Original issue reported on code.google.com by Erin.Ost...@gmail.com on 11 Jan 2014 at 6:51

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant