Skip to content

[12 alpha] Argument 1 passed to OCA\Notifications\Push::validateToken() must be of the type int, string given, called in /var/www/html/apps/notifications/lib/Push.php on line 265 #1015

Description

@blizzz

Steps to reproduce

  1. Upgrade to Nextcloud 22 Beta 5
  2. Use Talk
  3. Watch them logs

Expected behaviour

No error being logged

Actual behaviour

{
"app": "no app in context",
"method": "GET",
"url": "/ocs/v2.php/apps/spreed/api/v1/chat/gf934ync?setReadMarker=0&lookIntoFuture=1&lastKnownMessageId=123456&includeLastKnown=0",
"message": "Argument 1 passed to OCA\\Notifications\\Push::validateToken() must be of the type int, string given, called in /var/www/html/apps/notifications/lib/Push.php on line 265",
"userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0",
"version": "22.0.0.8",
"exception": {
"Exception": "Exception",
"Message": "Argument 1 passed to OCA\\Notifications\\Push::validateToken() must be of the type int, string given, called in /var/www/html/apps/notifications/lib/Push.php on line 265",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 156,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 303,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 62,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 23,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"Line": 158,
"Previous": {
"Exception": "TypeError",
"Message": "Argument 1 passed to OCA\\Notifications\\Push::validateToken() must be of the type int, string given, called in /var/www/html/apps/notifications/lib/Push.php on line 265",
"Code": 0,
"Trace": [
{
"file": "/var/www/html/apps/notifications/lib/Push.php",
"line": 265,
"function": "validateToken",
"class": "OCA\\Notifications\\Push",
"type": "->",
"args": [
"*** sensitive parameters replaced ***"
]
},
{
"file": "/var/www/html/apps/notifications/lib/App.php",
"line": 86,
"function": "pushDeleteToDevice",
"class": "OCA\\Notifications\\Push",
"type": "->"
},
{
"file": "/var/www/html/lib/private/Notification/Manager.php",
"line": 360,
"function": "markProcessed",
"class": "OCA\\Notifications\\App",
"type": "->"
},
{
"file": "/var/www/html/apps/spreed/lib/Chat/Notifier.php",
"line": 240,
"function": "markProcessed",
"class": "OC\\Notification\\Manager",
"type": "->"
},
{
"file": "/var/www/html/apps/spreed/lib/Chat/ChatManager.php",
"line": 369,
"function": "markMentionNotificationsRead",
"class": "OCA\\Talk\\Chat\\Notifier",
"type": "->"
},
{
"file": "/var/www/html/apps/spreed/lib/Controller/ChatController.php",
"line": 421,
"function": "waitForNewMessages",
"class": "OCA\\Talk\\Chat\\ChatManager",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 217,
"function": "receiveMessages",
"class": "OCA\\Talk\\Controller\\ChatController",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/Http/Dispatcher.php",
"line": 126,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/lib/private/AppFramework/App.php",
"line": 156,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/html/lib/private/Route/Router.php",
"line": 303,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/html/ocs/v1.php",
"line": 62,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/html/ocs/v2.php",
"line": 23,
"args": [
"/var/www/html/ocs/v1.php"
],
"function": "require_once"
}
],
"File": "/var/www/html/apps/notifications/lib/Push.php",
"Line": 369
},
"CustomMessage": "--"
}
}

Talk app

Talk app version: 12.0.0-alpha.2

Custom Signaling server configured: yes

Custom TURN server configured: yes

Custom STUN server configured: yes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions