Bug #2985

Crash in business rules

Added by remi almost 10 years ago. Updated almost 10 years ago.

Status:ClosedStart date:07/07/2011
Priority:HighDue date:
Assignee:remi% Done:

100%

Category:Search Engine
Target version:0.80.2

Description

Rule criteria
  • Collecteur Mail est Collecteur National
  • Description contient Type de dysfonctionnement: Matériel
  • Description contient Type de matériel: Téléphone
Actions
  • Typologie Assigner Dysfonctionnement > Dysfonctionnement Matériel
  • Affecté à - Groupe Assigner 49-GIT
  • Composant Assigner : matériel sur nom + domaine Téléphone

In php-errors.log (glpi 0.78.5)

Notice(8): Undefined offset:  0
Backtrace :
/app/gbp02/web/glpi/inc/ruleticket.class.php:118                userErrorHandlerNormal()
/app/gbp02/web/glpi/inc/rule.class.php:654              RuleTicket->executeActions()
/app/gbp02/web/glpi/inc/rulecollection.class.php:568            Rule->process()
/app/gbp02/web/glpi/inc/ticket.class.php:1071           RuleCollection->processAllRules()
/app/gbp02/web/glpi/inc/commondbtm.class.php:567                Ticket->prepareInputForAdd()
/app/gbp02/web/glpi/inc/mailcollector.class.php:394             CommonDBTM->add()
/app/gbp02/web/glpi/inc/mailcollector.class.php:1123            MailCollector->collect()
/app/gbp02/web/glpi/inc/crontask.class.php:671          call_user_func()
/app/gbp02/web/glpi/front/cron.php:80           CronTask::launch()

Associated revisions

Revision 14858
Added by remi almost 10 years ago

[0.80] protect action with regex result usage when no regex in criteria, see #2985

Revision 14859
Added by remi almost 10 years ago

[0.78] protect action with regex result usage when no regex in criteria, see #2985

Revision 14861
Added by remi almost 10 years ago

protect action with regex result usage when no regex in criteria, fixed #2985

History

#1 Updated by remi almost 10 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Applied in changeset r14861.

#2 Updated by moyo almost 10 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF