The Omni Group Forums

The Omni Group Forums (
-   Other WebDAV (
-   -   Lion Server for WebDav (

Wolfgang 2011-07-27 06:58 AM

Lion Server for WebDav
Has anyone tried to use the new Lion Server with WebDav enabled to sync Mac, iPad and iPhone? Before I buy I want to make sure it works, because some other products (not from Omni) are having troubles to use the Lion WebDav server. Any info on this subject appreciated.
regards, Wolfgang

andyboutte 2011-08-04 09:41 PM

Working on it right now...will post back with results.

andyboutte 2011-08-09 08:42 AM

Its a no go for now. It looks like some sort of permissions issue but they are aware of it and are working on it.

ctrld 2011-08-29 06:23 AM

I love you, Apple...
It is impossible to sync via WebDAV in OS X Lion Server. You will receive errors 502, 403 during the MOVE transaction.

I found the solution. But I can't guarantee the effect - maybe you should reconfigure Apache every time after upgrade/etc.
OS: OS X Lion Server, 10.7.0, 10.7.2 beta.
$ cd /etc/apache2
$ sudo vim httpd_webdavsharing.conf
After </Location> add these lines:
DavLockDB /var/tmp/DavLock
Alias /secretplace /Users/username/Sync
<Directory /Users/username/Sync>
AuthType Digest
AuthName "UserWebDAV Gateway"
Require valid-user

Create Sync dir and grant permission:
$ mkdir /Users/username/Sync
$ chmod 777 /Users/username/Sync

Restart Apache
$ sudo apachectl stop
$ sudo apachectl start

In the WebDAV Sync preferences setup URL:
https /secretplace/

Press Sync and prey.

It is not enough to change permissions for "default" DAV Share directory, I found only described method is working...

But be warned - if your devices will stop sync after update, server restart and other similar action - repeat.

domw79 2011-09-07 03:04 AM

This worked for me. Thanks!

EdwardGrabner 2011-09-13 05:43 AM

Thanks for this workaround.

But I would much appreciate to have an updated version of OmniFocus that can handle this. And it seems to be not only to a Lion Server problem.

I used to keep my OnmiFocus database on a Synology NAS and synced my iPhone and iPad with it from everywhere. My OmniFocus 1.9.2 bought on the Mac App Store (MAS) could sync nicely with the NAS, too. After upgrading my iMac to Lion, I also upgraded my Synology DiskStation to a new firmware, DSM 3.2beta for Lion compatibility. This worked pretty well, no sync issues so far. Just recently Synology released the final version of DSM 3.2, and afterwards I started to get sync errors. I then tried to move the OnmiFocus database to my Mac mini Lion Server and sync through WebDav. But exactly the same errors happened.

I think Synology uses reverse engineered protocols to stay compatible with Lion. I am not sure if they reverse engineered successfully the Lion Server WebDav problems. Seems a bit strange.

Then OmniFocus 1.9.3 came out. The MAS Version was still not out, so I tried the trial version from the website, and it worked! When v1.9.3. was available on the MAS I removed the trial version and downloaded from the MAS again, but instantly got sync errors again.

Even more strange.

Todd Seager 2011-10-06 04:17 PM

Still can't get it to work
I'm very close, but still missing the mark. It appears that three of you have it working under Lion.

Would someone post their httpd_webdavsharing.conf, and explicitly mark any sensitive details that were removed?

I can connect from another Mac over WebDav if I disable SMB and AFP using the default settings, or with the recommended changes. However, I must use the following URL, not what was posted:

However, if I configure OmniFocus to use that URL, it prompts me for the password, creates a folder for a very brief period of time, and deletes it.

I followed the suggestions CTRLD posted, but the alias does not work, so I only was able to connect by using the default directories and changing permissions.

In addition to posting a sample httpd_webdavsharing.conf,
1) how do you format the file to get more than one user directory to work for more than one user?

2) What is meant by CTRLD's post when he/she says:
"In the WebDAV Sync preferences setup URL"?
I'm assuming this is OmniFocus' "Location". As such, I don't see how "https /secretplace/" could work. Should it not be ""? That is, with a http (not https), and without spaces? Or is this item configured in another server configuration file.

3) Is basic authentication required for OmniFocus if only IOS devices and Mac desktops will access the share?

ctrld 2011-10-14 09:08 AM

My config is:
# Apache Config for WebDAV Sharing
# Activated and deactivated by webapp

RegisterResource "WebDAV Sharing: %c %s" /webdav main webdav
RewriteEngine On
RewriteMap webdavmap prg:/usr/libexec/webdavsharing/webdavsharing_mapper
RedirectMatch permanent ^/webdav$ /webdav/
<Location "/webdav">
AuthType Digest
AuthName "UserWebDAV Gateway"
Require valid-user
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*
RewriteRule . - [F]
RewriteCond %{REMOTE_USER} (.+)
RewriteRule /webdav(.*) ${webdavmap:%1}$1 [P,DPI]

DavLockDB /var/tmp/DavLock
Alias /secretplace /Users/ctrld/syn
<Directory /Users/ctrld/syn>
AuthType Digest
AuthName "UserWebDAV Gateway"
Require user ctrld

I am using URL [url][/url] in OmniFocus. And you additionally need to setup webdav on any other share.

For few users you should configure different aliases/directories/valid users. 2011-11-06 10:31 AM

Hey ctrld,

thanks for helping with this workaround, works awsome also with latest Lion patches! Take care and dont mind those users requesting an integrated solution for ofocus, your application can and should not replace the admin of the sync-server.



nopixies 2012-01-25 04:08 AM

TIP for those without access to backend services

I can export and iCal to work on my local iCal.
Then publish to both Snow Leopard Server and Lion Server. Still can't publish directly out of OMNIPLAN makes me very sad ...

Not pretty either!

All times are GMT -8. The time now is 10:32 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.