passwords
passwords copied to clipboard
Error in Array to String conversion
System Information
Server:
{
"version": {
"server": "21.0.3.1",
"app": "2021.7.22",
"lsr": false,
"php": "7.4.20"
},
"environment": {
"os": "Linux",
"architecture": "x86_64",
"bits": 64,
"database": "mysql",
"cron": "cron",
"proxy": false,
"sslProxy": false,
"subdirectory": false
},
"legacyApi": {
"enabled": 3,
"used": true
},
"services": {
"images": "imagick",
"favicons": "bi",
"previews": "screeenly",
"security": "hibp",
"words": "leipzig",
"previewApi": true,
"faviconApi": false
},
"settings": {
"channel": "stable",
"nightlies": false,
"handbook": false,
"performance": 5
},
"encryption": {
"sse": {
"SSEv1r1": true,
"SSEv1r2": true,
"SSEv2r1": false,
"none": false,
"default": "SSEv1r2"
},
"cse": {
"CSEv1r1": false,
"none": true,
"default": "none"
}
}
}
Client:
Browser and Version: Firefox 78
Client OS and Version: Ubuntu 20.10
Steps to reproduce
- Receive update notification to Passwords 2021.7.22
- See odd formatting in notifications
- Observe below error in NC logs
Expected result
Proper app name should be displayed
Actual result
JSON array is displayed
Nextcloud log
Nextcloud log
{"reqId":"T9rj7JaYgEP7FE5ekWKk","level":3,"time":"2021-07-11T13:26:10+02:00","remoteAddr":"2a02:3030:1:1dc3:402:7e14:166e:a1b2","user":"smn","app":"PHP","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":{"Exception":"Error","Message":"Array to string conversion at /var/www/nextcloud/lib/private/L10N/L10NString.php#79","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[8,"Array to string conversion","/var/www/nextcloud/lib/private/L10N/L10NString.php",79,{"translations":[],"text":"Update for %1$s to version %2$s is available."}]},{"file":"/var/www/nextcloud/lib/private/L10N/L10NString.php","line":79,"function":"vsprintf","args":["Update for %1$s to version %2$s is available.",[["Passwords",{"@attributes":{"lang":"de"},"@value":"Passwörter"}],"2021.7.22"]]},{"file":"/var/www/nextcloud/lib/private/L10N/L10N.php","line":110,"function":"__toString","class":"OC\\L10N\\L10NString","type":"->","args":[]},{"file":"/var/www/nextcloud/lib/private/L10N/LazyL10N.php","line":53,"function":"t","class":"OC\\L10N\\L10N","type":"->","args":["Update for %1$s to version %2$s is available.",[["Passwords",{"@attributes":{"lang":"de"},"@value":"Passwörter"}],"2021.7.22"]]},{"file":"/var/www/nextcloud/apps/updatenotification/lib/Notification/Notifier.php","line":145,"function":"t","class":"OC\\L10N\\LazyL10N","type":"->","args":["Update for %1$s to version %2$s is available.",[["Passwords",{"@attributes":{"lang":"de"},"@value":"Passwörter"}],"2021.7.22"]]},{"file":"/var/www/nextcloud/lib/private/Notification/Manager.php","line":299,"function":"prepare","class":"OCA\\UpdateNotification\\Notification\\Notifier","type":"->","args":[{"__class__":"OC\\Notification\\Notification"},"en"]},{"file":"/var/www/nextcloud/apps/notifications/lib/Controller/EndpointController.php","line":106,"function":"prepare","class":"OC\\Notification\\Manager","type":"->","args":[{"__class__":"OC\\Notification\\Notification"},"en"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":218,"function":"listNotifications","class":"OCA\\Notifications\\Controller\\EndpointController","type":"->","args":["v2"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":127,"function":"executeController","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Notifications\\Controller\\EndpointController"},"listNotifications"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[{"__class__":"OCA\\Notifications\\Controller\\EndpointController"},"listNotifications"]},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Notifications\\Controller\\EndpointController","listNotifications",{"__class__":"OC\\AppFramework\\DependencyInjection\\DIContainer"},{"apiVersion":"v2","_route":"ocs.notifications.Endpoint.listNotifications"}]},{"file":"/var/www/nextcloud/ocs/v1.php","line":63,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/ocsapp/apps/notifications/api/v2/notifications"]},{"file":"/var/www/nextcloud/ocs/v2.php","line":24,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (Android 11; Mobile; rv:89.0) Gecko/89.0 Firefox/89.0","version":"21.0.3.1","id":"60eb0167d557a"}```
</details>
You mean this?
You mean this?
Yes. Also, the NextCloud client reports an update to "Array" instead of "Passwords"
I think nextcloud parses the info.xml to get the name. The info.xml also allows translated values and while the app store respects this, other parts apparently don't.