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

🐛 Only create connector once to fix ident mangling #460

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

mansam
Copy link
Collaborator

@mansam mansam commented Jul 25, 2023

Creating the tracker connector inside of the loop results in Decrypt being called on the tracker's Identity once for each ticket to be created. Decrypt is not idempotent, so this scrambles the password on subsequent calls. This was causing batch creation of Jira tickets to fail strangely, as only the first ticket in any batch would be created before the credentials were scrambled.

Fixes https://issues.redhat.com/projects/MTA/issues/MTA-696

@mansam mansam requested a review from jortel July 25, 2023 21:03
@mansam mansam changed the title Only create connector once to fix ident mangling 🐛 Only create connector once to fix ident mangling Jul 25, 2023
Copy link
Contributor

@jortel jortel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: Sam Lucidi <slucidi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants