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

batch: Do not fail on missing attribute principal in error case #7332

Conversation

t-woerner
Copy link
Member

@t-woerner t-woerner commented Apr 23, 2024

context.principal is used for the info log in the error case of the execution of the commands. But this attribute does not seem to be set in all cases, which results in a trace in the error handling. Therefore the execution is aborted and real failure is not returned.

Fixes: https://pagure.io/freeipa/issue/9583

@t-woerner t-woerner added ipa-4-10 Mark for backport to ipa 4.10 ipa-4-11 Mark for backport to ipa 4.11 labels Apr 23, 2024
@t-woerner t-woerner force-pushed the batch_fix_missing_attribute_principal branch from b53885e to c339717 Compare April 23, 2024 10:54
@t-woerner t-woerner added the needs review Pull Request is waiting for a review label Apr 23, 2024
Copy link
Member

@rjeffman rjeffman left a comment

Choose a reason for hiding this comment

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

LGTM.

@f-trivino
Copy link
Contributor

@t-woerner could you file an issue ticket? https://pagure.io/freeipa/new_issue, and add "Fixes:" in the commit message?

context.principal is used for the info log in the error case of the
execution of the commands. But this attribute does not seem to be set
in all cases, which results in a trace in the error handling. Therefore
the execution is aborted and real failure is not returned.

Fixes: https://pagure.io/freeipa/issue/9583

Signed-off-by: Thomas Woerner <twoerner@redhat.com>
@t-woerner t-woerner force-pushed the batch_fix_missing_attribute_principal branch from c339717 to bc45e6b Compare April 25, 2024 13:15
@rjeffman rjeffman added the re-run Trigger a new run of PR-CI label Apr 25, 2024
@freeipa-pr-ci freeipa-pr-ci removed the re-run Trigger a new run of PR-CI label Apr 25, 2024
@t-woerner
Copy link
Member Author

@t-woerner could you file an issue ticket? https://pagure.io/freeipa/new_issue, and add "Fixes:" in the commit message?

Here is the ticket: https://pagure.io/freeipa/issue/9583

@rcritten
Copy link
Contributor

rcritten commented May 1, 2024

This is superseded by #7335 right?

@varunmylaraiah varunmylaraiah requested review from varunmylaraiah and removed request for varunmylaraiah May 3, 2024 05:50
@t-woerner
Copy link
Member Author

This is superseded by #7335 right?

Yes, I am closing this one.

@t-woerner t-woerner closed this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ipa-4-10 Mark for backport to ipa 4.10 ipa-4-11 Mark for backport to ipa 4.11 needs review Pull Request is waiting for a review
Projects
None yet
5 participants