iPhone FW 3.0 CALDAV

Best practice information from Scalix users relating to integration of Scalix with other products.

Moderator: ScalixSupport

SvenJust

Re: iPhone FW 3.0 CALDAV

Postby SvenJust » Mon Sep 14, 2009 5:32 am

Hi Gren,

would you be so kind to post your dav configuration for iphone 3.1 and scalix?

Thanks
Sven

SvenJust

Re: iPhone FW 3.1 CALDAV

Postby SvenJust » Mon Sep 28, 2009 5:08 am

Hi,

I find some time to configure CalDAV and WOW it works great!

I use the following configuration:

Code: Select all

Server        <<servername>>
User Name     <<user@domain>>
Password      <<password>>
Description   CalDav


Advanced Settings:

Code: Select all

Use SSL       OFF
Port          80
Account URL   http://<servername>/api/dav/Principals/user@domain


Remember that you have to alter Account URL in Advanced Settings. When I try to configure CalDAV I first forget this and the iPhone suggest another URL.

Code: Select all

http://<servername>/api/dav/Principals/user@domain


The way that works for me is described here: http://www.scalix.com/wiki/index.php?title=TB/TB-2008-01-CALDAV

Thanks

Windspeed7
Posts: 11
Joined: Mon Aug 03, 2009 6:11 pm

Re: iPhone FW 3.0 CALDAV

Postby Windspeed7 » Fri Oct 23, 2009 6:24 am

I just cannot get it to work. In the settings screen it seems that everything is configured correctly (I-Phone gives message if i try a wrong url) but in the Calendar-App the Caldav-Calender does not appear.

It is clearly a I-Phone issue as Caldav works fine with Thunderbird.

Is there anything more i can try? I have OS 3.1.2

gravety
Posts: 18
Joined: Thu Feb 01, 2007 2:02 pm

Re: iPhone FW 3.0 CALDAV

Postby gravety » Fri Oct 23, 2009 10:59 am

What settings are you using Wind?

Windspeed7
Posts: 11
Joined: Mon Aug 03, 2009 6:11 pm

Re: iPhone FW 3.0 CALDAV

Postby Windspeed7 » Tue Oct 27, 2009 1:24 pm

Hi Guys, ITS WORKING!!!

We forgot about caldav months ago because it was not working on our ihones. As i updated the IPhone OS i tried again and did not recognize that the scalix-caldav was not running any more.
I dont know why but a restart of scalix fixt it.

Thanks for the reply anyway.

Regards, Benno

Windspeed7
Posts: 11
Joined: Mon Aug 03, 2009 6:11 pm

Re: iPhone FW 3.0 CALDAV

Postby Windspeed7 » Wed Oct 28, 2009 8:51 am

Oh man, its me again...

At first it seemed like it was working, but only the Public Calendar was synced properly, my private Calendar is just synced once. New appointments are sent to the Server though.

I dont get it. I completely erased the account in the iphone again and created it again with the exact same data. My two Calendars are selectable in the Iphone now but my private calender has no appointments. It is not synced. The Public Calendar is synced.

Its like this IPhone is cursed.

Is there any way to debug the connection (Scalix-Logfile for Caldav)? The Iphone (as all apple stuff) does not display any error-messages at all.

Please Help as i am going insane!

Windspeed7
Posts: 11
Joined: Mon Aug 03, 2009 6:11 pm

Re: iPhone FW 3.0 CALDAV

Postby Windspeed7 » Sun Nov 01, 2009 9:21 am

I noticed na Error in the Log (/var/log/scalix/tomcat/scalix-api.log) when i try to connect to caldav:

Code: Select all

WARN [Imap.select:1596] Folder was already 'really' closed explicitly by SMS
java.lang.IllegalStateException: This operation is not allowed on a closed folder
        at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1032)
        at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1008)
        at com.scalix.api.imap.Imap.select(Imap.java:1588)
        at com.scalix.api.imap.Imap.selectFolder(Imap.java:429)
        at com.scalix.api.mailbox.ImapDataCache.fullSynch(ImapDataCache.java:1066)
        at com.scalix.api.mailbox.ImapDataCache.synchFolder(ImapDataCache.java:698)
        at com.scalix.api.mailbox.ImapDataCache.getMessageByDRef(ImapDataCache.java:263)
        at com.scalix.api.mailbox.Mailbox.getMessageByDirectRef(Mailbox.java:719)
        at com.scalix.api.mailbox.Mailbox.getMessageByDirectRef(Mailbox.java:714)
        at com.scalix.api.mailbox.Mailbox.search(Mailbox.java:439)
        at com.scalix.api.dav.caldav.CalDAVModule.search(CalDAVModule.java:200)
        at com.scalix.api.dav.caldav.CalendarQuery.process(CalendarQuery.java:138)
        at com.scalix.api.dav.repository.ReportMethod.process(ReportMethod.java:74)
        at com.scalix.api.dav.DavController.processRequest(DavController.java:93)
        at com.scalix.api.dav.DavController.handleRequest(DavController.java:123)
        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:839)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:774)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:460)
        at com.scalix.api.PlatformDispatcherServlet.service(PlatformDispatcherServlet.java:74)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.springframework.web.filter.AbstractRequestLoggingFilter.doFilterInternal(AbstractRequestLoggingFilter.java:133)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
        at java.lang.Thread.run(Unknown Source)


Does anybody know what that means?

anybody
Posts: 52
Joined: Thu Apr 09, 2009 7:28 am
Location: Munich, Germany
Contact:

Re: iPhone FW 3.0 CALDAV

Postby anybody » Tue Nov 10, 2009 4:48 am

I'm suffering from the same problems that Windspeed7 had (or has), it seems.
I have created the account on the iPhone with the following settings:

Server: scalix.thecompany.de
User name: user@thecompany.de
Password: mypassword
Description: TheCalendar

Adavanced Settings:
Use SSL: Off
Port: 80
Account URL: http://scalix.thecompany.de/api/dav/Calendars/Users/user@thecompany.de/BB-SxDref-000146fa45802465 (BB-SxDref-000146fa45802465 = The Public folder i'm trying to subscribe to)

I've also tried with SSL on, Port 443 and https in the URL, which makes no difference.

The account seems to be working well, it has successfully been created, and the iPhone - after adjusting Port and URL from the defaults - does not complain.
BUT: The Calendar does not appear in the Calendar application! It's present in the settings and enabled, and after creating it the calendar app seems to download something (icon in the top initially indicates its transfering something), but the calendar never becomes selectable.

I've tried this on two different iPhones (a 3G and a 3GS, both Firmware 3.1.2). Same result.
The account URL i'm using works fine in Thunderbird 3 Beta 4 with yesterdays lightning nightly build plugin.
Also, the URL works fine in Firefox, showing this:

Image

after authenticating with the same "User name" and "Password" entered in the iPhone.

I've read the Wiki entry (http://www.scalix.com/wiki/index.php?title=TB/TB-2008-01-CALDAV) and apart from the fact that I don't understand what the Principals URL "http://<servername>/api/dav/Principals/user@domain" there is supposed to be for (only for iCal ?!?) I think I understand what the Wiki wants to say.

Still, I can't get it to work no matter what I try :(
A google.com CalDAV calendar on the iPhone 3G works fine and appears in the calendar selection. The Scalix one does not.
Last edited by anybody on Tue Nov 10, 2009 6:57 pm, edited 1 time in total.

gren
Scalix
Scalix
Posts: 264
Joined: Thu Mar 25, 2004 10:27 am
Contact:

Re: iPhone FW 3.0 CALDAV

Postby gren » Tue Nov 10, 2009 5:47 am

Hi,

> Account URL: http://scalix.thecompany.de/api/dav/Calendars/Users/user@thecompany.de/BB-SxDref-000146fa45802465

This is the URL for an individual public folder calendar.

I use the iPhone CalDAV client to access ALL my calendars rather than just an individual calendar. I suspect that this may be the only way it works as that would be consistent with how iCal.app works. For this, you need to specify your principal URL NOT an individual Calendar URL.
The correct URL should be of the form (https for preference but http should work if publicly accessible :

Code: Select all

https://<server>/api/dav/Principals/<email address>



Hope this helps,

Regards,
Gren

gravety
Posts: 18
Joined: Thu Feb 01, 2007 2:02 pm

Re: iPhone FW 3.0 CALDAV

Postby gravety » Tue Nov 10, 2009 6:05 am

Account URL: - yeah read Gren's post :D (beat me to it).

I also found tomcat had stalled on me the other day (no Cal in TB or iPhone). A quick scalix-tomcat restart did the trick.

Check all your software versions are up-to-date.

anybody
Posts: 52
Joined: Thu Apr 09, 2009 7:28 am
Location: Munich, Germany
Contact:

Re: iPhone FW 3.0 CALDAV

Postby anybody » Tue Nov 10, 2009 8:19 am

Thank you very much, all solved now.

I would have prefered if it were possible to subscribe to only a single calendar (since the main calendar is already synced using activesync) but I guess that is a problem on Apple's side then, since it works fine with Thunderbird/Lightning.

Having all Calendars simultaneously isn't that bad though, quite a nice view, with all the colors - never had more than one Calendar on the iPhone so far :D :D :D

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Re: iPhone FW 3.0 CALDAV

Postby RSisco » Wed Nov 11, 2009 9:51 am

Okay, so I am new to CalDav. I can't get it working on my iphone, I get no errors, but I also get no data. If I pull up https://<server>/api/dav/Principals/<email address> in a browser, should I see any calendar data? It shows "Scalix DAV Services" and a box with my name in it, but no calendar info. Am I missing something?

Richard
I have officially quit using Scalix, but continue to visit the forums
-------------------------------------------------------------------------------
Scalix Server 11.4.6.13676
Scalix Connect 11.4.6.9214
SWA 11.4.6.12377
Outlook 2007
CentOS 5.3

gren
Scalix
Scalix
Posts: 264
Joined: Thu Mar 25, 2004 10:27 am
Contact:

Re: iPhone FW 3.0 CALDAV

Postby gren » Wed Nov 11, 2009 10:11 am

What you are seeing in the browser is correct. For the Principal URL (which is just a hook to WebDAV servers for "information about me") we only show basic user information in a browser.
However, a CalDAV server can do an HTTP PROPFIND request on the Principal URL to locate where your Calendar Home Set URL is, from which it can locate your calendars.

Some possible causes of issues. You need iPhone 3.1 (I have 3.1.2(7D11)) at least. The original iPhone 3.0 release did not work with Scalix.
Also worth monitoring the scalix-api.log and scalix-api-activity.log files on the server under /var/opt/scalix/??/tomcat/logs/

Regards,
Gren.

RSisco
Posts: 212
Joined: Thu Jul 03, 2008 2:44 pm
Location: Springfield, MO
Contact:

Re: iPhone FW 3.0 CALDAV

Postby RSisco » Wed Nov 11, 2009 10:20 am

Thanks. I upgraded my iPhone to 3.1 just for this - and it didn't work. I didn't spend a lot of time on it because I very quickly decided to go back to version 3.0.1 for some features that were lost in the upgrade. Sometime in the future I will go back to 3.1 and try again - it was just a huge hassle for no result - but I don't blame Scalix.

Richard
I have officially quit using Scalix, but continue to visit the forums
-------------------------------------------------------------------------------
Scalix Server 11.4.6.13676
Scalix Connect 11.4.6.9214
SWA 11.4.6.12377
Outlook 2007
CentOS 5.3


Return to “Third Party Integration”



Who is online

Users browsing this forum: No registered users and 3 guests

cron