Öffentliches Teilen eines Formulars sorgt für internen Serverfehler

Hallo Zusammen,

meine Nextcloud in Version 18.05 zeigt folgendes Fehlverhalten:
Ein per Link geteiltes Formular (erstellt mit forms) löst einen internen Serverfehler aus.
Allerdings nur, wenn das Formular öffentlich über einen Link geteilt wird und der Empfänger auf dem Link klickt während er nicht eingelogt ist.

Das NC-Logfile gibt folgendes aus:

{"reqId":"DBEBSNHmu6cLf3ivJAWj","level":3,"time":"2020-06-16T18:47:25+00:00","remoteAddr":"79.213.25.34","user":"--","app":"index","method":"GET","url":"/apps/forms/form/0vnPKurMOTZ1sXcd","message":{"Exception":"Exception","Message":"Argument 2 passed to OCA\\Forms\\Db\\NotificationMapper::findByUserAndForm() must be of the type string, null given, called in /var/www/nextcloud/apps/forms/lib/Controller/PageController.php on line 277","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Forms\\Controller\\PageController","gotoForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/forms/form/0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":109,"Previous":{"Exception":"TypeError","Message":"Argument 2 passed to OCA\\Forms\\Db\\NotificationMapper::findByUserAndForm() must be of the type string, null given, called in /var/www/nextcloud/apps/forms/lib/Controller/PageController.php on line 277","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/forms/lib/Controller/PageController.php","line":277,"function":"findByUserAndForm","class":"OCA\\Forms\\Db\\NotificationMapper","type":"->","args":[2,null]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"gotoForm","class":"OCA\\Forms\\Controller\\PageController","type":"->","args":["0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Forms\\Controller\\PageController","gotoForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/forms/form/0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/forms/lib/Db/NotificationMapper.php","Line":65},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363","version":"18.0.6.0"}
{"reqId":"VIdiOjrHGGlyU9dtz3ZL","level":3,"time":"2020-06-16T18:50:12+00:00","remoteAddr":"79.213.25.34","user":"--","app":"index","method":"GET","url":"/apps/forms/form/0vnPKurMOTZ1sXcd","message":{"Exception":"Exception","Message":"Argument 2 passed to OCA\\Forms\\Db\\NotificationMapper::findByUserAndForm() must be of the type string, null given, called in /var/www/nextcloud/apps/forms/lib/Controller/PageController.php on line 277","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Forms\\Controller\\PageController","gotoForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/forms/form/0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":109,"Previous":{"Exception":"TypeError","Message":"Argument 2 passed to OCA\\Forms\\Db\\NotificationMapper::findByUserAndForm() must be of the type string, null given, called in /var/www/nextcloud/apps/forms/lib/Controller/PageController.php on line 277","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/forms/lib/Controller/PageController.php","line":277,"function":"findByUserAndForm","class":"OCA\\Forms\\Db\\NotificationMapper","type":"->","args":[2,null]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"gotoForm","class":"OCA\\Forms\\Controller\\PageController","type":"->","args":["0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Forms\\Controller\\PageController","gotoForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/forms/form/0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/forms/lib/Db/NotificationMapper.php","Line":65},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36","version":"18.0.6.0"}
{"reqId":"8gguPjfuJ5cd9Esu3rbo","level":3,"time":"2020-06-16T18:59:53+00:00","remoteAddr":"79.213.25.34","user":"--","app":"index","method":"GET","url":"/apps/forms/form/0vnPKurMOTZ1sXcd","message":{"Exception":"Exception","Message":"Argument 2 passed to OCA\\Forms\\Db\\NotificationMapper::findByUserAndForm() must be of the type string, null given, called in /var/www/nextcloud/apps/forms/lib/Controller/PageController.php on line 277","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Forms\\Controller\\PageController","gotoForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/forms/form/0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","Line":109,"Previous":{"Exception":"TypeError","Message":"Argument 2 passed to OCA\\Forms\\Db\\NotificationMapper::findByUserAndForm() must be of the type string, null given, called in /var/www/nextcloud/apps/forms/lib/Controller/PageController.php on line 277","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/forms/lib/Controller/PageController.php","line":277,"function":"findByUserAndForm","class":"OCA\\Forms\\Db\\NotificationMapper","type":"->","args":[2,null]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":170,"function":"gotoForm","class":"OCA\\Forms\\Controller\\PageController","type":"->","args":["0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":99,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":125,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Forms\\Controller\\PageController"},"gotoForm"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php","line":47,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Forms\\Controller\\PageController","gotoForm",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"function":"__invoke","class":"OC\\AppFramework\\Routing\\RouteActionHandler","type":"->","args":[{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":299,"function":"call_user_func","args":[{"__class__":"OC\\AppFramework\\Routing\\RouteActionHandler"},{"hash":"0vnPKurMOTZ1sXcd","_route":"forms.page.goto_form"}]},{"file":"/var/www/nextcloud/lib/base.php","line":1008,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/forms/form/0vnPKurMOTZ1sXcd"]},{"file":"/var/www/nextcloud/index.php","line":38,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/nextcloud/apps/forms/lib/Db/NotificationMapper.php","Line":65},"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0","version":"18.0.6.0"}

Aus einem mir nicht ersichtlichen Grund verweigert NC den Zugriff auf das Formular.

Velleicht könnt Ihr mir ja weiterhelfen.

Beste Grüße

DrJambus

Deine Logs habe ich nicht gelesen geschweige denn verstanden. Ich weiß aber von Apps wie GPXMotion die öffentliche Freigabe aller enthaltenen Inhalte (hier GPX-File) auch benötigen. Leider kenne ich dein Formular nicht. Aber ich könnte mir vorstellen, dass es Inhalte enthält, die auf interne Links und nicht öffentliche Inhalte verweisen. Formulare nutze ich nicht. Kannst du mal ein ziemlich leeres Formular erstellen? Läuft das? Wenn ja, welche Komponenten nutzt du in deinem fehlerhaften Formular zusätzlich? Sind dieses interne Links oder externe Freigaben?

Beispiel-App, wo auch das zugehörige GPX-File öffentlich freigegeben werden muss:
https://apps.nextcloud.com/apps/gpxmotion

@DrJambus

Hey und willkommen im Forum. Danke für Deinen ersten Beitrag hier.

Bevor wir zu Deinem Problem kommen… hast du die Zeit gehabt, beim Abnicken der allgegenwärtigen Formalitäten beim Anmelden in folgende Links zu schauen?

NC-Richtlinien

sowie

Community Code of Conduct – Nextcloud

?

Die sollen Dir, mir, allen helfen, korrekte Threads zu eröffnen… :wink:
Zb. Indem man zuerst mal im Forum nach möglicherweise vorhandenen Lösungen für das aktuelle Problem sucht :slight_smile:

Hier in Deinem Fall hätte die Suche vielleicht folgendes ans Licht gebracht:

und möglicherweise ist das ja auch die Lösung für Deine Probleme.
Falls ja, dann markiere diese Antwort bitte als Lösung.
Falls nein, dann wäre es hilfreich, Du würdest das nächste Mal auf bereits gefundene unnütze Links in Deinem Ausgangsposting hinweisen (erspart den anderen Arbeit).

Noch ein Tipp: Wenn du ellenlange Fehlermeldungen postest (prinzipiell gut!), dann ist es hilfreich, wenn Du die hier im Threadeditor markierst und dann das Icon mit den beiden Dreiecksklammern (vorformatierter Text) klickst. Denn dann wird das alles leserlicher. Ich hab das mal für Dich getan in Deinem Ausgangsposting.

Und noch ein Tipp (Mann, bin ich heute freigiebig!) - Du würdest den (frei)willigen Forumist*innen hier eine weitere Menge Tipp- und Grübelarbeit ersparen, wenn Du gleich von Anfang an Infos über alle am Problem beteiligten Systeme geben würdest… Für Deinen NC-Server übernimmt das die App Issue Template, die Du einfach laufen lässt und deren Output hier postest. Dazu noch ein Hinweis, wie Dein Server gehostet ist… Und mit welchen Browsern auf welcher Maschine der Fehler auftritt… Das wäre traumhaft. :slight_smile:

Viel Erfolg und happy NC’ing