google-code-export / gdata-python-client

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

Not setting freebusy calendar permission correctly #523

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a client

import gdata.calendar.data
import gdata.calendar.client
import atom.data

client = gdata.calendar.client.CalendarClient(source='error-app')
client.ClientLogin('someone@somehwere.com', 'p@$$w0rd', client.source)

2. Create a secondary calendar

calendar = gdata.calendar.data.CalendarEntry()
calendar.title = atom.data.Title(text='123test')
a_calendar = client.InsertCalendar(new_calendar=calendar)

3. Create a freebusy acl

rule = gdata.calendar.data.CalendarAclEntry()
rule.scope = gdata.acl.data.AclScope(value='friend@somewhere.com', type='user')
role_value = 'http://schemas.google.com/gCal/2005#%s' % ('freebusy')
rule.role = gdata.acl.data.AclRole(value=role_value)
returned_rule = client.InsertAclEntry(rule, a_calendar.GetAclLink().href)

What is the expected output? What do you see instead?
The expected output is that the second account "friend" can only see free/busy 
information.  However, if you log into Google Calendar with friend@, you can 
actually see the details of the events in 123test calendar (as if friend had 
read privileges).

Note that if you go to "Share this Calendar" for 123test in the UI for the 
primary account (someone), it will correctly say "See only free/busy (hide 
details)" even though it shows the details to the secondary account (friend).

Please use labels and text to provide additional information.

Original issue reported on code.google.com by brian...@google.com on 10 Jun 2011 at 11:00

GoogleCodeExporter commented 9 years ago
Hello,

This seems to be an API issue rather than an issue with the client library. 
Please report it in the API issue tracker:
  http://code.google.com/a/google.com/p/apps-api-issues/issues/list?q=label:API-Calendar

Also, if you are using a Google Apps domain, the calendar ACLs might be 
overridden by the domain's policy.

Best,
Alain

Original comment by ala...@google.com on 13 Jun 2011 at 3:43