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

Ldap sync not lock users OP#60566 #17581

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

fantinialex
Copy link
Contributor

Ticket

https://community.openproject.org/projects/openproject/work_packages/60566/activity

What are you trying to accomplish?

The goal is to resolve a bug in the ldap_users_sync_status feature where inactive users are not disabled during synchronization. The issue arises due to a .map operation being executed on a nil object, causing the process to fail.

What approach did you choose and why?

The chosen approach is to add a safeguard for the .map operation, ensuring it handles nil values gracefully. This eliminates the error and restores the intended functionality of disabling inactive users during LDAP sync.

Merge checklist

  • Added/updated tests
  • Added/updated documentation in Lookbook (patterns, previews, etc)
  • Tested major browsers (Chrome, Firefox, Edge, ...)

@oliverguenther
Copy link
Member

Good catch @fantinialex 👍

@oliverguenther oliverguenther merged commit 72cb9ba into opf:dev Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants