OK, I found out what the problem was - in the entry I sent to PUT, the organizer 'who' was different than the one I got from Google. The organizer's new email was the account's default calendar. So this is not a bug, though it is weird that the organizer is the calendar, and not the account itself.
Ronnie. On Sep 22, 4:37 pm, HissingInfernoOfAudio <[email protected]> wrote: > Hi, > I'm trying to update an event that is in a non-primary calendar, but > it keeps getting moved to the default (primary) calendar. > This happens both in a PUT request, and a POST batch request. > > Example: > 1. I request the event i want using > 'GEThttp://www.google.com/calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40gro... > > I get back: > "{"version":"1.0","encoding":"UTF-8","feed":{"xmlns":"http://www.w3.org/2005/Atom","xmlns$openSearch":"http://a9.com/-/spec/opensearch/1.1/","xmlns$gml":"http://www.opengis.net/gml","xmlns$georss":"http://www.georss.org/georss","xmlns$batch":"http://schemas.google.com/gdata/batch","xmlns$gCal":"http://schemas.google.com/gCal/2005","xmlns$gd":"http://schemas.google.com/g/2005","gd$etag":"W/\"DkAHSX47eCp7I2A9WxNQFk8.\"","id":{"$t":"http://www.google.com/calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40gro..."},"updated":{"$t":"2009-09-22T13:05:38.000Z"},"category":[{"scheme":"http://schemas.google.com/g/2005#kind","term":"http://schemas.google.com/g/2005#event"}],"title":{"$t":"yet > another"},"subtitle":{"$t":""},"link":[{"rel":"alternate","type":"text/ > html","href":"http://www.google.com/calendar/embed?src > \[email protected]"}, > {"rel":"http://schemas.google.com/g/2005#feed","type":"application/atom > +xml","href":"http://www.google.com/calendar/feeds/ > fk3eq8rm01lli70t7cot5a4vn4%40group.calendar.google.com/private/full"}, > {"rel":"http://schemas.google.com/g/2005#post","type":"application/atom > +xml","href":"http://www.google.com/calendar/feeds/ > fk3eq8rm01lli70t7cot5a4vn4%40group.calendar.google.com/private/full"}, > {"rel":"http://schemas.google.com/g/2005#batch","type":"application/ > atom+xml","href":"http://www.google.com/calendar/feeds/ > fk3eq8rm01lli70t7cot5a4vn4%40group.calendar.google.com/private/full/ > batch"},{"rel":"self","type":"application/atom+xml","href":"http://www.google.com/calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40group.cale...u003djson\u0026max-results\u003d9999\u0026start-min\u003d2009-09-20T16%3A05%3A22%2B03%3A00\u0026singleevents\u003dfalse\u0026start-max\u003d2009-09-24T16%3A05%3A22%2B03%3A00\u0026ctz\u003dUTC"}],"author":[{"name":{"$t":"RH > Test"},"email":{"$t":"[email protected]"}}],"generator": > {"version":"1.0","uri":"http://www.google.com/calendar","$t":"Google > Calendar"},"openSearch$totalResults":{"$t":"1"},"openSearch > $startIndex":{"$t":"1"},"openSearch$itemsPerPage":{"$t":"9999"},"gd > $where":{"valueString":""},"gCal$timezone":{"value":"UTC"},"gCal > $timesCleaned":{"value":"0"},"entry":[{"gd > $etag":"\"GU4KQA1Cdip7I2A6WhVb\"","id":{"$t":"http://www.google.com/ > calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40group.calendar.google.com/ > events/hr4ptsv3cco0s3q1kcjspbskl4"},"published": > {"$t":"2009-09-22T13:05:38.000Z"},"updated": > {"$t":"2009-09-22T13:05:38.000Z"},"app$edited":{"xmlns$app":"http://www.w3.org/2007/app","$t":"2009-09-22T13:05:38.000Z"},"category":[{"scheme":"http://schemas.google.com/g/2005#kind","term":"http://schemas.google.com/g/2005#event"}],"title":{"$t":"update > this"},"content":{"$t":""},"link":[{"rel":"alternate","type":"text/ > html","href":"http://www.google.com/calendar/event?eid > \u003daHI0cHRzdjNjY28wczNxMWtjanNwYnNrbDQgZmszZXE4cm0wMWxsaTcwdDdjb3Q1YTR2bjRAZw","title":"alternate"}, > {"rel":"self","type":"application/atom+xml","href":"http://www.google.com/calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40group.cale..."},{"rel":"edit","type":"application/atom+xml","href":"http://www.google.com/calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40gro..."}],"author":[{"name":{"$t":"RH > Test"},"email":{"$t":"[email protected]"}}],"gCal$guestsCanModify": > {"value":"false"},"gCal$guestsCanInviteOthers":{"value":"true"},"gCal > $guestsCanSeeGuests":{"value":"true"},"gCal$anyoneCanAddSelf": > {"value":"false"},"gd$comments":{"gd$feedLink":{"href":"http://www.google.com/calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40group.cale..."}},"gd$eventStatus":{"value":"http://schemas.google.com/g/2005#event.confirmed"},"gd$visibility":{"value":"http://schemas.google.com/g/2005#event.default"},"gd$transparency":{"value":"http://schemas.google.com/g/2005#event.opaque"},"gCal$uid":{"value":"[email protected]"},"gCal$sequence":{"value":"0"},"gd$when":[{"startTime":"2009-09-23T06:00:00.000Z","endTime":"2009-09-23T10:30:00.000Z"}],"gd$who":[{"rel":"http://schemas.google.com/g/2005#event.organizer","valueString":"yet > another","email":"[email protected]"}],"gd > $where":[{"valueString":""}]}]}}" > > 2. I send an update using > 'PUThttp://www.google.com/calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40gro... > with the feed: > <entry > xmlns:gd='http://schemas.google.com/g/2005'xmlns='http://www.w3.org/2005/Atom'><link > href='http://www.google.com/calendar/feeds/ > fk3eq8rm01lli70t7cot5a4vn4%40group.calendar.google.com/private/full/ > hr4ptsv3cco0s3q1kcjspbskl4' rel='self' type='application/atom+xml'/><link > href='http://www.google.com/calendar/feeds/ > > fk3eq8rm01lli70t7cot5a4vn4%40group.calendar.google.com/private/full/ > hr4ptsv3cco0s3q1kcjspbskl4' rel='edit' type='application/atom+xml'/><category > term='http://schemas.google.com/g/2005#event' > > scheme='http://schemas.google.com/g/2005#kind'/><id>http://www.google.com/calendar/feeds/fk3eq8rm01lli70t7cot5a4vn4%40group.cale...</id><title>updated</title><content/><gd:eventStatus > value='http://schemas.google.com/g/2005#event.confirmed'/><gd:transparency > value='http://schemas.google.com/g/ > > 2005#event.opaque'/><gd:visibility value='http://schemas.google.com/g/ > 2005#event.default'/><gd:when endTime='2009-09-23T10:30:00Z' > startTime='2009-09-23T06:00:00Z'/><gd:who valueString='RH Test' > rel='http://schemas.google.com/g/2005#event.organizer' > email='[email protected]'/><gd:who valueString='RH Test' rel='http:// > schemas.google.com/g/2005#event.attendee' > email='[email protected]'/><author><name>RH > Test</name><email>[email protected]</email></ > > author><gd:where valueString=''/></entry> > and I get back: > <?xml version='1.0' encoding='UTF-8'?><entry xmlns='http://www.w3.org/ > 2005/Atom' > xmlns:gml='http://www.opengis.net/gml'xmlns:georss='http://www.georss.org/georss'xmlns:batch='http://schemas.google.com/gdata/ > batch' xmlns:gCal='http://schemas.google.com/gCal/2005' > xmlns:gd='http://schemas.google.com/g/2005' > gd:etag='"GU4KQA1Efip7I2A6WhVb"'><id>http://www.google.com/ > calendar/feeds/rhmt66%40gmail.com/events/hr4ptsv3cco0s3q1kcjspbskl4</ > id><published>2009-09-22T13:05:38.000Z</ > published><updated>2009-09-22T13:05:50.000Z</updated><app:edited > xmlns:app='http://www.w3.org/2007/app'>2009-09-22T13:05:50.000Z</ > app:edited><category scheme='http://schemas.google.com/g/2005#kind' > term='http://schemas.google.com/g/2005#event'/><title>updated</ > title><content></content><link rel='alternate' type='text/html' > href='http://www.google.com/calendar/event? > eid=aHI0cHRzdjNjY28wczNxMWtjanNwYnNrbDQgcmhtdDY2QG0' title='alternate'/><link > rel='self' type='application/atom+xml' href='http:// > > www.google.com/calendar/feeds/rhmt66%40gmail.com/private/full/hr4ptsv...><link > rel='edit' type='application/atom+xml' href='http://www.google.com/ > calendar/feeds/rhmt66%40gmail.com/private/full/ > hr4ptsv3cco0s3q1kcjspbskl4'/><author><name>RH Test</ > name><email>[email protected]</email></author><gCal:guestsCanModify > value='false'/><gCal:guestsCanInviteOthers > value='true'/><gCal:guestsCanSeeGuests value='true'/><gCal:anyoneCanAddSelf > > value='false'/><gd:comments><gd:feedLink href='http://www.google.com/ > calendar/feeds/rhmt66%40gmail.com/private/full/ > hr4ptsv3cco0s3q1kcjspbskl4/comments'/></gd:comments><gd:eventStatus > value='http://schemas.google.com/g/2005#event.confirmed'/><gd:visibility > value='http://schemas.google.com/g/2005#event.default'/ > ><gd:transparency value='http://schemas.google.com/g/ > > 2005#event.opaque'/><gCal:uid > value='[email protected]'/><gCal:sequence > value='0'/><gd:when startTime='2009-09-23T06:00:00.000Z' > endTime='2009-09-23T10:30:00.000Z'><gd:reminder minutes='10' > method='email'/><gd:reminder minutes='10' method='alert'/></ > gd:when><gd:who rel='http://schemas.google.com/g/2005#event.organizer' > valueString='RH Test' email='[email protected]'><gd:attendeeStatus > value='http://schemas.google.com/g/2005#event.invited'/></ > gd:who><gd:where valueString=''/></entry> > > Notice that the event suddenly moved to the calendar [email protected] > instead of fk3eq8rm01lli70t7cot5a4vn4%40group.calendar.google.com. > > I suspect this is a bug in Google, but please tell me if I missed > something. > > Thanks, > Ronnie. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
