Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics 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
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 65
    • Issues 65
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • fusiondirectoryfusiondirectory
  • fusiondirectory-pluginsfusiondirectory-plugins
  • Issues
  • #5553
Something went wrong while setting issue due date.
Closed
Open
Issue created 7 years ago by Jonathan Swaelens@jswaelensDeveloper
  • New related issue

  • New related issue

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

    Tasks

    0

    No tasks are currently assigned. Use tasks to break down this issue into smaller parts.

    Linked items
    0

    Link issues together to show that they're related. Learn more.

    Activity


    • Côme Chilliet
      Côme Chilliet @cchilliet · 7 years ago
      Reporter

      Applied in changeset commit:fusiondirectory-plugins|1aacd3b3.

      (from redmine: written on 2017-05-29)

    • Côme Chilliet
      Côme Chilliet @cchilliet · 7 years ago
      Reporter

      Applied in changeset commit:fusiondirectory-plugins|e6f01a70.

      (from redmine: written on 2017-05-29)

    • Côme Chilliet
      Côme Chilliet @cchilliet · 7 years ago
      Reporter

      Close issue

      (from redmine: written on 2017-05-29)

    • Côme Chilliet closed 7 years ago

      closed

    • Côme Chilliet mentioned in issue #5555 (closed) 7 years ago

      mentioned in issue #5555 (closed)

    • bmortier added Fixed label 6 years ago

      added Fixed label

    Please register or sign in to reply
    Assignee
    Côme Chilliet's avatar
    Côme Chilliet
    Assign to
    Labels
    0
    None
    0
    None
      Assign labels
    • Manage project labels

    Milestone
    No milestone
    None
    Due date
    None
    None
    None
    Time tracking
    No estimate or time spent
    Confidentiality
    Not confidential
    Not confidential

    You are going to turn on confidentiality. Only project members with at least the Reporter role, the author, and assignees can view or be notified about this issue.

    Lock issue
    Unlocked
    3
    3 Participants
    Côme Chilliet
    bmortier
    Jonathan Swaelens
    Reference:

    Menu

    Explore Projects Groups Topics Snippets