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

Uncaught Exception RuntimeException: Empty IN are not allowed in D:\wamp\www\glpi\src\DBmysqlIterator.php at line 589 #18847

Open
2 tasks done
EC2311 opened this issue Jan 30, 2025 · 0 comments

Comments

@EC2311
Copy link

EC2311 commented Jan 30, 2025

Code of Conduct

  • I agree to follow this project's Code of Conduct

Is there an existing issue for this?

  • I have searched the existing issues

Version

10.0.17

Bug description

Here is a change at the root, and reccursive.
Here are reccursive types of solution.

When logged at the root with arborescence : adding a type of solution on the change is ok
When logged at an other entity : no type of solution are shown to close the change : ko

Relevant log output

in php-errors.log : 
glpiphplog.CRITICAL:   *** Uncaught Exception RuntimeException: Empty IN are not allowed in D:\wamp\www\glpi\src\DBmysqlIterator.php at line 589
  Backtrace :
  src\DBmysqlIterator.php:560                        DBmysqlIterator->analyseCriterion()
  src\DBmysqlIterator.php:315                        DBmysqlIterator->analyseCrit()
  src\DBmysqlIterator.php:111                        DBmysqlIterator->buildQuery()
  src\DBmysql.php:1105                               DBmysqlIterator->execute()
  src\DbUtils.php:1074                               DBmysql->request()
  src\DbUtils.php:889                                DbUtils->getAncestorsOf()
  inc\db.function.php:656                            DbUtils->getEntitiesRestrictCriteria()
  src\Dropdown.php:3136                              getEntitiesRestrictCriteria()
  ajax\getDropdownValue.php:50                       Dropdown::getDropdownValue()
Nothing in sql-errors.log
Nothing in php_error.log

Page URL

No response

Steps To reproduce

  1. Create a reccursive change
  2. Having reccursive 'type of solution'
  3. logged on the root itself : the type of solutions are listed : OK
  4. logged on a different entity (on which the change is visible , as it is reccursive) : the type of solutions are empty : KO

Image

Your GLPI setup information

No response

Anything else?

No response

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