texxasrulez / calendar

GNU Affero General Public License v3.0
14 stars 14 forks source link

Roundcube 1.5 & Nextcloud calendar #23

Open quenenni opened 3 years ago

quenenni commented 3 years ago

Hello,

I installed the plugin on my Roundcube v1.5 and I'm trying to have Nextcloud agendas available.

Nextcloud and Roundcube are setup with LemonLdap SSO, but as I read here in a ticket from rcmcarddav plugin (https://github.com/mstilkerich/rcmcarddav/issues/319 / plugin used by this one to access Nextcloud Dav frontend if I'm correct), I need to use the OIDC plugin instead of the SAML one in Nextcloud if I can hope to make it works.. that's for later. For now, I tested with apps generated access in Nextcloud.

As I showed in this ticket (https://github.com/texxasrulez/calendar/issues/22), I installed the plugin manually. I hope I didn't forget a step. But the calendars seems to work fine.

I can successfully add a calendar from our Nextcloud.

I can see the entries from the Nc calendar, I can edit them or add new one in Roundcube or in Nextcloud and they sync both ways.. Very very nice.

The problems I have:

quenenni commented 3 years ago

I modified the code to see how it goes. In the file plugins/calendar/lib/js/fullcalendar.js, line 4363:

if (hasEventRenderHandlers && typeof seg !== 'undefined') {

And on line 4366:

if (el && typeof seg !== 'undefined') {

With this, weekly and daily view are working.

New small rendering problems showed up: It seems that the first 2 entries are correctly renderred and at the right place. But after that, from the third, all the new entries, in the monthly view, are on the same day and in the daily view, they are all stacked under the third entry. The category color css also starts to have problem from the third entry. Manipulating entries with occurrences, like editing it and changing the number of occurrences or switching it off (and so deleting all the future one) works partially.

Also, when creating a new entry, it selects the anniversary calendar by default. If I validate there is a generic error msg in Roundcube and in the JS console:

Uncaught TypeError: t is null
    triggerEvent https://mail.nubo.name/program/js/common.min.js?s=1625341187:28
    http_response https://mail.nubo.name/program/js/app.min.js?s=1625341187:35
    success https://mail.nubo.name/program/js/app.min.js?s=1625341187:35
    jQuery 6
    http_request https://mail.nubo.name/program/js/app.min.js?s=1625341187:35
    http_post https://mail.nubo.name/program/js/app.min.js?s=1625341187:35
    update_event https://mail.nubo.name/plugins/calendar/calendar_ui.js?s=1612377324:2528
    save_func https://mail.nubo.name/plugins/calendar/calendar_ui.js?s=1612377324:910
    jQuery 23
    event_edit_dialog https://mail.nubo.name/plugins/calendar/calendar_ui.js?s=1612377324:954
    select https://mail.nubo.name/plugins/calendar/calendar_ui.js?s=1612377324:3715
    publiclyTrigger https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:9355
    publiclyTrigger https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:8783
    triggerSelect https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:3989
    reportSelection https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:3984
    interactionEnd https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:11273
    trigger https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:5866
    handleInteractionEnd https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:5730
    handleInteractionEnd https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:2440
    endInteraction https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:5725
    i jQuery
    intercept https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:1535
    jQuery 4
    trigger https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:1557
    handleMouseUp https://mail.nubo.name/plugins/calendar/lib/js/fullcalendar.js?s=1628101559:2260