Hi,
After apply the path and execute cache_update.sh, i have similar behaviour:
With these 3 configured calendars:
{
        href: 'http://127.0.0.1:5232/user/1.ics/',
        userAuth:
        {
            userName: 'admin@admin.admin',
            userPassword: 'admin@admin.admin'
        },
        timeOut: 90000,
        lockTimeOut: 10000,
        checkContentType: true,
        settingsAccount: false,
        delegation: false,
        forceReadOnly: null,
        ignoreAlarms: false,
        backgroundCalendars: []
    },
    {
        href: 'http://127.0.0.1:5232/workspace/1.ics/',
        userAuth:
        {
            userName: 'admin@admin.admin',
            userPassword: 'admin@admin.admin'
        },
        timeOut: 90000,
        lockTimeOut: 10000,
        checkContentType: true,
        settingsAccount: false,
        delegation: false,
        forceReadOnly: null,
        ignoreAlarms: false,
        backgroundCalendars: []
    },
    {
        href: 'http://127.0.0.1:5232/workspace/2.ics/',
        userAuth:
        {
            userName: 'admin@admin.admin',
            userPassword: 'admin@admin.admin'
        },
        timeOut: 90000,
        lockTimeOut: 10000,
        checkContentType: true,
        settingsAccount: false,
        delegation: false,
        forceReadOnly: null,
        ignoreAlarms: false,
        backgroundCalendars: []
    },
I have only two calendar displayed (/user/1.ics/ and /workspace/2.ics/).
Log says 3 calendar are reads:
Info: [userAccount: 'http://admin@admin.admin@127.0.0.1:5232/user/1.ics/']: crossDomain set to: 'true'
main.js:823 Info: [userAccount: 'http://admin@admin.admin@127.0.0.1:5232/workspace/1.ics/']: crossDomain set to: 'true'
main.js:823 Info: [userAccount: 'http://admin@admin.admin@127.0.0.1:5232/workspace/2.ics/']: crossDomain set to: 'true'
I can setup more calendars configs, bahaviour still like that.
I you need more trace/information, i'm listening.

Regards,
Bastien Sevajol.

On 26/07/2016 18:10, Ján Máté wrote:
Hi,

it doesn't matter where you send your email, just be patient ...

Use the following patch (which ensures that if only globalAccountSettings option is used, then all calendars are loaded):

https://www.inf-it.com/fixes/main.js-loadall.diff

After applying the patch you must execute the cache_update.sh (to force clients to reload the changed source code from your server).


Cheers,


JM


p.s.: the patch will be included in the next version ...



On 26 Jul 2016, at 12:06, Bastien Sevajol <bastien.sevajol@algoo.fr> wrote:

Hi,
I just sent this email to caldavzap@inf-it.com, but davclients@inf-it.com is maybe more appropriate ?

Thank you for your CalDavZap application. I think is the only free full javascript caldav client on the web :)
I have a problem with calendar configuration. I configure 3 calendars in globalAccountSettings, but only one is visible in interface. config.js globalAccountSettings is:

var globalAccountSettings=[
    {
        href: 'http://127.0.0.1:5232/user/3.ics/',
        userAuth:
        {
            userName: 'bastien.sevajol@algoo.fr',
            userPassword: 'bastien.sevajol@algoo.fr'
        },
        timeOut: 90000,
        lockTimeOut: 10000,
        checkContentType: true,
        settingsAccount: true,
        delegation: true,
        hrefLabel: 'http://127.0.0.1:5232/user/3.ics/',
        forceReadOnly: null,
        ignoreAlarms: false,
        backgroundCalendars: []
    },
    {
        href: 'http://127.0.0.1:5232/workspace/2.ics/',
        userAuth:
        {
            userName: 'bastien.sevajol@algoo.fr',
            userPassword: 'bastien.sevajol@algoo.fr'
        },
        timeOut: 90000,
        lockTimeOut: 10000,
        checkContentType: true,
        settingsAccount: true,
        delegation: true,
        hrefLabel: 'http://127.0.0.1:5232/workspace/2.ics/',
        forceReadOnly: null,
        ignoreAlarms: false,
        backgroundCalendars: []
    },
    {
        href: 'http://127.0.0.1:5232/workspace/1.ics/',
        userAuth:
        {
            userName: 'bastien.sevajol@algoo.fr',
            userPassword: 'bastien.sevajol@algoo.fr'
        },
        timeOut: 90000,
        lockTimeOut: 10000,
        checkContentType: true,
        settingsAccount: true,
        delegation: true,
        hrefLabel: 'http://127.0.0.1:5232/workspace/1.ics/',
        forceReadOnly: null,
        ignoreAlarms: false,
        backgroundCalendars: []
    },
];
<Mail Attachment.png>
Actually, 2 others calendars are loaded and in HTML DOM, but with style="display: none;".
Do you know this issue ?

Thank's very much,
Bastien Sevajol.