* org-caldav for Google or Zimbra?
@ 2013-09-24 21:27 Jason Riedy
2013-09-26 7:54 ` Eric S Fraga
0 siblings, 1 reply; 5+ messages in thread
From: Jason Riedy @ 2013-09-24 21:27 UTC (permalink / raw)
To: emacs-orgmode; +Cc: David Engster
Does anyone have org-caldav working with the new Google endpoint
or Zimbra? The former errors out (there's an issue on github,
but I don't want a github account to ask there), and the latter
uses a different URL scheme...
Zimbra's URL scheme is
https://server.example.com/dav/username/calendarname
with a calendarname is Calendar. Special-casing
org-caldav-events-url for my server appears to work. Feels like
that function could be over-ridden per server / target org file,
but I'm not quite sure what the right granularity should be.
Hm. Perhaps having each synced calendar in a separate org file
might work. Each org file could set some file-wide parameters
like calendar URL.
--
Jason, who no longer has relevant papers on file...
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-caldav for Google or Zimbra?
2013-09-24 21:27 org-caldav for Google or Zimbra? Jason Riedy
@ 2013-09-26 7:54 ` Eric S Fraga
2013-09-26 13:51 ` Jason Riedy
0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2013-09-26 7:54 UTC (permalink / raw)
To: Jason Riedy; +Cc: emacs-orgmode, David Engster
Jason Riedy <jason@lovesgoodfood.com> writes:
> Does anyone have org-caldav working with the new Google endpoint
Can you expand on this? I am not sure what you mean by endpoint. I use
org-caldav-sync several times a day and it generally works very well
with Google's calendar service.
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.1-7-gaecdf5
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-caldav for Google or Zimbra?
2013-09-26 7:54 ` Eric S Fraga
@ 2013-09-26 13:51 ` Jason Riedy
2013-09-26 18:05 ` David Engster
0 siblings, 1 reply; 5+ messages in thread
From: Jason Riedy @ 2013-09-26 13:51 UTC (permalink / raw)
To: emacs-orgmode
And Eric S. Fraga writes:
> Can you expand on this? I am not sure what you mean by
> endpoint. I use org-caldav-sync several times a day and it
> generally works very well with Google's calendar service.
Google has deprecated the URL in org-caldav, and that old URL
does not work for me. The new one is documented at
https://developers.google.com/google-apps/calendar/caldav/v2/guide#new_endpoint
Fiddling with the regexp in org-caldav-events-url triggers an
error apparently in the authentication code:
> Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
> url-http-handle-authentication(nil)
> url-http-parse-headers()
> url-http-chunked-encoding-after-change-function(415 440 25)
> url-http-wait-for-headers-change-function(1 453 452)
> url-http-generic-filter(#<process apidata.googleusercontent.com> "HTTP/1.1 401 Unauthorized\nWWW-Authenticate: Bearer realm=\"https://www.google.com/accounts/AuthSubRequest\"\nContent-Type: text/html; charset=UTF-8\nDate: Thu, 26 Sep 2013 13:48:37 GMT\nExpires: Thu, 26 Sep 2013 13:48:37 GMT\nCache-Control: private, max-age=0\nX-Content-Type-Options: nosniff\nX-Frame-Options: SAMEORIGIN\nX-XSS-Protection: 1; mode=block\nServer: GSE\nAlternate-Protocol: 443:quic\nTransfer-Encoding: chunked\n\ne\nLogin Required\n0\n\n")
> accept-process-output(#<process apidata.googleusercontent.com>)
> #[0 "\302\303\300@!)\207" [(#<process apidata.googleusercontent.com>) inhibit-quit nil accept-process-output] 2 "\n\n(fn)"]()
> funcall(#[0 "\302\303\300@!)\207" [(#<process apidata.googleusercontent.com>) inhibit-quit nil accept-process-output] 2 "\n\n(fn)"])
> url-retrieve-synchronously("https://apidata.googleusercontent.com/caldav/v2/jason.riedy/events/")
> url-http-options("https://apidata.googleusercontent.com/caldav/v2/jason.riedy/events/")
> url-dav-supported-p("https://apidata.googleusercontent.com/caldav/v2/jason.riedy/events/")
> (if (url-dav-supported-p (org-caldav-events-url)) nil (error "The URL %s does not seem to accept DAV requests" (org-caldav-events-url)))
> org-caldav-sync()
> eval((org-caldav-sync) nil)
> eval-last-sexp-1(nil)
> eval-last-sexp(nil)
> call-interactively(eval-last-sexp nil nil)
Someone on github reported the same issue.
--
Jason
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-caldav for Google or Zimbra?
2013-09-26 13:51 ` Jason Riedy
@ 2013-09-26 18:05 ` David Engster
2013-09-26 19:00 ` Jason Riedy
0 siblings, 1 reply; 5+ messages in thread
From: David Engster @ 2013-09-26 18:05 UTC (permalink / raw)
To: Jason Riedy; +Cc: emacs-orgmode
Jason Riedy writes:
> Google has deprecated the URL in org-caldav, and that old URL
> does not work for me. The new one is documented at
> https://developers.google.com/google-apps/calendar/caldav/v2/guide#new_endpoint
>
> Fiddling with the regexp in org-caldav-events-url triggers an
> error apparently in the authentication code:
Google has changed authentication on the new endpoint to OAuth. Julien
has written an OAuth2 client implementation, which is in GNU ELPA, but I
didn't have time to look at it yet. Not sure when I get to it; I hope
someone beats me to it.
-David
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: org-caldav for Google or Zimbra?
2013-09-26 18:05 ` David Engster
@ 2013-09-26 19:00 ` Jason Riedy
0 siblings, 0 replies; 5+ messages in thread
From: Jason Riedy @ 2013-09-26 19:00 UTC (permalink / raw)
To: emacs-orgmode
And David Engster writes:
> Google has changed authentication on the new endpoint to
> OAuth. Julien has written an OAuth2 client implementation,
> which is in GNU ELPA, but I didn't have time to look at it
> yet. Not sure when I get to it; I hope someone beats me to it.
Ok, well understood. Thank you!
--
Jason
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2013-09-26 19:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-24 21:27 org-caldav for Google or Zimbra? Jason Riedy
2013-09-26 7:54 ` Eric S Fraga
2013-09-26 13:51 ` Jason Riedy
2013-09-26 18:05 ` David Engster
2013-09-26 19:00 ` Jason Riedy
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).