Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: OCP\AppFramework\Db\Mapper removed in NC26 #948

Closed
5 of 9 tasks
tacruc opened this issue Jan 23, 2023 · 6 comments
Closed
5 of 9 tasks

[Bug]: OCP\AppFramework\Db\Mapper removed in NC26 #948

tacruc opened this issue Jan 23, 2023 · 6 comments

Comments

@tacruc
Copy link
Collaborator

tacruc commented Jan 23, 2023

⚠️ This issue respects the following points: ⚠️

Bug description

OCP\AppFramework\Db\Mapper removed in NC26

Steps to reproduce

  1. Upgrade to NC26

Expected behavior

Fix don't use OCP\AppFramework\DB\Mapper
Possible alternatives:

  • Directly search for images via DAV request
  • Use different DB connection

Installation method

None

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install of the server?

None

Is this bug present after an update or on a fresh install of the app?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

- maps

Nextcloud Signing status

No response

Nextcloud Logs

No response

Browser Console

No response

Additional info

No response

@tacruc
Copy link
Collaborator Author

tacruc commented Jan 25, 2023

Fixed by #950

@tacruc tacruc closed this as completed Jan 25, 2023
This was referenced Feb 24, 2023
@skjerns
Copy link

skjerns commented Apr 7, 2023

After upgrading to 26.0.0, I get the following error now, related to this deprecation

Any idea how to fix this when I only have file system access (no terminal)?

{"reqId":"i3wx2nd6OG9ODL6BZoMK","level":3,"time":"2023-04-07T15:13:35+00:00","remoteAddr":"2a02:8071:2c81:5b60:7654:60c4:5c09:952f","user":"root","app":"index","method":"GET","url":"/index.php/apps/theming/image/logo?v=41","message":"Class \"OCP\\AppFramework\\Db\\Mapper\" not found","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","version":"26.0.0.11","exception":{"Exception":"Error","Message":"Class \"OCP\\AppFramework\\Db\\Mapper\" not found","Code":0,"Trace":[{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/composer/composer/ClassLoader.php","line":578,"function":"include"},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/composer/composer/ClassLoader.php","line":432,"function":"Composer\\Autoload\\{closure}","class":"Composer\\Autoload\\ClassLoader","type":"::","args":["*** sensitive parameters replaced ***"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"__construct","class":"ReflectionClass","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map","args":[["Closure"],[["ReflectionParameter","rootFolder"],["ReflectionParameter","shareManager"],["ReflectionParameter","urlGenerator"],["ReflectionParameter","wopiParser"],["ReflectionParameter","capabilitiesService"],["ReflectionParameter","UserId"],"*** sensitive parameters replaced ***",["ReflectionParameter","trans"],["ReflectionParameter","helper"],["ReflectionParameter","permissionManager"]]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\\Richdocuments\\TokenManager"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\TokenManager"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\TokenManager"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\TokenManager"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\TokenManager",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map","args":[["Closure"],[["ReflectionParameter","cacheFactory"],["ReflectionParameter","clientService"],["ReflectionParameter","logger"],"*** sensitive parameters replaced ***",["ReflectionParameter","appConfig"],["ReflectionParameter","request"],["ReflectionParameter","urlGenerator"]]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\\Richdocuments\\Service\\FederationService"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Service\\FederationService"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Service\\FederationService"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Service\\FederationService"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Service\\FederationService",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map","args":[["Closure"],[["ReflectionParameter","request"],["ReflectionParameter","config"],["ReflectionParameter","appManager"],"*** sensitive parameters replaced ***",["ReflectionParameter","globalScaleConfig"]]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\\Richdocuments\\Listener\\CSPListener"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Listener\\CSPListener"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Listener\\CSPListener"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/ServerContainer.php","line":155,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Listener\\CSPListener"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/EventDispatcher/ServiceEventListener.php","line":70,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Richdocuments\\Listener\\CSPListener"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"],"OCP\\Security\\CSP\\AddContentSecurityPolicyEvent",["Symfony\\Component\\EventDispatcher\\EventDispatcher"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[["Closure"],["Closure"]],"OCP\\Security\\CSP\\AddContentSecurityPolicyEvent",["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/EventDispatcher/EventDispatcher.php","line":87,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"],"OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/EventDispatcher/EventDispatcher.php","line":99,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent",["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/Security/CSP/ContentSecurityPolicyManager.php","line":60,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Middleware/Security/CSPMiddleware.php","line":70,"function":"getDefaultPolicy","class":"OC\\Security\\CSP\\ContentSecurityPolicyManager","type":"->","args":[]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":142,"function":"afterController","class":"OC\\AppFramework\\Middleware\\Security\\CSPMiddleware","type":"->","args":[["OCA\\Theming\\Controller\\ThemingController"],"getImage",["OCP\\AppFramework\\Http\\FileDisplayResponse"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Http/Dispatcher.php","line":175,"function":"afterController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->","args":[["OCA\\Theming\\Controller\\ThemingController"],"getImage",["OCP\\AppFramework\\Http\\FileDisplayResponse"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Theming\\Controller\\ThemingController"],"getImage"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Theming\\Controller\\ThemingController","getImage",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["logo","theming.Theming.getImage"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/theming/image/logo"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/apps/richdocuments/lib/Db/WopiMapper.php","Line":35,"CustomMessage":"--"}}

@maxolasersquad
Copy link

After upgrading to 26.0.0, I get the following error now, related to this deprecation

Any idea how to fix this when I only have file system access (no terminal)?

{"reqId":"i3wx2nd6OG9ODL6BZoMK","level":3,"time":"2023-04-07T15:13:35+00:00","remoteAddr":"2a02:8071:2c81:5b60:7654:60c4:5c09:952f","user":"root","app":"index","method":"GET","url":"/index.php/apps/theming/image/logo?v=41","message":"Class \"OCP\\AppFramework\\Db\\Mapper\" not found","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36","version":"26.0.0.11","exception":{"Exception":"Error","Message":"Class \"OCP\\AppFramework\\Db\\Mapper\" not found","Code":0,"Trace":[{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/composer/composer/ClassLoader.php","line":578,"function":"include"},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/composer/composer/ClassLoader.php","line":432,"function":"Composer\\Autoload\\{closure}","class":"Composer\\Autoload\\ClassLoader","type":"::","args":["*** sensitive parameters replaced ***"]},{"function":"loadClass","class":"Composer\\Autoload\\ClassLoader","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":122,"function":"__construct","class":"ReflectionClass","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Db\\WopiMapper",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map","args":[["Closure"],[["ReflectionParameter","rootFolder"],["ReflectionParameter","shareManager"],["ReflectionParameter","urlGenerator"],["ReflectionParameter","wopiParser"],["ReflectionParameter","capabilitiesService"],["ReflectionParameter","UserId"],"*** sensitive parameters replaced ***",["ReflectionParameter","trans"],["ReflectionParameter","helper"],["ReflectionParameter","permissionManager"]]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\\Richdocuments\\TokenManager"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\TokenManager"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\TokenManager"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\TokenManager"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\TokenManager",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map","args":[["Closure"],[["ReflectionParameter","cacheFactory"],["ReflectionParameter","clientService"],["ReflectionParameter","logger"],"*** sensitive parameters replaced ***",["ReflectionParameter","appConfig"],["ReflectionParameter","request"],["ReflectionParameter","urlGenerator"]]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\\Richdocuments\\Service\\FederationService"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Service\\FederationService"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Service\\FederationService"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":465,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Service\\FederationService"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":97,"function":"query","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Service\\FederationService",true]},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"array_map","args":[["Closure"],[["ReflectionParameter","request"],["ReflectionParameter","config"],["ReflectionParameter","appManager"],"*** sensitive parameters replaced ***",["ReflectionParameter","globalScaleConfig"]]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":124,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[["ReflectionClass","OCA\\Richdocuments\\Listener\\CSPListener"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Utility/SimpleContainer.php","line":142,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Listener\\CSPListener"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/DependencyInjection/DIContainer.php","line":493,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OCA\\Richdocuments\\Listener\\CSPListener"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/ServerContainer.php","line":155,"function":"queryNoFallback","class":"OC\\AppFramework\\DependencyInjection\\DIContainer","type":"->","args":["OCA\\Richdocuments\\Listener\\CSPListener"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/EventDispatcher/ServiceEventListener.php","line":70,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OCA\\Richdocuments\\Listener\\CSPListener"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->","args":[["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"],"OCP\\Security\\CSP\\AddContentSecurityPolicyEvent",["Symfony\\Component\\EventDispatcher\\EventDispatcher"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[[["Closure"],["Closure"]],"OCP\\Security\\CSP\\AddContentSecurityPolicyEvent",["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/EventDispatcher/EventDispatcher.php","line":87,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"],"OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/EventDispatcher/EventDispatcher.php","line":99,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent",["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/Security/CSP/ContentSecurityPolicyManager.php","line":60,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->","args":[["OCP\\Security\\CSP\\AddContentSecurityPolicyEvent"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Middleware/Security/CSPMiddleware.php","line":70,"function":"getDefaultPolicy","class":"OC\\Security\\CSP\\ContentSecurityPolicyManager","type":"->","args":[]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":142,"function":"afterController","class":"OC\\AppFramework\\Middleware\\Security\\CSPMiddleware","type":"->","args":[["OCA\\Theming\\Controller\\ThemingController"],"getImage",["OCP\\AppFramework\\Http\\FileDisplayResponse"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/Http/Dispatcher.php","line":175,"function":"afterController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->","args":[["OCA\\Theming\\Controller\\ThemingController"],"getImage",["OCP\\AppFramework\\Http\\FileDisplayResponse"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/AppFramework/App.php","line":183,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->","args":[["OCA\\Theming\\Controller\\ThemingController"],"getImage"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/private/Route/Router.php","line":315,"function":"main","class":"OC\\AppFramework\\App","type":"::","args":["OCA\\Theming\\Controller\\ThemingController","getImage",["OC\\AppFramework\\DependencyInjection\\DIContainer"],["logo","theming.Theming.getImage"]]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/lib/base.php","line":1055,"function":"match","class":"OC\\Route\\Router","type":"->","args":["/apps/theming/image/logo"]},{"file":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/index.php","line":36,"function":"handleRequest","class":"OC","type":"::","args":[]}],"File":"/var/www/vhosts/hosting154271.a2ed6.netcup.net/cloud.xxx.de/apps/richdocuments/lib/Db/WopiMapper.php","Line":35,"CustomMessage":"--"}}

I am experiencing the same issue.

Update app deck from App Store
Update app files_photospheres from App Store
Update app integration_mastodon from App Store
An unhandled exception has been thrown:
Error: Class "OCP\AppFramework\Db\Mapper" not found in /usr/share/nginx/nextcloud/apps/ocsms/db/conversationstatemapper.php:21
Stack trace:
#0 /usr/share/nginx/nextcloud/lib/autoloader.php(177): require_once()
#1 /usr/share/nginx/nextcloud/apps/ocsms/appinfo/ocsmsapp.php(67): OC\Autoloader->load()
#2 /usr/share/nginx/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OCA\OcSms\AppInfo\OcSmsApp->OCA\OcSms\AppInfo\{closure}()
#3 /usr/share/nginx/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#4 /usr/share/nginx/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#5 /usr/share/nginx/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php(487): OC\AppFramework\Utility\SimpleContainer->query()
#6 /usr/share/nginx/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php(465): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
#7 /usr/share/nginx/nextcloud/apps/ocsms/appinfo/ocsmsapp.php(122): OC\AppFramework\DependencyInjection\DIContainer->query()
#8 /usr/share/nginx/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OCA\OcSms\AppInfo\OcSmsApp->OCA\OcSms\AppInfo\{closure}()
#9 /usr/share/nginx/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#10 /usr/share/nginx/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#11 /usr/share/nginx/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php(487): OC\AppFramework\Utility\SimpleContainer->query()
#12 /usr/share/nginx/nextcloud/lib/private/ServerContainer.php(155): OC\AppFramework\DependencyInjection\DIContainer->queryNoFallback()
#13 /usr/share/nginx/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#14 /usr/share/nginx/nextcloud/lib/private/Repair.php(143): OC\AppFramework\Utility\SimpleContainer->get()
#15 /usr/share/nginx/nextcloud/lib/private/legacy/OC_App.php(1070): OC\Repair->addStep()
#16 /usr/share/nginx/nextcloud/lib/private/Installer.php(156): OC_App::executeRepairSteps()
#17 /usr/share/nginx/nextcloud/lib/private/legacy/OC_App.php(451): OC\Installer->installApp()
#18 /usr/share/nginx/nextcloud/lib/private/Updater.php(431): OC_App->enable()
#19 /usr/share/nginx/nextcloud/lib/private/Updater.php(284): OC\Updater->upgradeAppStoreApps()
#20 /usr/share/nginx/nextcloud/lib/private/Updater.php(140): OC\Updater->doUpgrade()
#21 /usr/share/nginx/nextcloud/core/Command/Upgrade.php(225): OC\Updater->upgrade()
#22 /usr/share/nginx/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#23 /usr/share/nginx/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#24 /usr/share/nginx/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#25 /usr/share/nginx/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#26 /usr/share/nginx/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run()
#27 /usr/share/nginx/nextcloud/console.php(100): OC\Console\Application->run()
#28 /usr/share/nginx/nextcloud/occ(11): require_once('...')
#29 {main}
Keep maintenance mode active? [y/N] 

@skjerns
Copy link

skjerns commented Apr 15, 2023

I fixed the issue by deleting the /apps/richdocuments/ folder and reinstalling the app

@mcwimh
Copy link

mcwimh commented Jun 13, 2023

Still have the same problem, removed richdocuments, richtext, rich-anything, Deck. Nothing helps. Even migrated from raspberry pi to imac with ubuntu. No change. See the subject is closed, but does someone know if its still going on anywhere?

@yslemmo
Copy link

yslemmo commented Jul 29, 2023

When I enabled the richdocuments plugin, it prompted a server error in the NC Web, and after I deleted the /apps/richdocuments/ folder, it launched normally!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants