The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

Go Back   The Omni Group Forums > OmniFocus > OmniFocus Syncing > Other WebDAV
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Lion Server for WebDav Thread Tools Search this Thread Display Modes
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
 
Working on it right now...will post back with results.
 
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.
 
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 Server.app 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>
DAV On
AuthType Digest
AuthName "UserWebDAV Gateway"
Require valid-user
</Directory>

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 server.domain.com /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.
 
This worked for me. Thanks!
 
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.
 
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:
"http://host.example.com/webdav/username"

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 server.domain.com /secretplace/" could work. Should it not be "http://server.domain.com/secretplace"? 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?
 
My config is:
#
# Apache Config for WebDAV Sharing
# Activated and deactivated by com.apple.webapp.webdavsharing 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]
</Location>

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

I am using URL https://lion.domain.com/secretplace/ in OmniFocus. And you additionally need to setup webdav on any other share.

For few users you should configure different aliases/directories/valid users.

Last edited by ctrld; 2012-04-16 at 11:12 PM..
 
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.

THX,

Torsten
 
WORK AROUND 101.

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!
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mountain Lion Server 10.8 for WebDAV sfmacintosh Other WebDAV 6 2013-04-24 05:46 AM
WebDAV working on Mountain Lion Server, .ics calendar file gives error viticci Other WebDAV 0 2012-12-04 10:39 AM
Anyone able to connect via caldav to lion server? fbonomo OmniPlan General 0 2011-11-19 10:56 AM
WebDAV Lion Server joelande OmniPlan General 0 2011-11-02 12:01 PM
Can't connect to caldav account with Lion Server 10.7.2 fbonomo OmniPlan General 1 2011-10-26 03:40 PM


All times are GMT -8. The time now is 08:00 AM.


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