-
Notifications
You must be signed in to change notification settings - Fork 137
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
Notes app causes server exceptions (due orphaned favorites?) #407
Comments
Please be more specific: what did you do exactly before the error happened? Which app do you mean: the web app or the Android app? Why do you think the error cause are orphaned favorites? Did the file with ID 520338 exist when the error happened? Did the log entries occur only once or do they appear repeatedly? When do they occur? |
This error occurs quite frequently when editing existing notes with the Android app. |
Thanks for your feedback. Does the Android app show any error or is synchronization still possible? Does the error log always contain the same file ID or are they different? Does that file exists in your Nextcloud? @ all : Does someone had this issue, too? |
There is no error in the app.
There are various IDs, but all of them exist in the database and on the filesystem. |
Does the Notes app work in your browser? If yes: Could you please try to add a note to favorites using the browser Notes app and try synchronizing the Android Notes app again? It looks that your Nextcloud user does not know anything about favorites (it's a special tag that is stored in the Maybe we should do an additional check in |
yes
no error occurred |
Thanks for the feedback. I did some improvements in #409 which should fix this issue then. |
Steps to reproduce
I haven't figured out the STR this, but it seems to be related to the notes app and orphaned favorites.
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
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"}]
SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: """]
The text was updated successfully, but these errors were encountered: