SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

DocList API Java Client: 'with Link' type doc visibility option cannot be programmatically set via GData API #350

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Instantiate and provide credential to a valid GData DocsService (see 
attached script method provideDocsClient())
2. Create a new doc with some name. Get a handle on the DocumentListEntry (see 
attached script method createNewDocument())
3. Create AclEntry for visibility option (see list below for all 5 types 
associated with Google Apps docs).  Add the AclEntry to the DocumentListEntry 
(see attached script method method addAclRole(), as well as constructed 
AclEntry inserted in script lines 52-81)
4. Visually inspect newly created doc and check the sharing visibility.
5. Repeat for all visibility options (see below).

What is the expected output? What do you see instead?
Expected:
For the following visibility options:
1. Private
2. Doc shared with People at Domain with the Link
3. Doc shared with Domain
4. Docs shared with Anyone with Link
5. Docs shared with Public
constructing and adding a properly constructed AclEntry to a DocumentListEntry 
should set the sharing visibility of the target doc to each and every listed 
visibility type.
Actual:
Two out of the five visibility options cannot be set programmatically via the 
GData API, given a properly constructed AclEntry:
2. Doc shared with People at Domain with the Link
5. Docs shared with Anyone with Link
No exception is throw when inserting AclEntry associated with these visibility 
options to DocumentListEntry.  However, when inspecting the doc's sharing 
permissions manually, document has only a 'Private' visibility (silent ignore 
of AclEntry insertion).

What version of the product are you using? On what operating system?
- gdata-samples.java-1.45.0
- Oracle J2SE jdk1.6.0_25
- Windows 7 Home Premium 64-bit

Please provide any additional information below.
Attached is a partial test script used to reproduce this bug.

Some related info found in one of the forums:
http://www.google.com/support/forum/p/apps-apis/thread?tid=3ab6ec83b0690bbf&hl=e
n

Original issue reported on code.google.com by taop...@gmail.com on 16 Jun 2011 at 6:52

Attachments: