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

Exception in Deck/DB/BoardMapper.php line 218 #6590

Open
Gravelbones opened this issue Dec 10, 2024 · 0 comments
Open

Exception in Deck/DB/BoardMapper.php line 218 #6590

Gravelbones opened this issue Dec 10, 2024 · 0 comments

Comments

@Gravelbones
Copy link

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Describe the bug
In the log file there is the following exception multiple times:
{"reqId":"Zqx6PuhDcZXxSJhl4Tld","level":2,"time":"2024-12-10T10:37:11+00:00","remoteAddr":"x.x.x.x","user":"x","app":"no app in context","method":"GET","url":"/nextcloud/ocs/v2.php/apps/deck/api/v1.0/overview/upcoming","message":"Using where() on non-empty WHERE part, please verify it is intentional to not call andWhere() or orWhere() instead. Otherwise consider creating a new query builder object or call resetQueryPart('where') first.","version":"30.0.1.2","exception":{"Exception":"Doctrine\DBAL\Query\QueryException","Message":"Using where() on non-empty WHERE part, please verify it is intentional to not call andWhere() or orWhere() instead. Otherwise consider creating a new query builder object or call resetQueryPart('where') first.","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/deck/lib/Db/BoardMapper.php","line":218,"function":"where","class":"OC\DB\QueryBuilder\QueryBuilder","type":"->"}

To Reproduce
Steps to reproduce the behavior:

  1. Go to Deck
  2. Create a board
  3. Create a card
  4. Click card details
  5. Add any text

Expected behavior
The program should not throw an exception

Client details:

  • OS: Windows
  • Browser Firefox
  • Version 133
  • Device: Laptop

Server details

  • Operating system: Debian
  • Web server: Apache
  • Database: Postgres
  • PHP version: 8.2.26
  • Nextcloud version: 30.0.1
  • Where did you install Nextcloud from: Source

To fix this you need to change ->where after an innerjoin to andWhere. This must be because innerjoin adds its own where clause.

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

1 participant