Something went wrong while setting issue due date.
Crash error when we remove a posix group that we used in a template
Closed
Crash error when we remove a posix group that we used in a template
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
- Remove your 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
To make it work again I must remove "fdTemplateField: posixGroups:cn=pt,ou=groups,dc=fusiondirectory,dc=org" for the ldap.
dn: cn=template_cn,ou=templates,ou=people,dc=fusiondirectory,dc=org objectClass: fdTemplate fdTemplateField: force_ids:FALSE fdTemplateField: homeDirectory:/srv/ftp/%uid% fdTemplateField: loginShell:/bin/ash fdTemplateField: mustchangepassword:FALSE fdTemplateField: objectClass:inetOrgPerson fdTemplateField: objectClass:organizationalPerson fdTemplateField: objectClass:person fdTemplateField: objectClass:posixAccount fdTemplateField: objectClass:shadowAccount fdTemplateField: posixGroups:cn=pt,ou=groups,dc=fusiondirectory,dc=org cn: template_cn
(from redmine: issue id 5553, created on 2017-05-29, closed on 2017-05-29)
- Relations:
- copied_to #5555 (closed)
- Changesets:
- Revision 1aacd3b3 by Côme Chilliet on 2017-05-29T09:41:52.000Z:
Fixes #5553 Catching exception to avoid crashes in case of invalid data from template
- Revision e6f01a70 by Côme Chilliet on 2017-05-29T09:42:29.000Z:
Fixes #5553 Catching exception to avoid crashes in case of invalid data from template
- Custom Fields:
- Support contract: None