Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

server should not call a plugin after the plugin close function is called #50

Closed
389-ds-bot opened this issue Sep 12, 2020 · 6 comments
Closed
Labels
closed: fixed Migration flag - Issue
Milestone

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/50


https://bugzilla.redhat.com/show_bug.cgi?id=698770

The directory server crashes if it is shutdown before a long running task can
complete

https://bugzilla.redhat.com/show_bug.cgi?id=698421

the reason is that a plugin postop function is being called after the plugin
close function has been called.  Once the server calls the plugin close
function, the plugin should be removed from the list of active plugins, and
plugin_free should be called on that plugin.
@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 12, 2020
@389-ds-bot 389-ds-bot added this to the 1.2.10.a7 milestone Sep 12, 2020
@389-ds-bot
Copy link
Author

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2012-01-20 01:00:55

Added a new flag to plugin struct to mark when the plugin is closed. This flag is checked when we attempt to call a plugin function. We also now check if the plugin is closed before issuing a plugin task.

Sending fix out for review...

Mark

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2012-01-20 06:04:45

Looks good to me.

@389-ds-bot
Copy link
Author

Comment from mreynolds (@mreynolds389) at 2012-01-20 21:31:18

Fix is pushed to master:

[mareynol@mareynol plugins]$ git merge ticket50
Updating 403078e..81737b9
Fast-forward
ldap/servers/plugins/linkedattrs/fixup_task.c | 15 +++++++++++++++
ldap/servers/plugins/linkedattrs/linked_attrs.c | 5 +++++
ldap/servers/plugins/linkedattrs/linked_attrs.h | 5 +++++
ldap/servers/plugins/memberof/memberof.c | 9 +++++++++
ldap/servers/plugins/usn/usn.c | 9 +++++++++
ldap/servers/plugins/usn/usn.h | 1 +
ldap/servers/plugins/usn/usn_cleanup.c | 8 ++++++++
ldap/servers/slapd/plugin.c | 5 ++++-
ldap/servers/slapd/slap.h | 3 ++-
9 files changed, 58 insertions(+), 2 deletions(-)
[mareynol@mareynol plugins]$ git push
Counting objects: 42, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (25/25), done.
Writing objects: 100% (25/25), 2.83 KiB, done.
Total 25 (delta 17), reused 0 (delta 0)
To ssh://mreynolds389@git.fedorahosted.org/git/389/ds.git
403078e..81737b9 master -> master

@389-ds-bot
Copy link
Author

Comment from nkinder (@nkinder) at 2012-08-28 04:14:26

Added initial screened field value.

@389-ds-bot
Copy link
Author

Comment from nhosoi (@nhosoi) at 2017-02-11 23:08:21

Metadata Update from @nhosoi:

  • Issue assigned to mreynolds389
  • Issue set to the milestone: 1.2.10.a7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant