Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion BUG: Google fails to parse RRULE:FREQ=WEEKLY;COUNT=10;BYD AY=MO
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ryan Boyd (Google) Google employee  
View profile  
 More options Nov 22 2006, 12:48 pm
From: "Ryan Boyd (Google)" <api.rb...@google.com>
Date: Wed, 22 Nov 2006 09:48:49 -0800
Local: Wed, Nov 22 2006 12:48 pm
Subject: Re: BUG: Google fails to parse RRULE:FREQ=WEEKLY;COUNT=10;BYDAY=MO
Mark and Charlie,

This appears to be an intermittent failure on our side.  I can use the
same recurrence syntax with great success, but I do sometimes receive a
400 response.

Charlie -- code I am able to use to recreate this is below this
message.

Cheers,

-Ryan

---

import com.google.gdata.client.*;
import com.google.gdata.client.calendar.*;
import com.google.gdata.data.*;
import com.google.gdata.data.extensions.*;
import com.google.gdata.data.calendar.*;
import java.net.*;
import java.util.*;

public class TestCW {
  public static void main(String[] args){
    try {
      String user = "r...@ryguy.com";
      String pass = "PASS";
      String calendarUrl =
"http://www.google.com/calendar/feeds/default/private/full";

      String name = "Ryan Boyd";
      String title = "TestCW recurring event";
      String content = "11/22 bug report on groups";

      String crlf = "\r\n";
      String recurString = null;

      recurString = "DTSTART;TZID=GMT:20061114T220000" + crlf +
                    "DURATION:PT3600S" + crlf +
                    "RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=TU;WKST=SU";

      URL postUrl = null;

      postUrl = new URL(calendarUrl);

      CalendarEventEntry myEntry = new CalendarEventEntry();
      myEntry.setTitle(new PlainTextConstruct(title));
      myEntry.setContent(new PlainTextConstruct(content));

      Person author = new Person(name, null, user);
      myEntry.getAuthors().add(author);

      Recurrence r = new Recurrence();
      r.setValue(recurString);
      myEntry.setRecurrence(r);

      CalendarService myService =
        new CalendarService("rbtest");
      myService.setUserCredentials(user,pass);

      EventEntry insertedEntry = myService.insert(postUrl, myEntry);
    } catch (Exception ex){
      ex.printStackTrace();
    }
  }

}


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google