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

NC26 incompatibility. #5

Open
C8620 opened this issue May 14, 2023 · 1 comment
Open

NC26 incompatibility. #5

C8620 opened this issue May 14, 2023 · 1 comment

Comments

@C8620
Copy link

C8620 commented May 14, 2023

Starting from Nextcloud 26, OCP\AppFramework\Db\Mapper class has been removed, and application would generate following problem:

"exception": { "Exception": "Error", "Message": "Class \"OCP\\AppFramework\\Db\\Mapper\" not found", "Code": 0, "Trace": [ { "file": "/path/to/nextcloud/lib/composer/composer/ClassLoader.php", "line": 578, "function": "include" }, { "file": "/path/to/nextcloud/lib/composer/composer/ClassLoader.php", "line": 432, "function": "Composer\\Autoload\\{closure}", "class": "Composer\\Autoload\\ClassLoader", "type": "::", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/path/to/nextcloud/apps/files_reader/lib/Db/BookmarkMapper.php", "line": 18, "function": "loadClass", "class": "Composer\\Autoload\\ClassLoader", "type": "->" }, { "file": "/path/to/nextcloud/lib/composer/composer/ClassLoader.php", "line": 578, "args": [ "/path/to/nextcloud/apps/files_reader/lib/Db/BookmarkMapper.php" ], "function": "include" }, { "file": "/path/to/nextcloud/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": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 122, "function": "__construct", "class": "ReflectionClass", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 142, "function": "resolve", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 493, "function": "query", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 465, "function": "queryNoFallback", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 97, "function": "query", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->" }, { "function": "OC\\AppFramework\\Utility\\{closure}", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 116, "function": "array_map" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 124, "function": "buildClass", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 142, "function": "resolve", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 493, "function": "query", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 465, "function": "queryNoFallback", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 97, "function": "query", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->" }, { "function": "OC\\AppFramework\\Utility\\{closure}", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->", "args": [ "*** sensitive parameters replaced ***" ] }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 116, "function": "array_map" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 124, "function": "buildClass", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php", "line": 142, "function": "resolve", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 493, "function": "query", "class": "OC\\AppFramework\\Utility\\SimpleContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/DependencyInjection/DIContainer.php", "line": 465, "function": "queryNoFallback", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/AppFramework/App.php", "line": 162, "function": "query", "class": "OC\\AppFramework\\DependencyInjection\\DIContainer", "type": "->" }, { "file": "/path/to/nextcloud/lib/private/Route/Router.php", "line": 315, "function": "main", "class": "OC\\AppFramework\\App", "type": "::" }, { "file": "/path/to/nextcloud/lib/base.php", "line": 1056, "function": "match", "class": "OC\\Route\\Router", "type": "->" }, { "file": "/path/to/nextcloud/index.php", "line": 36, "function": "handleRequest", "class": "OC", "type": "::" }

@ErroneousBosch
Copy link

It looks like the replacement is OCP\AppFramework\Db\QBMapper (https://github.com/nextcloud/server/blob/master/lib/public/AppFramework/Db/QBMapper.php).

Queries would have to be rebuilt to use IQueryBuilder building rather than direct sql.

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

No branches or pull requests

2 participants