-
Notifications
You must be signed in to change notification settings - Fork 185
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
15.4.0-beta2: internal server errors when marking feed as read #1211
Comments
ghost
added
the
bug
label
Feb 28, 2021
Hey thanks for the report and the testing :) It's the same on mysql 8.0: {
"reqId": "WgYBXk1VwsWQV9csCFpG",
"level": 3,
"time": "2021-03-01T11:08:48+00:00",
"remoteAddr": "95.90.254.119",
"user": "benjamin",
"app": "index",
"method": "POST",
"url": "/index.php/apps/news/feeds/12/read",
"message": {
"Exception": "OC\\DB\\Exceptions\\DbalException",
"Message": "An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (feeds.user_id = :userId) AND (feeds.id = :feedId) AND (items.id =< :maxIt' at line 1",
"Code": 1064,
"Trace": [
{
"file": "/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php",
"line": 77,
"function": "wrap",
"class": "OC\\DB\\Exceptions\\DbalException",
"type": "::"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Db/FeedMapperV2.php",
"line": 178,
"function": "executeUpdate",
"class": "OC\\DB\\ConnectionAdapter",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Service/FeedServiceV2.php",
"line": 358,
"function": "read",
"class": "OCA\\News\\Db\\FeedMapperV2",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Controller/FeedController.php",
"line": 286,
"function": "read",
"class": "OCA\\News\\Service\\FeedServiceV2",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 218,
"function": "read",
"class": "OCA\\News\\Controller\\FeedController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 127,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 993,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/lib/private/DB/Exceptions/DbalException.php",
"Line": 70,
"Previous": {
"Exception": "Doctrine\\DBAL\\Exception\\SyntaxErrorException",
"Message": "An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (feeds.user_id = :userId) AND (feeds.id = :feedId) AND (items.id =< :maxIt' at line 1",
"Code": 1064,
"Trace": [
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1728,
"function": "convert",
"class": "Doctrine\\DBAL\\Driver\\API\\MySQL\\ExceptionConverter",
"type": "->"
},
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1667,
"function": "handleDriverException",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1146,
"function": "convertExceptionDuringQuery",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/Connection.php",
"line": 257,
"function": "executeStatement",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1747,
"function": "executeStatement",
"class": "OC\\DB\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/Connection.php",
"line": 236,
"function": "executeUpdate",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php",
"line": 75,
"function": "executeUpdate",
"class": "OC\\DB\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Db/FeedMapperV2.php",
"line": 178,
"function": "executeUpdate",
"class": "OC\\DB\\ConnectionAdapter",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Service/FeedServiceV2.php",
"line": 358,
"function": "read",
"class": "OCA\\News\\Db\\FeedMapperV2",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Controller/FeedController.php",
"line": 286,
"function": "read",
"class": "OCA\\News\\Service\\FeedServiceV2",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 218,
"function": "read",
"class": "OCA\\News\\Controller\\FeedController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 127,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 993,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/API/MySQL/ExceptionConverter.php",
"Line": 84,
"Previous": {
"Exception": "Doctrine\\DBAL\\Driver\\PDO\\Exception",
"Message": "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (feeds.user_id = :userId) AND (feeds.id = :feedId) AND (items.id =< :maxIt' at line 1",
"Code": 1064,
"Trace": [
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php",
"line": 50,
"function": "new",
"class": "Doctrine\\DBAL\\Driver\\PDO\\Exception",
"type": "::"
},
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1144,
"function": "exec",
"class": "Doctrine\\DBAL\\Driver\\PDO\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/Connection.php",
"line": 257,
"function": "executeStatement",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1747,
"function": "executeStatement",
"class": "OC\\DB\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/Connection.php",
"line": 236,
"function": "executeUpdate",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php",
"line": 75,
"function": "executeUpdate",
"class": "OC\\DB\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Db/FeedMapperV2.php",
"line": 178,
"function": "executeUpdate",
"class": "OC\\DB\\ConnectionAdapter",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Service/FeedServiceV2.php",
"line": 358,
"function": "read",
"class": "OCA\\News\\Db\\FeedMapperV2",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Controller/FeedController.php",
"line": 286,
"function": "read",
"class": "OCA\\News\\Service\\FeedServiceV2",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 218,
"function": "read",
"class": "OCA\\News\\Controller\\FeedController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 127,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 993,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Exception.php",
"Line": 26,
"Previous": {
"Exception": "PDOException",
"Message": "SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (feeds.user_id = :userId) AND (feeds.id = :feedId) AND (items.id =< :maxIt' at line 1",
"Code": "42000",
"Trace": [
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php",
"line": 44,
"function": "exec",
"class": "PDO",
"type": "->"
},
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1144,
"function": "exec",
"class": "Doctrine\\DBAL\\Driver\\PDO\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/Connection.php",
"line": 257,
"function": "executeStatement",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php",
"line": 1747,
"function": "executeStatement",
"class": "OC\\DB\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/Connection.php",
"line": 236,
"function": "executeUpdate",
"class": "Doctrine\\DBAL\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/DB/ConnectionAdapter.php",
"line": 75,
"function": "executeUpdate",
"class": "OC\\DB\\Connection",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Db/FeedMapperV2.php",
"line": 178,
"function": "executeUpdate",
"class": "OC\\DB\\ConnectionAdapter",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Service/FeedServiceV2.php",
"line": 358,
"function": "read",
"class": "OCA\\News\\Db\\FeedMapperV2",
"type": "->"
},
{
"file": "/var/www/nextcloud/apps/news/lib/Controller/FeedController.php",
"line": 286,
"function": "read",
"class": "OCA\\News\\Service\\FeedServiceV2",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 218,
"function": "read",
"class": "OCA\\News\\Controller\\FeedController",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",
"line": 127,
"function": "executeController",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/AppFramework/App.php",
"line": 157,
"function": "dispatch",
"class": "OC\\AppFramework\\Http\\Dispatcher",
"type": "->"
},
{
"file": "/var/www/nextcloud/lib/private/Route/Router.php",
"line": 302,
"function": "main",
"class": "OC\\AppFramework\\App",
"type": "::"
},
{
"file": "/var/www/nextcloud/lib/base.php",
"line": 993,
"function": "match",
"class": "OC\\Route\\Router",
"type": "->"
},
{
"file": "/var/www/nextcloud/index.php",
"line": 37,
"function": "handleRequest",
"class": "OC",
"type": "::"
}
],
"File": "/var/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Connection.php",
"Line": 44
}
}
},
"CustomMessage": "--"
},
"userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0",
"version": "21.0.0.18"
} |
Interestingly the android client doesn't trigger this. I can mark a feed as read, without errors. |
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 1, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 2, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 2, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 2, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 9, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 17, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 23, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 23, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 23, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 25, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
to SMillerDev/news
that referenced
this issue
Mar 30, 2021
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
SMillerDev
added a commit
that referenced
this issue
Mar 31, 2021
Issue GH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Grotax
added a commit
that referenced
this issue
Apr 3, 2021
Changed - Add BATS as integration tests (#1213) - Update FeedFetcher to import categories from feeds (#1248) - Update serialization of item to include categories (#1248) - Make PHPStan stricter (#955) - Search: Add folder search (#1215) - Improve test coverage (#1263) - Allow directly adding a feed without going through the discovery process (#1265) Fixed - Do not show deleted feeds in item list (#1214) - Fix update queries (#1211)
Merged
Grotax
added a commit
that referenced
this issue
Apr 3, 2021
Changed - Add BATS as integration tests (#1213) - Update FeedFetcher to import categories from feeds (#1248) - Update serialization of item to include categories (#1248) - Make PHPStan stricter (#955) - Search: Add folder search (#1215) - Improve test coverage (#1263) - Allow directly adding a feed without going through the discovery process (#1265) Fixed - Do not show deleted feeds in item list (#1214) - Fix update queries (#1211) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Grotax
added a commit
that referenced
this issue
Apr 3, 2021
Changed - Add BATS as integration tests (#1213) - Update FeedFetcher to import categories from feeds (#1248) - Update serialization of item to include categories (#1248) - Make PHPStan stricter (#955) - Search: Add folder search (#1215) - Improve test coverage (#1263) - Allow directly adding a feed without going through the discovery process (#1265) Fixed - Do not show deleted feeds in item list (#1214) - Fix update queries (#1211) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Not sure if I'm experiencing the same issue, but this doesn't seem to be fixed. At 15.4.0,
Is it the same issue or should I create a new one? |
Neo11
pushed a commit
to Neo11/news
that referenced
this issue
May 28, 2022
Issue nextcloudGH-1211 Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Neo11
pushed a commit
to Neo11/news
that referenced
this issue
May 28, 2022
Changed - Add BATS as integration tests (nextcloud#1213) - Update FeedFetcher to import categories from feeds (nextcloud#1248) - Update serialization of item to include categories (nextcloud#1248) - Make PHPStan stricter (nextcloud#955) - Search: Add folder search (nextcloud#1215) - Improve test coverage (nextcloud#1263) - Allow directly adding a feed without going through the discovery process (nextcloud#1265) Fixed - Do not show deleted feeds in item list (nextcloud#1214) - Fix update queries (nextcloud#1211) Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
IMPORTANT
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Explain the Problem
There are internal server errors after upgrading News to 15.4.0-beta2 when marking a feed as read using Sqlite or PSQL (haven't tested Mariadb/MySQL).
Steps to Reproduce
Explain what you did to encounter the issue
System Information
Contents of nextcloud/data/nextcloud.log
Sqlite
PSQL1
PSQL2
Contents of Browser Error Console
Read http://ggnome.com/wiki/Using_The_Browser_Error_Console if you are unsure what to put hereThe text was updated successfully, but these errors were encountered: