Dhruti90 / google-gdata1111

Automatically exported from code.google.com/p/google-gdata
0 stars 0 forks source link

DocumentsListQuery public static QueryCategories do not use the public static AtomCategories from DocumentEntry #321

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was just wondering why the static initializers to the QueryCategory members 
of the DocumentsListQuery use strings to construct the AtomCategory 
parameters, instead of just using the static members of DocumentEntry.

It causes an inconvenience when querying with a category of "document", for 
example, and later trying to validate the returned entries. They do not 
contain an entry with "document" category, but an entry with 
"http://schemas.google.com/docs/2007#document".

Original issue reported on code.google.com by ATGard...@gmail.com on 24 Jan 2010 at 11:11

Attachments:

GoogleCodeExporter commented 9 years ago
I think the bug runs deeper than that - after switching to the DocumentEntry 
AtomCategories, the queries are not being built right. I now reverted the 
change over 
here, and changed something in my code.
I do think that the DocumentsListQuery should handle the categories correctly, 
and only 
use the label field when building the URI.

Original comment by ATGard...@gmail.com on 25 Jan 2010 at 2:18