-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
GLPI: 10.0.11
Behaviors plugin: 2.7.3
I believe I found a bug related to the plugin: when I try to create a ticket with only group(s) in the requester field, an error occurs, and a completely empty ticket is opened in the Root entity, even if the profile opening the ticket does not have permission in Root.
Steps to reproduce the issue:
- Enable "Requester is mandatory" in the Behaviors plugin.
- With a technician profile, create a ticket with only a group assigned in the requester field.
Errors:
Interface:
php-errors.log:
[2025-03-25 16:45:32] glpiphplog.WARNING: *** PHP Warning (2): Undefined variable $actors in /var/www/html/glpi/plugins/behaviors/inc/ticket.class.php at line 420
Backtrace :
src/Plugin.php:1680 PluginBehaviorsTicket::beforeAdd()
src/CommonDBTM.php:1294 Plugin::doHook()
src/Api/API.php:1859 CommonDBTM->add()
src/Api/APIRest.php:317 Glpi\Api\API->createItems()
apirest.php:57 Glpi\Api\APIRest->call()
public/index.php:82 require()
[2025-03-25 16:45:32] glpiphplog.WARNING: *** PHP Warning (2): Undefined variable $actors in /var/www/html/glpi/plugins/behaviors/inc/ticket.class.php at line 475
Backtrace :
src/Plugin.php:1680 PluginBehaviorsTicket::beforeAdd()
src/CommonDBTM.php:1294 Plugin::doHook()
src/Api/API.php:1859 CommonDBTM->add()
src/Api/APIRest.php:317 Glpi\Api\API->createItems()
apirest.php:57 Glpi\Api\APIRest->call()
public/index.php:82 require()
[2025-03-25 16:45:32] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "name" in /var/www/html/glpi/src/CommonITILObject.php at line 2573
Backtrace :
src/Ticket.php:1811 CommonITILObject->prepareInputForAdd()
src/CommonDBTM.php:1297 Ticket->prepareInputForAdd()
src/Api/API.php:1859 CommonDBTM->add()
src/Api/APIRest.php:317 Glpi\Api\API->createItems()
apirest.php:57 Glpi\Api\APIRest->call()
public/index.php:82 require()
[2025-03-25 16:45:32] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "name" in /var/www/html/glpi/src/CommonITILObject.php at line 2625
Backtrace :
src/Ticket.php:1811 CommonITILObject->prepareInputForAdd()
src/CommonDBTM.php:1297 Ticket->prepareInputForAdd()
src/Api/API.php:1859 CommonDBTM->add()
src/Api/APIRest.php:317 Glpi\Api\API->createItems()
apirest.php:57 Glpi\Api\APIRest->call()
public/index.php:82 require()
[2025-03-25 16:45:32] glpiphplog.WARNING: *** PHP Warning (2): Undefined array key "content" in /var/www/html/glpi/src/CommonITILObject.php at line 2626
Backtrace :
src/Ticket.php:1811 CommonITILObject->prepareInputForAdd()
src/CommonDBTM.php:1297 Ticket->prepareInputForAdd()
src/Api/API.php:1859 CommonDBTM->add()
src/Api/APIRest.php:317 Glpi\Api\API->createItems()
apirest.php:57 Glpi\Api\APIRest->call()
public/index.php:82 require()
access-errors.log:
2025-03-28 07:47:11 [1148@glpi-5b6f796d-kbtn6]
User ID: 1148 tried to access or perform an action on /front/ticket.form.php?id=43709 with insufficient rights. Additional information: Missing READ right. Cannot view the item.
Stack Trace:
/var/www/html/glpi/src/CommonDBTM.php:6451 displayRightError()
/var/www/html/glpi/src/CommonDBTM.php:6544 displayAccessDeniedPage()
/var/www/html/glpi/front/ticket.form.php:265 displayFullPageForItem()
/var/www/html/glpi/public/index.php:82 require()
Empty ticket opened with the error on Root entity:
Behaviors config:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels




