Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No calendar entries in ICAL ICS when accessing as guest #386

Open
jwleon opened this issue May 25, 2023 · 2 comments
Open

No calendar entries in ICAL ICS when accessing as guest #386

jwleon opened this issue May 25, 2023 · 2 comments

Comments

@jwleon
Copy link
Contributor

jwleon commented May 25, 2023

Hi there, I encountered a strange behavior in either HumHub itself, the calendar module or a combination of both - unfortunately, I can not pinpoint it to a specific change / update I made - all I can say is that it was working as intended before (and until a few weeks ago). Also, I made some small modifications to the code, but I reviewed all of it and I think it's unlikely that it caused those issues.

Expected behavior:
When exporting the calendar using an ICAL/ICS export URL that includes "All my spaces" and "Profile entries", the URL should work both as logged in user and as guest (since other platforms like Google Calendar do not have any means to authenticate before syncing those URLs).

Current behavior:
Downloading the ICS file via the generated URL yields expected results when logged in (active browser session) and yields an empty (yet valid) ICS file when accessing it as guest (tested with incognito mode). Inspecting some of the intermediate code states, it seems like the database query gives an empty result array. I var_dump()ed the results in CalendarService->getCalendarItems() ang got valid results for the logged in user and an array(0) { } for guest access.


If you need some more information, feel free to ask! :-) I would also be glad to help on sorting this out (if it not caused by me after all), but my skills did not allow any further debugging or problem solving...


Edit: Taking a look into the $contentContainer-parameter of the function named above, it only contains the user "space" for guests (which obviously would be empty) and a list of spaces for logged in users. It could be the root of the problem?!

@jwleon
Copy link
Contributor Author

jwleon commented May 28, 2023

The upgrade from HumHub 1.14.1 (I think) to 1.14.2 solved the issue. I took a look into the diff to see what might have been the reason but couldn't figure it out...

@luke-
Copy link
Contributor

luke- commented May 29, 2023

Thanks for the info. That is really strange, no idea what this could cause this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants