View Issue Details

IDProjectCategoryView StatusLast Update
0001549SOGoBackend Generalpublic2012-01-16 21:45
ReporterDominique Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
PlatformLinuxOSUbuntuOS Version11.10 (x64)
Product Version1.3.10 
Summary0001549: CalDAV sync fail in 1.3.11 (true for CardDav as well)
Description

I used to sync very happily and successfully a Samsung Galaxy S2 with Sogo 1.3.10 through dmfs (from Marten Gajda) CalDAV and CardDAV app and so both under normal connection (80) and ssl (443). This allowed multiple calendar access (through delegated calendars). Same statement for iPad2 IOS 5.0.1.

After updating to version 1.3.11 (same holds true on a clean install), it does not work any more.

Steps To Reproduce

Ubuntu 11.10 (and 10.04 LTS)
Run SOGo 1.3.11 (as an upgrade or clean install)
Install dmfs app on your phone
Fail to connect - generic calendar (auto discover)
Connect for specific calendar
Cannot Create/edit...

Some is true for iPad2 IOS 5.01

Additional Information

After updating to version 1.3.11, I had to recreate the connection from my phone since it did not want to use the current setup. When restarting the connection process, the app does not want to create a generic connection to the SOGo server (just with the server name), and when specifying a specific account (server/SOGo/dav/user/Calendar/personal/) you only ahve access to one calendar - not even working one as you cannot sync new entries from the phoen to the server, and the existing calendar entries from the server do not show up.

I disabled ssl support to check only std port but no success for 1.3.11

I wrote to Marten to report the bug and after several tests on his side, and a few more one mine, it would seems the problem is on the SOGo side. To be sure I setup a test SOGo 2.0.0 (Build 201112141323) server and everything worked well as expected with the app (both port 80 and 443).

The same holds true on iPad2 IOS 5.01 which used to work as well (Calendar/Tasks/Address Book)

In the SOGo Log, when forcing the creation of a single account, the following appears when trying to sync/create/edit:

localhost - - [14/Dec/2011:19:47:54 GMT] "POST /SOGo/so/dcouot/Calendar/eventsblocks?sd=20111128&ed=20120101&view=monthview HTTP/1.1" 200 647/0 0.055 2565 74% 0
localhost - - [14/Dec/2011:19:48:45 GMT] "PROPFIND /SOGo/dav/dcouot/Calendar/personal/ HTTP/1.1" 401 0/130 0.001 - - 0
2011-12-14 19:48:46.036 sogod[11695] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CalDAV-Sync for Android (gzip)'
localhost - - [14/Dec/2011:19:48:46 GMT] "PROPFIND /SOGo/dav/dcouot/Calendar/personal/ HTTP/1.1" 207 409/130 0.003 - - 0
localhost - - [14/Dec/2011:19:48:46 GMT] "PROPFIND /SOGo/dav/ HTTP/1.1" 401 0/130 0.001 - - 0
2011-12-14 19:48:46.811 sogod[11695] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CalDAV-Sync for Android (gzip)'
localhost - - [14/Dec/2011:19:48:46 GMT] "PROPFIND /SOGo/dav/ HTTP/1.1" 207 362/130 0.002 - - 0
localhost - - [14/Dec/2011:19:48:47 GMT] "PROPFIND /SOGo/dav/dcouot/Calendar/personal/ HTTP/1.1" 401 0/160 0.001 - - 0
2011-12-14 19:48:47.734 sogod[11695] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CalDAV-Sync for Android (gzip)'
localhost - - [14/Dec/2011:19:48:47 GMT] "PROPFIND /SOGo/dav/dcouot/Calendar/personal/ HTTP/1.1" 207 413/160 0.003 - - 0
localhost - - [14/Dec/2011:19:48:47 GMT] "PROPFIND /SOGo/dav/dcouot/Calendar/personal/ HTTP/1.1" 401 0/340 0.002 - - 0
2011-12-14 19:48:48.068 sogod[11695] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CalDAV-Sync for Android (gzip)'
localhost - - [14/Dec/2011:19:48:48 GMT] "PROPFIND /SOGo/dav/dcouot/Calendar/personal/ HTTP/1.1" 207 657/340 0.005 2249 70% 0
localhost - - [14/Dec/2011:19:48:48 GMT] "PROPFIND /SOGo/dav/dcouot/Calendar/personal/ HTTP/1.1" 401 0/340 0.003 - - 0
2011-12-14 19:48:48.485 sogod[11695] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CalDAV-Sync for Android (gzip)'
localhost - - [14/Dec/2011:19:48:48 GMT] "PROPFIND /SOGo/dav/dcouot/Calendar/personal/ HTTP/1.1" 207 657/340 0.005 2249 70% 0

Similar entries exist for the iPad.

TagsNo tags attached.

Activities

Marten Gajda

Marten Gajda

2011-12-16 07:23

reporter   ~0003176

I sent Dominique a test request and it turned out that the value of the response>href element startet with http:/www... instead of http://www... . My app skips those responses and hence it doesn't sync.

dekkers

dekkers

2011-12-23 15:18

reporter   ~0003191

I have no problem syncing with caldav-sync or iOS and SOGo 1.3.11. I've also seen no other complaints. Are you sure the problem isn't a typo in the apache configuration, for example in x-webobjects-server-url?

Dominique

Dominique

2011-12-23 15:30

reporter   ~0003192

I am not saying SOGO 1.3.11 does not sync ... I say it does sync when installed on Ubuntu 11.10
My production setup on Ubuntu 11.04 works fine. Furthermore other elements are not configured properly ( I had a quick look at the SOgo module for webmin in Ubuntu 11.10 and nothing is configured properly.) So I venture the problem lies in the integration of SOGo 1.3.11 (because that's the one I tested) with Ubuntu 11.10. For testing purposes my Ubuntu 11.10 was plain, no thrills setup, just with Apache and Mysql. The configuration files are the standard ones provided during Ubuntu install, and the SOGo ones are copies of my prod environment. And different trials ended up with the same problems.

mfies

mfies

2012-01-11 09:41

reporter   ~0003266

We're having the very same problem here - sync with CalDAV stopped working after an upgrade from SOGo 1.3.10 to 1.3.11 (on Ubuntu 10.04). Is there anything new regarding this issue?

dekkers

dekkers

2012-01-11 10:23

reporter   ~0003267

Can you post your SOGo log and apache config? Because it's working for everyone else, it might be something wrong in your configuration, or at least something different than everyone else has.

2012-01-11 11:02

 

apache.conf (1,179 bytes)

2012-01-11 11:03

 

sogo.log (2,606 bytes)   
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "OPTIONS /SOGo/dav/myuser/Calendar/eimi_EC8-4ACB3780-3-F4D520/ HTTP/1.1" 401 0/0 0.002 - - 8K
2012-01-11 06:39:34.703 sogod[10433] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CalDAV-Sync for Android (gzip)'
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "OPTIONS /SOGo/dav/myuser/Calendar/eimi_EC8-4ACB3780-3-F4D520/ HTTP/1.1" 200 0/0 0.085 - - 8K
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "REPORT /SOGo/dav/eimi/Calendar/EC8-4ACB3780-1-F4D520/ HTTP/1.1" 207 2875/349 0.049 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "REPORT /SOGo/dav/eimi/Calendar/6C1-4D2EDC80-1-CF4EE80/ HTTP/1.1" 207 126/349 0.038 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "REPORT /SOGo/dav/eimi/Calendar/EC8-4ACB3780-1-F4D520/ HTTP/1.1" 207 15490/255 0.038 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "REPORT /SOGo/dav/eimi/Calendar/7A48-4B59B980-2A9-957590/ HTTP/1.1" 207 366/349 0.037 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "REPORT /SOGo/dav/myuser/Calendar/eimi_EC8-4ACB3780-3-F4D520/ HTTP/1.1" 401 0/351 0.025 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "REPORT /SOGo/dav/eimi/Calendar/6C1-4D2EDC80-1-CF4EE80/ HTTP/1.1" 207 1895/255 0.037 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:34 GMT] "REPORT /SOGo/dav/eimi/Calendar/7A48-4B59B980-2A9-957590/ HTTP/1.1" 207 2331/255 0.037 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:35 GMT] "REPORT /SOGo/dav/myuser/Calendar/eimi_EC8-4ACB3780-3-F4D520/ HTTP/1.1" 207 1577/351 0.041 18848 91% 24K
127.0.0.1 - - [11/Jan/2012:06:39:36 GMT] "REPORT /SOGo/dav/eimi/Calendar/6ECD-4AE18E00-9-48B520/ HTTP/1.1" 207 126/349 0.039 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:36 GMT] "REPORT /SOGo/dav/eimi/Calendar/6ECD-4AE18E00-9-48B520/ HTTP/1.1" 207 5147/255 0.039 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:36 GMT] "OPTIONS /SOGo/dav/myuser/Calendar/personal/ HTTP/1.1" 401 0/0 0.002 - - 0
2012-01-11 06:39:36.192 sogod[10433] -[WEClientCapabilities initWithRequest:]: Unknown WebClient: user-agent='CalDAV-Sync for Android (gzip)'
127.0.0.1 - - [11/Jan/2012:06:39:36 GMT] "OPTIONS /SOGo/dav/myuser/Calendar/personal/ HTTP/1.1" 200 0/0 0.028 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:36 GMT] "REPORT /SOGo/dav/myuser/Calendar/personal/ HTTP/1.1" 401 0/351 0.007 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:36 GMT] "REPORT /SOGo/dav/myuser/Calendar/personal/ HTTP/1.1" 207 643/351 0.043 5133 87% 0
127.0.0.1 - - [11/Jan/2012:06:39:37 GMT] "REPORT /SOGo/dav/myuser/Calendar/personal/ HTTP/1.1" 401 0/287 0.005 - - 0
127.0.0.1 - - [11/Jan/2012:06:39:37 GMT] "REPORT /SOGo/dav/myuser/Calendar/personal/ HTTP/1.1" 207 771/287 0.034 1367 43% 0

sogo.log (2,606 bytes)   
mfies

mfies

2012-01-16 15:24

reporter   ~0003273

@Marten: Can you send me the test request you mentioned, please?

Turns out we're only having problems syncing with some devices, not all.

2012-01-16 16:45

 

current-user-principal.xml (128 bytes)   
<?xml version="1.0" encoding="UTF-8"?>
<D:propfind xmlns:D="DAV:">
<D:prop>
<D:current-user-principal/>
</D:prop>
</D:propfind>
current-user-principal.xml (128 bytes)   
Marten Gajda

Marten Gajda

2012-01-16 16:54

reporter   ~0003274

Last edited: 2012-01-16 16:55

I've attached the request xml file I sent to Dominique (current-user-principal.xml) . Send it to the server with something like:

curl -k --data-binary @current-user-principal.xml -H "Content-type: application/xml" -H "depth:1" -D - -X PROPFIND -u <USERNAME> https://&lt;SERVERNAME>/SOGo/dav/ > response.txt

be sure to replace <USRNAME> and <SERVERNAME> with the actual values and that current-user-principal.xml is in the current working directory. (don't copy the [^])

The response from Dominique's server was

HTTP/1.1 207 Multi-Status
Date: Thu, 15 Dec 2011 11:05:55 GMT
Server: SOPE 4.9.37/WebDAV
pragma: no-cache
cache-control: no-cache
ms-author-via: DAV
content-length: 360
content-type: text/xml; charset="utf-8"
x-dav-error: 200 No error
Vary: Accept-Encoding

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:"><D:response><D:href>http:/SERVERNAME/SOGo/dav/</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop><D:current-user-principal xmlns:D="DAV:"><D:href>http://SERVERNAME/SOGo/dav/USERNAME/&lt;/D:href>&lt;/D:current-user-principal>&lt;/D:prop>&lt;/D:propstat>&lt;/D:response>&lt;/D:multistatus>

You can see that the first href value starts with http:/ instead of http://
(I replaced SERVERNAME and USERNAME)

ludovic

ludovic

2012-01-16 19:24

administrator   ~0003277

Dominique, show your .GNUstepDefaults.

mfies

mfies

2012-01-16 20:24

reporter   ~0003278

Last edited: 2012-01-16 20:33

In my case the result looks a little different:

HTTP/1.1 207 Multi-Status
Date: Mon, 16 Jan 2012 20:20:08 GMT
Server: SOPE 4.9.37/WebDAV
pragma: no-cache
cache-control: no-cache
ms-author-via: DAV
content-length: 319
content-type: text/xml; charset="utf-8"
x-dav-error: 200 No error
Via: 1.1 SERVERNAME

Vary: Accept-Encoding

<?xml version="1.0" encoding="utf-8"?>
<D:multistatus xmlns:D="DAV:"><D:response><D:href>/SOGo/dav/</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop><D:current-user-principal xmlns:D="DAV:"><D:href>/SOGo/dav/USERNAME/</D:href></D:current-user-principal></D:prop></D:propstat></D:response></D:multistatus>

I replaced SERVERNAME and USERNAME. Yet SERVERNAME doesn't appear at all the respone!

ludovic

ludovic

2012-01-16 20:26

administrator   ~0003279

My guess is that Dominique uses WOApplicationRedirectURL which MUST NOT be used anymore with SOGo.

Dominique

Dominique

2012-01-16 21:19

reporter   ~0003280

Last edited: 2012-01-16 21:24

Here is my .GNUstepDefaults (see attachments) which is working fine for SOGo 1.3.11 on both Ubuntu 10.04 and 11.04 without editing it. Same file was used for Ubuntu 1.3.11 install.

2012-01-16 21:19

 

.GNUstepDefaults (1,775 bytes)
ludovic

ludovic

2012-01-16 21:21

administrator   ~0003281

Remove "WOUseRelativeURLs = NO;".

Dominique

Dominique

2012-01-16 21:43

reporter   ~0003282

OK, that did it, however the "WOUseRelativeURLs = NO;" did not create problems prior to version 1.3.11 under Ubuntu (nightly version 2.0.0 20120116090 to be exact for this last test). Maybe Inverse should document entries in .GNUstepDefaults being deprecated by each growing version (the one just removed is not even called the same way in two different entries here "WOUseRelativeURLs" and "WOApplicationRedirectURL ").

Issue History

Date Modified Username Field Change
2011-12-15 10:06 Dominique New Issue
2011-12-16 07:23 Marten Gajda Note Added: 0003176
2011-12-23 15:18 dekkers Note Added: 0003191
2011-12-23 15:30 Dominique Note Added: 0003192
2012-01-11 09:41 mfies Note Added: 0003266
2012-01-11 10:23 dekkers Note Added: 0003267
2012-01-11 11:02 mfies File Added: apache.conf
2012-01-11 11:03 mfies File Added: sogo.log
2012-01-16 15:24 mfies Note Added: 0003273
2012-01-16 16:45 Marten Gajda File Added: current-user-principal.xml
2012-01-16 16:54 Marten Gajda Note Added: 0003274
2012-01-16 16:55 Marten Gajda Note Edited: 0003274
2012-01-16 19:24 ludovic Note Added: 0003277
2012-01-16 20:24 mfies Note Added: 0003278
2012-01-16 20:26 ludovic Note Added: 0003279
2012-01-16 20:33 mfies Note Edited: 0003278
2012-01-16 21:19 Dominique Note Added: 0003280
2012-01-16 21:19 Dominique File Added: .GNUstepDefaults
2012-01-16 21:20 Dominique Note Edited: 0003280
2012-01-16 21:21 ludovic Note Added: 0003281
2012-01-16 21:24 Dominique Note Edited: 0003280
2012-01-16 21:43 Dominique Note Added: 0003282
2012-01-16 21:45 ludovic Status new => closed
2012-01-16 21:45 ludovic Resolution open => no change required