ForeignKeys missing for posixGroup in templates
Hello, I reproduce this issue on demo-fixes and demo-dev but not on demo.
The steps to reproduce the issue:
- Create a posix group
- Create a template where you add your posix group
- Create a user with the template to see if it work
- Delete the posix group
- Create another user with your template and you will fall on this error
Fatal error: Uncaught exception 'NonExistingLdapNodeException' with message 'Could not open dn cn=pt,ou=groups,dc=fusiondirectory,dc=org' in /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc:232 Stack trace: #0 /usr/share/fusiondirectory/plugins/admin/groups/posix/class_posixGroup.inc(112): simplePlugin->__construct('cn=pt,ou=groups...', NULL, Object(simpleTabs), true) #1 /usr/share/fusiondirectory/include/simpleplugin/class_simpleTabs.inc(86): posixGroup->__construct('cn=pt,ou=groups...', NULL, Object(simpleTabs), true) #2 /usr/share/fusiondirectory/include/class_objects.inc(186): simpleTabs->__construct('group', 'cn=pt,ou=groups...') #3 /usr/share/fusiondirectory/plugins/personal/posix/class_posixAccount.inc(636): objects::open('cn=pt,ou=groups...', 'group') #4 /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc(1208): posixAccount->ldap_save() #5 /usr/share/fusiondirectory/plugins/personal/posix/class_posixAccount.inc(613): simplePlugin->save() #6 /usr/share/fusiondirectory/inclu in /usr/share/fusiondirectory/include/simpleplugin/class_simplePlugin.inc on line 232
Note: The error is now catched properly but it would be better if the template is updated by a foreign key upon deleting the group.
- Relations:
- copied_to #5553 (closed)