Skip to content

POST /apps/text/attachments returns 500 without session (SessionMiddleware passes empty string to bigint query) – PostgreSQL, NC 35.0.2 #9415

Closed

Description

@thomaskor

Describe the bug
When I'm in edit mode, attachments are displayed. When I switch to view mode, an HTTP 500 error appears for the attachment.

To Reproduce
Steps to reproduce the behavior:

  1. Open the collective page with its attachment in view mode
  2. Switch to View-Modus
  3. In Browser-Console (F1"): Network --> Payload:
    {shareToken: null, fileId: 154648}
  4. SQLSTATE[22P02] … invalid input syntax for type bigint: "") with Stacktrace at SessionMiddleware.php:64 → SessionService::getValidSession → SessionMapper::find

Expected behavior
If the attachment is an image, display it; e.g. if the attachment is a PDF, display the PDF icon.

Screenshots

Image

Server details:

  • Nextcloud 35.0.2.2, PostgreSQL 14
  • PHP Version: 8.4
  • Database: PostgreSQL 14

Client details:

  • OS: Ubuntu and SuSE
  • Browser: Brave, Firefox, Chrome
  • Browser version: up to date
  • Device: mobile, desktop
Logs

Nextcloud log (data/nextcloud.log)

grep -i 'atMd68a7f3DgXXfoTut_7gAAAAI' nextcloud.log | tail -n 20
{"reqId":"atMd68a7f3DgXXfoTut_7gAAAAI","level":0,"time":"2026-10-17T07:04:11+00:00","remoteAddr":"my_IP","user":"my_user","app":"no app in context","method":"POST","url":"/index.php/apps/text/attachments","scriptName":"/index.php","message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36","version":"35.0.2.2","exception":{"Exception":"Exception","Message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":58,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":262,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php","line":135,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/lib/private/BackgroundJob/JobList.php","line":60,"function":"has","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/nextcloud/apps/rechnungswerk/lib/AppInfo/Application.php","line":46,"function":"add","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":166,"function":"boot","class":"OCA\\Rechnungswerk\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":491,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":284,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/OC.php","line":1224,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/index.php","line":28,"function":"handleRequest","class":"OC","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1403,"function":"{closure:/var/www/nextcloud/index.php:25}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequests","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/DB/Connection.php","Line":415,"message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","tables":"[\"oc_jobs\"]","reads":"[\"oc_jobs\"]","CustomMessage":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1"}}
{"reqId":"atMd68a7f3DgXXfoTut_7gAAAAI","level":3,"time":"2026-10-17T07:04:11+00:00","remoteAddr":"my_IP","user":"my_user","app":"index","method":"POST","url":"/index.php/apps/text/attachments","scriptName":"/index.php","message":"An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type bigint: \"\"\nCONTEXT:  unnamed portal parameter $1 = ''","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36","version":"35.0.2.2","exception":{"Exception":"OC\\DB\\Exceptions\\DbalException","Message":"An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type bigint: \"\"\nCONTEXT:  unnamed portal parameter $1 = ''","Code":7,"Trace":[{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":61,"function":"wrap","class":"OC\\DB\\Exceptions\\DbalException","type":"::"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":262,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Db/SessionMapper.php","line":48,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/SessionService.php","line":155,"function":"find","class":"OCA\\Text\\Db\\SessionMapper","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/SessionService.php","line":166,"function":"getSession","class":"OCA\\Text\\Service\\SessionService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Middleware/SessionMiddleware.php","line":101,"function":"getValidSession","class":"OCA\\Text\\Service\\SessionService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Middleware/SessionMiddleware.php","line":64,"function":"assertDocumentSession","class":"OCA\\Text\\Middleware\\SessionMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":70,"function":"beforeController","class":"OCA\\Text\\Middleware\\SessionMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":78,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":138,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":324,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1238,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":28,"function":"handleRequest","class":"OC","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1403,"function":"{closure:/var/www/nextcloud/index.php:25}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequests","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/DB/Exceptions/DbalException.php","Line":51,"Previous":{"Exception":"Doctrine\\DBAL\\Exception\\DriverException","Message":"An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type bigint: \"\"\nCONTEXT:  unnamed portal parameter $1 = ''","Code":7,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1976,"function":"convert","class":"Doctrine\\DBAL\\Driver\\API\\PostgreSQL\\ExceptionConverter","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1918,"function":"handleDriverException","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1111,"function":"convertExceptionDuringQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":428,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":58,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":262,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Db/SessionMapper.php","line":48,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/SessionService.php","line":155,"function":"find","class":"OCA\\Text\\Db\\SessionMapper","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/SessionService.php","line":166,"function":"getSession","class":"OCA\\Text\\Service\\SessionService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Middleware/SessionMiddleware.php","line":101,"function":"getValidSession","class":"OCA\\Text\\Service\\SessionService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Middleware/SessionMiddleware.php","line":64,"function":"assertDocumentSession","class":"OCA\\Text\\Middleware\\SessionMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":70,"function":"beforeController","class":"OCA\\Text\\Middleware\\SessionMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":78,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":138,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":324,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1238,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":28,"function":"handleRequest","class":"OC","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1403,"function":"{closure:/var/www/nextcloud/index.php:25}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequests","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/PostgreSQL/ExceptionConverter.php","Line":87,"Previous":{"Exception":"Doctrine\\DBAL\\Driver\\PDO\\Exception","Message":"SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type bigint: \"\"\nCONTEXT:  unnamed portal parameter $1 = ''","Code":7,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":132,"function":"new","class":"Doctrine\\DBAL\\Driver\\PDO\\Exception","type":"::"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php","line":69,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Middleware/ConnectionActivityStatement.php","line":26,"function":"execute","class":"Doctrine\\DBAL\\Driver\\Middleware\\AbstractStatementMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1104,"function":"execute","class":"OC\\DB\\Middleware\\ConnectionActivityStatement","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":428,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":58,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":262,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Db/SessionMapper.php","line":48,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/SessionService.php","line":155,"function":"find","class":"OCA\\Text\\Db\\SessionMapper","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/SessionService.php","line":166,"function":"getSession","class":"OCA\\Text\\Service\\SessionService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Middleware/SessionMiddleware.php","line":101,"function":"getValidSession","class":"OCA\\Text\\Service\\SessionService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Middleware/SessionMiddleware.php","line":64,"function":"assertDocumentSession","class":"OCA\\Text\\Middleware\\SessionMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":70,"function":"beforeController","class":"OCA\\Text\\Middleware\\SessionMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":78,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":138,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":324,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1238,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":28,"function":"handleRequest","class":"OC","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1403,"function":"{closure:/var/www/nextcloud/index.php:25}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequests","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php","Line":24,"Previous":{"Exception":"PDOException","Message":"SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type bigint: \"\"\nCONTEXT:  unnamed portal parameter $1 = ''","Code":"22P02","Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","line":130,"function":"execute","class":"PDOStatement","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/Middleware/AbstractStatementMiddleware.php","line":69,"function":"execute","class":"Doctrine\\DBAL\\Driver\\PDO\\Statement","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Middleware/ConnectionActivityStatement.php","line":26,"function":"execute","class":"Doctrine\\DBAL\\Driver\\Middleware\\AbstractStatementMiddleware","type":"->"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php","line":1104,"function":"execute","class":"OC\\DB\\Middleware\\ConnectionActivityStatement","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/Connection.php","line":428,"function":"executeQuery","class":"Doctrine\\DBAL\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php","line":58,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":262,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Db/SessionMapper.php","line":48,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/SessionService.php","line":155,"function":"find","class":"OCA\\Text\\Db\\SessionMapper","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Service/SessionService.php","line":166,"function":"getSession","class":"OCA\\Text\\Service\\SessionService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Middleware/SessionMiddleware.php","line":101,"function":"getValidSession","class":"OCA\\Text\\Service\\SessionService","type":"->"},{"file":"/var/www/nextcloud/apps/text/lib/Middleware/SessionMiddleware.php","line":64,"function":"assertDocumentSession","class":"OCA\\Text\\Middleware\\SessionMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Middleware/MiddlewareDispatcher.php","line":70,"function":"beforeController","class":"OCA\\Text\\Middleware\\SessionMiddleware","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":78,"function":"beforeController","class":"OC\\AppFramework\\Middleware\\MiddlewareDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/App.php","line":138,"function":"dispatch","class":"OC\\AppFramework\\Http\\Dispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/Route/Router.php","line":324,"function":"main","class":"OC\\AppFramework\\App","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1238,"function":"match","class":"OC\\Route\\Router","type":"->"},{"file":"/var/www/nextcloud/index.php","line":28,"function":"handleRequest","class":"OC","type":"::"},{"file":"/var/www/nextcloud/lib/OC.php","line":1403,"function":"{closure:/var/www/nextcloud/index.php:25}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequests","class":"OC","type":"::"}],"File":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php","Line":130}}},"message":"An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type bigint: \"\"\nCONTEXT:  unnamed portal parameter $1 = ''","CustomMessage":"An exception occurred while executing a query: SQLSTATE[22P02]: Invalid text representation: 7 ERROR:  invalid input syntax for type bigint: \"\"\nCONTEXT:  unnamed portal parameter $1 = ''"}}
{"reqId":"atMd68a7f3DgXXfoTut_7gAAAAI","level":0,"time":"2026-10-17T07:04:11+00:00","remoteAddr":"my_IP","user":"my_user","app":"no app in context","method":"POST","url":"/index.php/apps/text/attachments","scriptName":"/index.php","message":"Calling OCP\\DB\\QueryBuilder\\IQueryBuilder::orX without parameters is deprecated and will throw soon.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36","version":"35.0.2.2","exception":{"Exception":"Exception","Message":"No parameters in call to OC\\DB\\QueryBuilder\\ExpressionBuilder\\ExpressionBuilder::orX","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/tables/lib/Db/ContextMapper.php","line":308,"function":"orX","class":"OC\\DB\\QueryBuilder\\ExpressionBuilder\\ExpressionBuilder","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Db/ContextMapper.php","line":48,"function":"applyOwnedOrSharedQuery","class":"OCA\\Tables\\Db\\ContextMapper","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Db/ContextMapper.php","line":178,"function":"getFindContextBaseQuery","class":"OCA\\Tables\\Db\\ContextMapper","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Service/ContextService.php","line":87,"function":"findForNavBar","class":"OCA\\Tables\\Db\\ContextMapper","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Service/ContextService.php","line":91,"function":"findForNavigation","class":"OCA\\Tables\\Service\\ContextService","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Listener/LoadAdditionalEntriesListener.php","line":39,"function":"addToNavigation","class":"OCA\\Tables\\Service\\ContextService","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":57,"function":"handle","class":"OCA\\Tables\\Listener\\LoadAdditionalEntriesListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":206,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":74,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":87,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":369,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":148,"function":"resolveAppNavigationEntries","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":153,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Defaults.php","line":249,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":153,"function":"getLongFooter","class":"OC_Defaults","type":"->"},{"file":"/var/www/nextcloud/core/templates/layout.guest.php","line":61,"function":"getLongFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":133,"args":["/var/www/nextcloud/core/templates/layout.guest.php"],"function":"include"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":106,"function":"load","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Template.php","line":113,"function":"fetchPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Template.php","line":143,"function":"fetchPage","class":"OC\\Template\\Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":96,"function":"fetchPage","class":"OC\\Template\\Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/TemplateManager.php","line":134,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/index.php","line":93,"function":"printExceptionErrorPage","class":"OC\\Template\\TemplateManager","type":"->"},{"file":"/var/www/nextcloud/lib/OC.php","line":1403,"function":"{closure:/var/www/nextcloud/index.php:25}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequests","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/DB/QueryBuilder/ExpressionBuilder/ExpressionBuilder.php","Line":80,"message":"Calling OCP\\DB\\QueryBuilder\\IQueryBuilder::orX without parameters is deprecated and will throw soon.","CustomMessage":"Calling OCP\\DB\\QueryBuilder\\IQueryBuilder::orX without parameters is deprecated and will throw soon."}}
{"reqId":"atMd68a7f3DgXXfoTut_7gAAAAI","level":0,"time":"2026-10-17T07:04:11+00:00","remoteAddr":"my_IP","user":"my_user","app":"no app in context","method":"POST","url":"/index.php/apps/text/attachments","scriptName":"/index.php","message":"OCP\\DB\\QueryBuilder\\IQueryBuilder::getQueryPart is deprecated and will be removed soon.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/155.0.0.0 Safari/537.36","version":"35.0.2.2","exception":{"Exception":"Exception","Message":"Deprecated call to OC\\DB\\QueryBuilder\\QueryBuilder::getQueryPart","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/tables/lib/Db/ContextMapper.php","line":342,"function":"getQueryPart","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Db/ContextMapper.php","line":48,"function":"applyOwnedOrSharedQuery","class":"OCA\\Tables\\Db\\ContextMapper","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Db/ContextMapper.php","line":178,"function":"getFindContextBaseQuery","class":"OCA\\Tables\\Db\\ContextMapper","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Service/ContextService.php","line":87,"function":"findForNavBar","class":"OCA\\Tables\\Db\\ContextMapper","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Service/ContextService.php","line":91,"function":"findForNavigation","class":"OCA\\Tables\\Service\\ContextService","type":"->"},{"file":"/var/www/nextcloud/apps/tables/lib/Listener/LoadAdditionalEntriesListener.php","line":39,"function":"addToNavigation","class":"OCA\\Tables\\Service\\ContextService","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":57,"function":"handle","class":"OCA\\Tables\\Listener\\LoadAdditionalEntriesListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":206,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":56,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":74,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":87,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":369,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/NavigationManager.php","line":148,"function":"resolveAppNavigationEntries","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/apps/theming/lib/ThemingDefaults.php","line":153,"function":"getAll","class":"OC\\NavigationManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_Defaults.php","line":249,"function":"getShortFooter","class":"OCA\\Theming\\ThemingDefaults","type":"->"},{"file":"/var/www/nextcloud/lib/public/Defaults.php","line":153,"function":"getLongFooter","class":"OC_Defaults","type":"->"},{"file":"/var/www/nextcloud/core/templates/layout.guest.php","line":61,"function":"getLongFooter","class":"OCP\\Defaults","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":133,"args":["/var/www/nextcloud/core/templates/layout.guest.php"],"function":"include"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":106,"function":"load","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Template.php","line":113,"function":"fetchPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Template.php","line":143,"function":"fetchPage","class":"OC\\Template\\Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/Base.php","line":96,"function":"fetchPage","class":"OC\\Template\\Template","type":"->"},{"file":"/var/www/nextcloud/lib/private/Template/TemplateManager.php","line":134,"function":"printPage","class":"OC\\Template\\Base","type":"->"},{"file":"/var/www/nextcloud/index.php","line":93,"function":"printExceptionErrorPage","class":"OC\\Template\\TemplateManager","type":"->"},{"file":"/var/www/nextcloud/lib/OC.php","line":1403,"function":"{closure:/var/www/nextcloud/index.php:25}","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/index.php","line":25,"function":"handleRequests","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","Line":1165,"message":"OCP\\DB\\QueryBuilder\\IQueryBuilder::getQueryPart is deprecated and will be removed soon.","CustomMessage":"OCP\\DB\\QueryBuilder\\IQueryBuilder::getQueryPart is deprecated and will be removed soon."}}

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

Activity

  1. added theissue type on Oct 17, 2026
  2. self-assigned this
    on Oct 20, 2026
  3. moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity teamon Oct 20, 2026
  4. moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity teamon Oct 20, 2026
  5. moved this from 👀 In review to 🏗️ In progress in 📝 Productivity teamon Oct 20, 2026
  6. mejo- commented on Oct 20, 2026

    @mejo-
    Member

    Thanks for your report. Indeed that's a regression in Nextcloud 35. A fix is incoming.

  7. added a commit that references this issue on Oct 20, 2026
    eded378
  8. moved this from 🏗️ In progress to ☑️ Done in 📝 Productivity teamon Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions