Baikal on Synology: netFindResource code: 404

I installed Baikal (flat) on my Synology Diskstation, and I can access it find with a URL like https://mynas:8443/baikal/card.php/addressbooks/USERNAME/default Both baikal and carddavmate are installed under /volume1/web as simple subdirectories.. Then I added CardDavMate to the same install using this in config.js: var globalAccountSettings=[{href: 'https://mynas:8443/baikal/card.php/addressbooks/USERNAME/', hrefLabel: 'dav', crossDomain: null, forceReadOnly: null, withCredentials: false, showHeader: true, settingsAccount: true, checkContentType: true, userAuth: {userName: 'USERNAME', userPassword: 'PASSWORD'}, syncInterval: 60000, timeOut: 30000, lockTimeOut: 10000, delegation: false}]; It detects the cross-domain as yes, but then I get "Error: [netFindResource: 'htts://USERNAME@mynas:8443' ] code: '404'" What am I doing wrong? my /usr/syno/etc/http-ssl-vhost.conf-user file looks like this: Listen 8443 <VirtualHost *:8443> SSLEngine on <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog /dev/null \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" Include /usr/syno/etc/sites-enabled-user/*.conf </VirtualHost> Also I noticed that even though I added my CardDav account to my mac 'Contacts' as https://mynas:843/baikal/cards.php/addressbooks/USERNAME/default The macosx contacts app (which works with this addressbook!) now shows the server path as /baikal/card.php/principals/USERNAME/

Hi Mathias, yes, CardDavMATE detects your setup as cross-domain BUT your server MUST be configured to support cross-domain queries (by returning proper CORS headers). The 404 error is really confusing (it is a jQuery error - see http://bugs.jquery.com/ticket/14207). The next version of CardDavMATE (and also CalDavZAP) will use jQuery 2.1 where this error is fixed. The proper error code for cross-domain related issues is 0. See http://www.inf-it.com/caldavzap/readme.txt for more information related to cross-domain setup (yes, it is readme.txt for CalDavZAP but the content is 100% valid also for CardDavMATE). JM On 28 Jan 2014, at 15:27, Mathias Koerber <mathias@koerber.org> wrote:
I installed Baikal (flat) on my Synology Diskstation, and I can access it find with a URL like
https://mynas:8443/baikal/card.php/addressbooks/USERNAME/default
Both baikal and carddavmate are installed under /volume1/web as simple subdirectories..
Then I added CardDavMate to the same install using this in config.js:
var globalAccountSettings=[{href: 'https://mynas:8443/baikal/card.php/addressbooks/USERNAME/', hrefLabel: 'dav', crossDomain: null, forceReadOnly: null, withCredentials: false, showHeader: true, settingsAccount: true, checkContentType: true, userAuth: {userName: 'USERNAME', userPassword: 'PASSWORD'}, syncInterval: 60000, timeOut: 30000, lockTimeOut: 10000, delegation: false}];
It detects the cross-domain as yes, but then I get
"Error: [netFindResource: 'htts://USERNAME@mynas:8443' ] code: '404'"
What am I doing wrong?
my /usr/syno/etc/http-ssl-vhost.conf-user file looks like this:
Listen 8443 <VirtualHost *:8443>
SSLEngine on
<FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch>
BrowserMatch ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog /dev/null \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
Include /usr/syno/etc/sites-enabled-user/*.conf </VirtualHost>
Also I noticed that even though I added my CardDav account to my mac 'Contacts' as https://mynas:843/baikal/cards.php/addressbooks/USERNAME/default
The macosx contacts app (which works with this addressbook!) now shows the server path as
/baikal/card.php/principals/USERNAME/
participants (2)
-
Ján Máté
-
Mathias Koerber