MariaDB [nextcloud]> select * from oc_preferences where userid='alice' and appid in ('dashboard', 'theming');
+--------+-----------+-------------------+-------------+
| userid | appid | configkey | configvalue |
+--------+-----------+-------------------+-------------+
| alice | dashboard | firstRun | 0 |
| alice | theming | background | custom |
| alice | theming | backgroundVersion | 1 |
+--------+-----------+-------------------+-------------+
3 rows in set (0.001 sec)
{
"reqId": "yGU73Yn4alZXEjEKqNf7",
"level": 3,
"time": "2022-10-14T07:50:24+00:00",
"remoteAddr": "127.0.0.1",
"user": "--",
"app": "index",
"method": "GET",
"url": "/index.php/apps/theming/background?v=2",
"message": "Call to a member function getUID() on null",
"userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36",
"version": "25.0.0.16",
"exception": {
"Exception": "Error",
"Message": "Call to a member function getUID() on null",
"Code": 0,
"Trace": [
{
"function": "__construct",
"class": "OCA\\Theming\\Controller\\UserThemeController",
"type": "->",
"args": [
"theming",
{
"__class__": "OC\\AppFramework\\Http\\Request"
},
{
"__class__": "OC\\AllConfig"
},
{
"__class__": "OC\\User\\Session"
},
{
"__class__": "OCA\\Theming\\Service\\ThemesService"
},
{
"__class__": "OCA\\Theming\\ThemingDefaults"
},
{
"__class__": "OCA\\Theming\\Service\\BackgroundService"
}
]
},
{
"file": "/srv/www/htdocs/server/lib/private/AppFramework/Utility/SimpleContainer.php",
"line": 108,
"function": "newInstanceArgs",
"class": "ReflectionClass",
"type": "->",
"args": [
[
"theming",
{
"__class__": "OC\\AppFramework\\Http\\Request"
},
{
"__class__": "OC\\AllConfig"
},
{
"__class__": "OC\\User\\Session"
},
{
"__class__": "OCA\\Theming\\Service\\ThemesService"
},
{
"__class__": "OCA\\Theming\\ThemingDefaults"
},
{
"__class__": "OCA\\Theming\\Service\\BackgroundService"
}
]
]
},
{
"file": "/srv/www/htdocs/server/lib/private/AppFramework/Utility/SimpleContainer.php",
"line": 116,
"function": "buildClass",
"class": "OC\\AppFramework\\Utility\\SimpleContainer",
"type": "->",
"args": [
{
"__class__": "ReflectionClass",
"name": "OCA\\Theming\\Controller\\UserThemeController"
}
]
},
{
"file": "/srv/www/htdocs/server/lib/private/AppFramework/Utility/SimpleContainer.php",
"line": 133,
"function": "resolve",
"class": "OC\\AppFramework\\Utility\\SimpleContainer",
"type": "->",
"args": [
"OCA\\Theming\\Controller\\UserThemeController"
]
},
{
"file": "/srv/www/htdocs/server/lib/private/AppFramework/DependencyInjection/DIContainer.php",
"line": 465,
"function": "query",
"class": "OC\\AppFramework\\Utility\\SimpleContainer",
"type": "->",
"args": [
"OCA\\Theming\\Controller\\UserThemeController"
]
},
{
"file": "/srv/www/htdocs/server/lib/private/AppFramework/DependencyInjection/DIContainer.php",
"line": 437,
"function": "queryNoFallback",
"class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
"type": "->",
"args": [
"OCA\\Theming\\Controller\\UserThemeController"
]
},
{
"file": "/srv/www/htdocs/server/lib/private/AppFramework/App.php",
"line": 159,
"function": "query",
"class": "OC\\AppFramework\\DependencyInjection\\DIContainer",
"type": "->",
"args": [
"OCA\\Theming\\Controller\\UserThemeController"
]
},
{
"file": "/srv/www/htdocs/server/lib/private/Route/Router.php",
"line": 298,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::",
"args": [
"OCA\\Theming\\Controller\\UserThemeController",
"getBackground",
{
"__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer"
},
[
"theming.userTheme.getBackground"
]
]
},
{
"file": "/srv/www/htdocs/server/lib/base.php",
"line": 1047,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->",
"args": [
"/apps/theming/background"
]
},
{
"file": "/srv/www/htdocs/server/index.php",
"line": 36,
"function": "handleRequest",
"class": "OC",
"type": "::",
"args": []
}
],
"File": "/srv/www/htdocs/server/apps/theming/lib/Controller/UserThemeController.php",
"Line": 76,
"CustomMessage": "--"
}
}
Bug description
Getting a 404 on a custom background:
GET https://.../index.php/apps/theming/backgroundfile "background.jpg" is missing on disk in "data/appdata_*/theming/alice"
Steps to reproduce
Expected behavior
Background appears and exists on disk
Installation method
No response
Operating system
No response
PHP engine version
No response
Web server
No response
Database engine version
No response
Is this bug present after an update or on a fresh install?
No response
Are you using the Nextcloud Server Encryption module?
No response
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
No response
Nextcloud Logs
{ "reqId": "yGU73Yn4alZXEjEKqNf7", "level": 3, "time": "2022-10-14T07:50:24+00:00", "remoteAddr": "127.0.0.1", "user": "--", "app": "index", "method": "GET", "url": "/index.php/apps/theming/background?v=2", "message": "Call to a member function getUID() on null", "userAgent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36", "version": "25.0.0.16", "exception": { "Exception": "Error", "Message": "Call to a member function getUID() on null", "Code": 0, "Trace": [ { "function": "__construct", "class": "OCA\\Theming\\Controller\\UserThemeController", "type": "->", "args": [ "theming", { "__class__": "OC\\AppFramework\\Http\\Request" }, { "__class__": "OC\\AllConfig" }, { "__class__": "OC\\User\\Session" }, { "__class__": "OCA\\Theming\\Service\\ThemesService" }, { "__class__": "OCA\\Theming\\ThemingDefaults" }, { "__class__": "OCA\\Theming\\Service\\BackgroundService" } ] }, { "file": "/srv/www/htdocs/server/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 108, "function": "newInstanceArgs", "class": "ReflectionClass", "type": "->", "args": [ [ "theming", { "__class__": "OC\\AppFramework\\Http\\Request" }, { "__class__": "OC\\AllConfig" }, { "__class__": "OC\\User\\Session" }, { "__class__": "OCA\\Theming\\Service\\ThemesService" }, { "__class__": "OCA\\Theming\\ThemingDefaults" }, { "__class__": "OCA\\Theming\\Service\\BackgroundService" } ] ] }, { "file": "/srv/www/htdocs/server/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 116, "function": "buildClass", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->", "args": [ { "__class__": "ReflectionClass", "name": "OCA\\Theming\\Controller\\UserThemeController" } ] }, { "file": "/srv/www/htdocs/server/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 133, "function": "resolve", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->", "args": [ "OCA\\Theming\\Controller\\UserThemeController" ] }, { "file": "/srv/www/htdocs/server/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 465, "function": "query", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->", "args": [ "OCA\\Theming\\Controller\\UserThemeController" ] }, { "file": "/srv/www/htdocs/server/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 437, "function": "queryNoFallback", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->", "args": [ "OCA\\Theming\\Controller\\UserThemeController" ] }, { "file": "/srv/www/htdocs/server/lib/private/AppFramework/App.php", "line": 159, "function": "query", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->", "args": [ "OCA\\Theming\\Controller\\UserThemeController" ] }, { "file": "/srv/www/htdocs/server/lib/private/Route/Router.php", "line": 298, "function": "main", "class": "OC\\AppFramework\\App", "type": "::", "args": [ "OCA\\Theming\\Controller\\UserThemeController", "getBackground", { "__class__": "OC\\AppFramework\\DependencyInjection\\DIContainer" }, [ "theming.userTheme.getBackground" ] ] }, { "file": "/srv/www/htdocs/server/lib/base.php", "line": 1047, "function": "match", "class": "OC\\Route\\Router", "type": "->", "args": [ "/apps/theming/background" ] }, { "file": "/srv/www/htdocs/server/index.php", "line": 36, "function": "handleRequest", "class": "OC", "type": "::", "args": [] } ], "File": "/srv/www/htdocs/server/apps/theming/lib/Controller/UserThemeController.php", "Line": 76, "CustomMessage": "--" } }Additional info
No response