Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • fusiondirectory-plugins fusiondirectory-plugins
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 53
    • Issues 53
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Issues
  • #5555

Closed
Open
Created May 29, 2017 by Côme Chilliet@cchillietReporter

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)
Edited Oct 17, 2017 by bmortier
Assignee
Assign to
Time tracking