Open radoeka opened 4 years ago
Upgraded in the meantime to NC-19.0.1, the problem still happens. It looks like only for the pages/calls that involve a tag. Thus not for the 'All bookmarks' nor for the 'Recent bookmarks'. The others result in the error message (for a tag with one instance, only once for tags with multiple instances (more than 1) multiple times, looks to be limited to 4).
TypeError: Argument 3 passed to OC\AppFramework\Middleware\MiddlewareDispatcher::beforeOutput() must be of the type string, null given, called in <path>/nextcloud-19.0.1/lib/private/AppFramework/Http/Dispatcher.php on line 124
<path>/nextcloud-19.0.1/lib/private/AppFramework/Http/Dispatcher.php - line 124:
OC\AppFramework\Middleware\MiddlewareDispatcher->beforeOutput()
<path>/nextcloud-19.0.1/lib/private/AppFramework/App.php - line 137:
OC\AppFramework\Http\Dispatcher->dispatch()
<path>/nextcloud-19.0.1/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:
OC\AppFramework\App::main()
<<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke()
<path>/nextcloud-19.0.1/lib/private/Route/Router.php - line 297:
call_user_func()
<path>/nextcloud-19.0.1/lib/base.php - line 1007:
OC\Route\Router->match()
<path>/nextcloud-19.0.1/index.php - line 37:
OC::handleRequest()
Could it be the difference in the GET url? The difference for both is:
GET /apps/bookmarks/bookmark?limit=42&page=0&sortby=added HTTP/1.1" 200 13532
GET /apps/bookmarks/bookmark?limit=42&page=0&sortby=added&tags[]=linux&conjunction=and HTTP/1.1" 200 8503
GET /apps/bookmarks/bookmark?limit=42&page=0&sortby=added&tags[]=openSUSE&conjunction=and HTTP/1.1" 200 4375
GET /apps/bookmarks/bookmark?limit=42&page=0&sortby=added HTTP/1.1" 200 13532
Could the "&tags[]=linux&conjunction=and" be the issue?
Hmm, changed to alphabetical order (from most recent), and the now error pops up in all cases... /confused.
Could you try to find out for which URLs the error happens? I think this once happened for favicon routes, so this may be a regression.
Yep, looks related to favicons:
/var/log/apache2 # grep 22:08:24 access_log | cut -c20-
[16/Aug/2020:22:08:24 +0200] "GET /apps/logreader/poll?lastReqId=uqCxiiqFuOcQIelrn6My HTTP/1.1" 200 4095
[16/Aug/2020:22:08:24 +0200] "GET /apps/bookmarks/bookmark/259/favicon HTTP/1.1" 303 -
[16/Aug/2020:22:08:24 +0200] "GET /apps/bookmarks/bookmark/233/favicon HTTP/1.1" 303 -
[16/Aug/2020:22:08:24 +0200] "GET /apps/bookmarks/bookmark/37/favicon HTTP/1.1" 303 -
[16/Aug/2020:22:08:24 +0200] "GET /apps/bookmarks/bookmark/601/favicon HTTP/1.1" 303 -
[16/Aug/2020:22:08:24 +0200] "GET /apps/bookmarks/bookmark/510/favicon HTTP/1.1" 303 -
The error is reported for all bookmark queries. When I grep for the error time, often favicons requests are showing up and hardly any other links.
Describe the bug When visiting the bookmarks section, the following error is reported in Nextcloud.log:
To Reproduce Steps to reproduce the behavior:
Expected behavior No error in the log file
Screenshots Not applicable
Desktop (please complete the following information):
Server (please complete the following information):
$ sudo -u www-data php occ app:list
in your command line]Enabled:
Additional context
Web server error log
Nextcloud log (nextcloud/data/nextcloud.log)