-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Steps to reproduce
I haven't figured out the STR this, but it seems to be related to the notes app and orphaned favorites.
- Let a server run for some time and connect with the notes app to it
- Play with the notes app for a while
- After some time the errors will show up in the logs:
ERROR: invalid input syntax for integer: ""
Server configuration
Operating system: Debian GNU/Linux 10
Web server: nginx
Database: PostgreSQL 10
PHP version: 7.3
Nextcloud version: 16.0.5.1
Updated from an older Nextcloud/ownCloud or fresh install: fresh install
Where did you install Nextcloud from: Docker
Signing status:
Signing status
No errors have been found.
List of activated apps: _defaults with encryption
Nextcloud configuration: defaults with redis
Are you using encryption: yes
Client configuration
Browser: Mozilla/5.0 (Linux) mirall/2.5.2git (Nextcloud)
Operating system: Android
Logs
Web server error log
``` app: core method: POST url: /index.php/apps/notes/api/v0.2/notes message: Exception: Doctrine\DBAL\Exception\DriverException Message: An exception occurred while executing 'DELETE FROM "oc_vcategory_to_object" WHERE "objid" = ? AND "categoryid" = ? AND "type" = ?' with params [*** ID ***,false,"files"]:SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: ""
Code: 0
Trace:
file: /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
line: 184
function: convertException
class: Doctrine\DBAL\Driver\AbstractPostgreSQLDriver
args: ["An exception occurred while executing 'DELETE FROM "oc_vcategory_to_object" WHERE "objid" = ? AND "categoryid" = ? AND "type" = ?' with params [*** ID ***,false,"files"]: SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: """,{"errorInfo": ["22P02",7,"ERROR: invalid input syntax for integer: """],"class": "Doctrine\DBAL\Driver\PDOException"}]
file: /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php
line: 158,
function: wrapException
class: Doctrine\DBAL\DBALException
args: [{"__class__": "Doctrine\DBAL\Driver\PDOPgSql\Driver"},{"errorInfo": ["22P02",7,"ERROR: invalid input syntax for integer: """],"__class__": "Doctrine\DBAL\Driver\PDOException"},"An exception occurred while executing 'DELETE FROM "oc_vcategory_to_object" WHERE "objid" = ? AND "categoryid" = ? AND "type" = ?' with params [*** ID ***,false,"files"]:
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: """]
file: /var/www/html/3rdparty/doctrine/dbal/lib/Doctrine/DBAL/Statement.php
line: 178
function: driverExceptionDuringQuery
class: Doctrine\DBAL\DBALException
args: [{"__class__": "Doctrine\DBAL\Driver\PDOPgSql\Driver","errorInfo": ["22P02",7,"ERROR: invalid input syntax for integer: """],"__class__": "Doctrine\DBAL\Driver\PDOException"},"DELETE FROM "oc_vcategory_to_object" WHERE "objid" = ? AND "categoryid" = ? AND "type" = ?",{"1": "*** sensitive parameter replaced ***","2": "*** sensitive parameter replaced ***","3": "files"}]
file: /var/www/html/lib/private/legacy/db/statementwrapper.php",
line: 71,
function: execute
class: Doctrine\DBAL\Statement
args: [["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","files"]]
file: /var/www/html/lib/private/Tags.php
line: 728
function: execute
class: OC_DB_StatementWrapper
args: [["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","files"]]
file: /var/www/html/lib/private/Tags.php
line: 663
function: unTag
class: OC\Tags
args: ["*** sensitive parameter replaced ***","_$!<Favorite>!$_"]
file: /var/www/html/custom_apps/notes/lib/Service/NotesService.php
line: 220
function: removeFromFavorites
class: OC\Tags
args: ["*** sensitive parameter replaced ***"]
file: /var/www/html/custom_apps/notes/lib/Controller/NotesApiController.php
line: 166
function: favorite
class: OCA\Notes\Service\NotesService
args: ["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]
file: /var/www/html/custom_apps/notes/lib/Controller/NotesApiController.php
line: 133
function: updateData
class: OCA\Notes\Controller\NotesApiController
args: ["*** sensitive parameters replaced ***"]
file: /var/www/html/custom_apps/notes/lib/Controller/Errors.php
line: 22
function: OCA\Notes\Controller\{closure}
class: OCA\Notes\Controller\NotesApiController
args: ["*** sensitive parameters replaced ***"]
file: /var/www/html/custom_apps/notes/lib/Controller/NotesApiController.php
line: 134
function: respond
class: OCA\Notes\Controller\NotesApiController
args: [{"__class__": "Closure"}]
file: /var/www/html/lib/private/AppFramework/Http/Dispatcher.php
line: 166
function: create
class: OCA\Notes\Controller\NotesApiController
args: ["*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***","*** sensitive parameter replaced ***"]
file: /var/www/html/lib/private/AppFramework/Http/Dispatcher.php
line: 99
function: executeController
class: OC\AppFramework\Http\Dispatcher
args: [{"__class__": "OCA\Notes\Controller\NotesApiController"},"create"]
file: /var/www/html/lib/private/AppFramework/App.php
line: 126
function: dispatch
class: OC\AppFramework\Http\Dispatcher
args: [{"__class__": "OCA\Notes\Controller\NotesApiController"},"create"]
file: /var/www/html/lib/private/AppFramework/Routing/RouteActionHandler.php
line: 47
function: main
class: OC\AppFramework\App
args: ["OCA\Notes\Controller\NotesApiController","create",{"__class__": "OC\AppFramework\DependencyInjection\DIContainer"},{"_route": "notes.notes_api.create"}]
function: __invoke
class: OC\AppFramework\Routing\RouteActionHandler
args: [{"_route": "notes.notes_api.create"}]
file: /var/www/html/lib/private/Route/Router.php
line: 297
function: call_user_func
args: [{"__class__": "OC\AppFramework\Routing\RouteActionHandler"},{"_route": "notes.notes_api.create"}]
file: /var/www/html/lib/base.php
line: 975
function: match
class: OC\Route\Router
args: /apps/notes/api/v0.2/notes
file: /var/www/html/index.php
line: 42
function: handleRequest
class: OC
</details>