logo       

Bug: Zero Duation Events and <category> elements.: msg#00219

org.google.api.calendar

Subject: Bug: Zero Duation Events and <category> elements.


Hello,

I may have found a bug (or at least a Documentation inconsistancy).
According to
http://code.google.com/apis/gdata/common-elements.html#gdWhen , a
zero-duration event should look like:

<gd:when startTime="2005-06-06T17:00:00-08:00"/>

Now I want to update an event to be a zero-duration event, sending the
following xml:
--------------------------------------------------------------------------------
<entry xmlns:gd="http://schemas.google.com/g/2005";
xmlns="http://www.w3.org/2005/Atom";>
<category scheme="http://schemas.google.com/g/2005#kind";
term="http://schemas.google.com/g/2005#event"/>
<title type="text">zero duration event</title>
<content type="text">description</content>
<author>
<name>kewisch@xxxxxxxxx</name>
<email>kewisch@xxxxxxxxx</email>
</author>
<gd:transparency
value="http://schemas.google.com/g/2005#event.opaque"/>
<gd:eventStatus
value="http://schemas.google.com/g/2005#event.confirmed"/>
<gd:where valueString="location"/>
<gd:when startTime="2006-09-19T02:02:00+02:00"/>
<gd:visibility
value="http://schemas.google.com/g/2005#event.public"/>
</entry>
--------------------------------------------------------------------------------
As a response I get a 400 Bad Request. The Response string is
"Expecting an end time component in g:when." (Note also the typo, I
believe it should be gd:when?).

=========================================

I also have noticed when getting event feeds (not specifically
zero-duration events) I often get two category elements that look
similar in the same entry. I would have expected only one. Its only
minor, but this should be documented right. This is how they look.
Notice the second atom:category has a @scheme withough the #kind:

<category scheme="http://schemas.google.com/g/2005#kind";
term="http://schemas.google.com/g/2005#event"; />
<category scheme="http://schemas.google.com/g/2005";
term="http://schemas.google.com/g/2005#event"; />




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise