Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Troubleshooting problem in Infcloud, my web calendar solution

I've written about my web calendar solution. Over time I've noticed that my web calendar malfunctions and doesn't always hide/display my calendars when I check and uncheck the box.

I spent a bunch of time debugging this, and learned that it might be a commit where I forcefully set a variable at login time in commit d9ddf89b32a1514248f0943e72f704a8bcb523e4 to file webdav_protocol.js.

@@ -747,6 +772,8 @@ function netFindResource(inputResource, inputResourceIndex, forceLoad, indexR, l
                    if(globalSettings.activecalendarcollections.value.length>0 && globalVisibleCalDAVCollections.length==0)
                        globalDefaultCalendarCollectionActiveAll=true;
                }
+               // stackrpms,2 This forces all calendars to turn on at initial load
+               globalDefaultCalendarCollectionActiveAll=true;

                if(globalDefaultCalendarCollectionActiveAll)
                    for(var i=0; i<globalResourceCalDAVList.collections.length; i++)

I think even if a calendar is off, but I set that value to true, it misleads the variable globalVisibleCalDAVCollections. I found that using the java console to reset that value makes this work better.

globalVisibleCalDAVCollections=[]

So I haven't made any changes to the code, at this time. By just resetting that array with 5,445 entries (of the 11 calendars I have in production), my web calendar started behaving better.

Comments