Unable to access shared link if not logged in

Hello,
I shared a file through a link. If i access the link without to be logged in i get error:

"GET","url":"/s/nokpfp3xK38EMn4","message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /var/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/var/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4",

Same link accessed if user is logged in works fine.

Why Appointments are involved?
Nextcloud and all apps are up to date.

2 Likes

Hello,
Same issue here since last update 29.0.3

{"reqId":"LbwZQ5xRpAINIE7t1FQL","level":3,"time":"2024-07-04T09:24:23+00:00","remoteAddr":"::ffff:192.168.x.x","user":"--","app":"index","method":"GET","url":"/index.php/s/XpXbBr8A2SQdXAx","message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /var/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/var/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:127.0) Gecko/20100101 Firefox/127.0","version":"29.0.3.4","exception":{"Exception":"Exception","Message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /var/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/var/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /var/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php","line":96,"function":"getAllAppointmentConfigurations","class":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService","type":"->"},{"file":"/var/www/nextcloud/apps/calendar/lib/Listener/CalendarReferenceListener.php","line":48,"function":"run","class":"OCA\\Calendar\\Service\\CalendarInitialStateService","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Calendar\\Listener\\CalendarReferenceListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":86,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":98,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Listeners/LoadViewerListener.php","line":52,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Text\\Listeners\\LoadViewerListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":86,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":98,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php","line":237,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/files_sharing/lib/Controller/ShareController.php","line":346,"function":"renderPage","class":"OCA\\Files_Sharing\\DefaultPublicShareTemplateProvider","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"showShare","class":"OCA\\Files_Sharing\\Controller\\ShareController","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php","Line":62},"message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /var/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/var/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62","exception":{},"CustomMessage":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /var/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/var/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62"}}

Same issue since calendar update this morning - now 4.7.9.

{"reqId":"ZoZqC5KXqAVgkHuD7vANIQAAAAE","level":3,"time":"2024-07-04T09:23:24+00:00","remoteAddr":"46.114.95.37","user":"--","app":"index","method":"GET","url":"/index.php/s/Cm9knsqbJqnme3e","message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /home/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/home/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36","version":"29.0.3.4","exception":{"Exception":"Exception","Message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /home/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/home/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62","Code":0,"Trace":[{"file":"/home/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Files_Sharing\\Controller\\ShareController"],"showShare"]},{"file":"/home/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareController","showShare",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["Cm9knsqbJqnme3e","files_sharing.share.showshare"]]},{"file":"/home/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/s/Cm9knsqbJqnme3e"]},{"file":"/home/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":170,"Previous":{"Exception":"TypeError","Message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /home/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96","Code":0,"Trace":[{"file":"/home/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php","line":96,"function":"getAllAppointmentConfigurations","class":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService","type":"->","args":[null]},{"file":"/home/www/nextcloud/apps/calendar/lib/Listener/CalendarReferenceListener.php","line":48,"function":"run","class":"OCA\\Calendar\\Service\\CalendarInitialStateService","type":"->","args":[]},{"file":"/home/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Calendar\\Listener\\CalendarReferenceListener","type":"->","args":[["OCP\\Collaboration\\Reference\\RenderReferenceEvent"]]},{"file":"/home/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[["OCP\\Collaboration\\Reference\\RenderReferenceEvent"],"OCP\\Collaboration\\Reference\\RenderReferenceEvent",["Symfony\\Component\\EventDispatcher\\EventDispatcher"]]},{"file":"/home/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[["Closure"],["Closure"],["Closure"]],"OCP\\Collaboration\\Reference\\RenderReferenceEvent",["OCP\\Collaboration\\Reference\\RenderReferenceEvent"]]},{"file":"/home/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":86,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\Collaboration\\Reference\\RenderReferenceEvent"],"OCP\\Collaboration\\Reference\\RenderReferenceEvent"]},{"file":"/home/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":98,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\Collaboration\\Reference\\RenderReferenceEvent",["OCP\\Collaboration\\Reference\\RenderReferenceEvent"]]},{"file":"/home/www/nextcloud/apps/text/lib/Listeners/LoadViewerListener.php","line":52,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\Collaboration\\Reference\\RenderReferenceEvent"]]},{"file":"/home/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":86,"function":"handle","class":"OCA\\Text\\Listeners\\LoadViewerListener","type":"->","args":[["OCA\\Viewer\\Event\\LoadViewer"]]},{"file":"/home/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":230,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[["OCA\\Viewer\\Event\\LoadViewer"],"OCA\\Viewer\\Event\\LoadViewer",["Symfony\\Component\\EventDispatcher\\EventDispatcher"]]},{"file":"/home/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":59,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[["Closure"],["Closure"],["Closure"]],"OCA\\Viewer\\Event\\LoadViewer",["OCA\\Viewer\\Event\\LoadViewer"]]},{"file":"/home/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":86,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCA\\Viewer\\Event\\LoadViewer"],"OCA\\Viewer\\Event\\LoadViewer"]},{"file":"/home/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":98,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCA\\Viewer\\Event\\LoadViewer",["OCA\\Viewer\\Event\\LoadViewer"]]},{"file":"/home/www/nextcloud/apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php","line":237,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCA\\Viewer\\Event\\LoadViewer"]]},{"file":"/home/www/nextcloud/apps/files_sharing/lib/Controller/ShareController.php","line":346,"function":"renderPage","class":"OCA\\Files_Sharing\\DefaultPublicShareTemplateProvider","type":"->","args":[["OC\\Share20\\Share"],"Cm9knsqbJqnme3e",""]},{"file":"/home/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":232,"function":"showShare","class":"OCA\\Files_Sharing\\Controller\\ShareController","type":"->","args":[""]},{"file":"/home/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":138,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Files_Sharing\\Controller\\ShareController"],"showShare"]},{"file":"/home/www/nextcloud/lib/private/AppFramework/App.php","line":184,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Files_Sharing\\Controller\\ShareController"],"showShare"]},{"file":"/home/www/nextcloud/lib/private/Route/Router.php","line":338,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Files_Sharing\\Controller\\ShareController","showShare",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["Cm9knsqbJqnme3e","files_sharing.share.showshare"]]},{"file":"/home/www/nextcloud/lib/base.php","line":1050,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/s/Cm9knsqbJqnme3e"]},{"file":"/home/www/nextcloud/index.php","line":49,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/home/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php","Line":62},"message":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /home/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/home/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62","exception":[],"CustomMessage":"OCA\\Calendar\\Service\\Appointments\\AppointmentConfigService::getAllAppointmentConfigurations(): Argument #1 ($userId) must be of type string, null given, called in /home/www/nextcloud/apps/calendar/lib/Service/CalendarInitialStateService.php on line 96 in file '/home/www/nextcloud/apps/calendar/lib/Service/Appointments/AppointmentConfigService.php' line 62"},"id":"66866b820e3c6"}

Best regards, Timo

I"m experiencing exactly the same problem. I installed a new nextcloud setup this week using the AIO container install method, with the specific purpose of creating a file ‘drop box’ for an upcoming event.

But setting the share options to ‘file drop’ gives me the same error, also when pasting the link in an already logged in (to nextcloud) browser window shows the upload page just fine.

There is a bug report on GitHub:

2 Likes

@Miro_Igov @mranderson56 @twiedenmann @fredvd

usually we would need way more informations about your systems in question. pls follow

to post valid help-requests.

so here we have a possible hint hidden in one answer.

Did you all upgrade your calendar-app to the newest version before encountering these problems?
It could be a bug in that app… and we could try to stop delivery until it’s fixed.

I think you put the finger on the problem…

It’s since last calendar 4.7.9 update, i have another instance of Nextcloud 29.0.3 with Calendar 4.7.8 and no issue !

1 Like

@mritzmann did the job and found the relating issue on Github.

Which means: there IS a possible bug and there’s nothing left to do here on the forum other than just waiting on it’s solution

1 Like

Seems to have been fixed in 4.7.10. That was quick!

https://github.com/nextcloud/calendar/blob/v4.7.10/CHANGELOG.md

1 Like

Maybe a solution from here

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.