Hi,
On Feb 12, 2013, at 1:03 AM, Sven Anders anders@anduras.de wrote:
Hello!
I have problems to get the CalDavZap Calendar running.
My configuration:
Two virtual servers one for Davical [caldav.my.dom] and one for caldavzap [cal.my.dom].
I added the RewriteRules (from ../carddavmate/misc/config_davical.txt).
I tried using these config settings (in config.js):
a) var globalNetworkCheckSettings={href: 'http://caldav.my.dom:80/caldav.php/', hrefLabel: null, crossDomain: null, additionalResources: [], forceReadOnly: null, withCredentials: false, showHeader: true, settingsAccount: true, syncInterval: 60000, timeOut: 30000, lockTimeOut: 10000}; and
b) var globalNetworkAccountSettings={href: 'http://calmy.dom:80/auth/', crossDomain: true, withCredentials: false, syncInterval: 0, timeOut: 30000};
Additionally configuring "auth/config.inc" with the correct URL 'href'=>'http://caldav.my.dom:80/caldav.php/%27.$_SERVER%5B%27PHP_AUTH_USER%27%5D.%27...', and "auth/plugins/generic_conf.inc" with: $pluginconfig['base_url']='http://caldav.my.dom:80';
But I always get errors.
Case a) I get an Web-Browser Authorization window, asking for account and password, which I do not want. Given the right credentials here, does not work.
Case b) I get an Web-Browser Authorization window, asking for account and password, which I do not want. Given the right credentials here, show the calendar gui but no calender data.
I the firebug console I saw: "NetworkError: 401 Unauthorized - http://caldav.my.dom/caldav.php/anders/"
It's very interesting because a.) and b.) are exactly the same setup [first always try the a.) - the only benefit from b.) is that you can generate configuration dynamically and you will NOT get authorisation window if you enter wrong credentials]
Have you executed the cache_update.sh after you changed the config.js? ... if not then your browser will use the previous version from the HTML5 cache [maybe the reason why you not get the same result in a.) and b.)]
Have you checked if your server returns the headers defined in rewrite rules (for example in Firebug)? ... maybe you forgot to reload apache?
Have you tried to restart Firefox? ... usually if you use Firebug for long time without restarting FF, it causes many mysterious problems :-)
If it is possible you can send me a private e-mail with some testing credentials and I can check where is the problem.
JM