Something went wrong while setting issue due date.
Typos in template masks should be better handled
Closed
Typos in template masks should be better handled
Currently using a non-existing attribute in a template mask results in a PHP error, and a Fatal Error in FD:
Exception: Cannot traverse an already closed generator in /usr/share/fusiondirectory/include/class_templateHandling.inc:239
Stack trace:
#0 /usr/share/fusiondirectory/include/class_templateHandling.inc(195): templateHandling::parseString(NULL, Array, NULL, 'l', NULL)
#1 /usr/share/fusiondirectory/include/class_template.inc(362): templateHandling::parseArray(Array, Array, NULL)
#2 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(115): template->apply()
#3 /usr/share/fusiondirectory/include/simpleplugin/class_simpleManagement.inc(62): templateDialog->handle_finish()
#4 /usr/share/fusiondirectory/include/management/class_management.inc(461): templateDialog->save_object()
#5 /usr/share/fusiondirectory/include/management/class_management.inc(1270): management->execute()
#6 /usr/share/fusiondirectory/include/class_pluglist.inc(565): management::mainInc()
#7 /usr/share/fusiondirectory/html/main.php(222): pluglist::runMainInc('189')
#8 {main}
Distribution Name and Version
Debian
FusionDirectory Version
1.4-dev
PHP version used
7.0
Origin of php packages
Debian
Steps to Reproduce
- Use a mask like
%asme%
in a template - Use this template to create an object
Expected behavior:
Error message shown to the user. Template apply canceled.
Actual behavior:
PHP Error + Exception
Reproduces how often:
100%