Ebeo / google-gdata

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

Google.GData.Calendar.EventQuery.ModifiedSince is ignored #415

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using:
    GData .NET Client Library (version=1.6.0.0, runtime version=v2.0.50727)
    WinXP

Issue:
    Google.GData.Calendar.EventQuery.ModifiedSince is completely ignored when when executing Google.GData.Calendar.CalendarService.Query(..)

Reproduction: Make sure there are some old, not-modified entries in the agenda.
    EventQuery myQuery = new EventQuery("http://www.google.com/calendar/feeds/default/private/full");
    myQuery.ModifiedSince = DateTime.Today;
    EventFeed myResultsFeed = service.Query(myQuery) as EventFeed;

What is seen:
    ALL events are returned

Expected:
    Only the events that were modified today            

Original issue reported on code.google.com by hubeint...@gmail.com on 12 Aug 2010 at 10:09

GoogleCodeExporter commented 9 years ago
Can you capture a trace of this with fiddler and post it here (without the 
authorization of course).

Original comment by fman...@gmail.com on 16 Aug 2010 at 12:48

GoogleCodeExporter commented 9 years ago
Hi,
I included Fiddler_Modified_Since.txt

What stands out:
...
If-Modified-Since: Mon, 16 Aug 2010 22:00:00 GMT
...
Last-Modified: Wed, 11 Aug 2010 14:15:33 GMT
...

And:
GData-Version: 1.0 (just a random guess: should it not be 2.0 or higher ?)

Original comment by hubeint...@gmail.com on 17 Aug 2010 at 7:18

Attachments:

GoogleCodeExporter commented 9 years ago
I am also seeing this same issue using pretty much the same coded noted in this 
defect; The call always returns all events. I've actually not be able to get 
this to work for years. I do recall it was working but it did not work when the 
start/end dates were set. In this case modified items that occured outside this 
date range were returned unexpectedly. 

Original comment by dlevins...@gmail.com on 25 Aug 2010 at 11:20

GoogleCodeExporter commented 9 years ago
I Have the same problem

Original comment by eken...@gmail.com on 19 Sep 2010 at 12:54

GoogleCodeExporter commented 9 years ago
Same problem here. I really need this to work, it is a big issue for me.

Original comment by sony.gab...@gmail.com on 27 Dec 2010 at 3:38

GoogleCodeExporter commented 9 years ago

Original comment by ccherub...@google.com on 18 Mar 2011 at 1:39

GoogleCodeExporter commented 9 years ago
Please read the documentation:
  http://code.google.com/apis/calendar/data/2.0/developers_guide_dotnet.html#RetrievingDateRange

Thanks,
Alain

Original comment by ala...@google.com on 21 Mar 2011 at 4:51

GoogleCodeExporter commented 9 years ago

Original comment by ccherub...@google.com on 21 Mar 2011 at 4:57

GoogleCodeExporter commented 9 years ago
Hi Alain

Of course retrieving events for a specific date range works great following the 
steps described in the documentation. But what we want is to retrieve only the 
modified events by a specific date (e.g. modified since 2011-03-30 10:03:00). I 
don't want to retrieve all events for a specific date range but all modified 
events by a specific date. I think this should be provided by the property 
ModifiedSince of EventQuery but it doesn't work.

http://google-gdata.googlecode.com/svn/docs/folder53/P_Google_GData_Client_FeedQ
uery_ModifiedSince.htm

Stefan

Original comment by swal...@creativ.ch on 30 Mar 2011 at 9:43

GoogleCodeExporter commented 9 years ago
Hi Stefan,

You should use the Feed.StartDate attribute instead of ModifiedSince:
  http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/src/core/feedquery.cs#450

This will set the updated-min query parameter so that the API will returns the 
requested events such as described by the API Reference Guide:
  http://code.google.com/apis/calendar/data/2.0/reference.html#Parameters

I hope this helped!
Best,
Alain

Original comment by ala...@google.com on 30 Mar 2011 at 6:02