Dhruti90 / google-gdata1111

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

Document.ParentFolders seems to contain only one of multiple parent folders #328

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using the GData .NET library version 1.4.0.2 and am finding that
documents' ParentFolders property returns an unexpected value.  If I've
done something wrong or my expectations are incorrect, please let me know.

What steps will reproduce the problem?
1. Using the web interface to Google Docs, I uploaded a few PDF files and
added them to different folders, giving some of them multiple parent
folders (this is the key bit).
2. I then used the DocListExporter sample app to retrieve the list of
documents.

Expected output:
The resulting tree view in DocListExporter should match the folder
structure as it appears on the Google Docs web interface (with some
documents listed under many folders).

Actual results:
Each document appeared under only one parent folder.  When I breakpoint and
step through the code, I can see that the ParentFolders property of each
PDF document contains exactly one item, regardless of whether the document
has been placed under multiple folders.

Additional:
I wrote a test app which used DocumentsRequest.GetFolders() to get the
folder list and iteratively called Document.GetFolderContent() to get the
documents in each folder.  This returned the expected output - a hierarchy
of documents that matched the folder structure on the web interface.  Each
document, however, still reported its ParentFolders count as 1 (even if it
was found in multiple folders).

Thanks for your time.

Original issue reported on code.google.com by clin...@gmail.com on 4 Feb 2010 at 12:58

GoogleCodeExporter commented 9 years ago
This works fine with the currently checked in code in subversion.

Original comment by fman...@gmail.com on 9 Feb 2010 at 11:05