Skip to content

Conversation

@justin-stephenson
Copy link
Contributor

Fixes an issue where ID overrides were not applied properly for the Default Trust View.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request addresses a bug where ID overrides were not being applied if no templates were present. The change correctly removes the else block that caused a premature exit from sysdb_apply_default_override, ensuring that override logic is always executed. Additionally, a misleading comment has been removed, improving code clarity. The fix appears correct and complete, and I have no further suggestions.

@alexey-tikhonov
Copy link
Member

@justin-stephenson, is this related to #8059?

@justin-stephenson
Copy link
Contributor Author

justin-stephenson commented Aug 11, 2025

@justin-stephenson, is this related to #8059?

Yes.

@justin-stephenson justin-stephenson marked this pull request as ready for review August 11, 2025 15:05
@justin-stephenson
Copy link
Contributor Author

Added @pytest.mark.parametrize("view", ["Default Trust View", "example1"]) in ID override template tests in #7517 to cover this.

@alexey-tikhonov
Copy link
Member

@justin-stephenson, is this related to #8059?

Yes.

Could you please add corresponding "Resolves:" line to the commit message?

@justin-stephenson justin-stephenson force-pushed the overrides_default_view_fix branch from 5685189 to 861c0b7 Compare August 11, 2025 15:22
@justin-stephenson
Copy link
Contributor Author

justin-stephenson commented Aug 11, 2025

Could you please add corresponding "Resolves:" line to the commit message?

Added, thanks.

Copy link
Contributor

@thalman thalman left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

@pbrezina
Copy link
Member

@justin-stephenson only backport to 2-9? Not 2-10 2-11?

@justin-stephenson
Copy link
Contributor Author

@justin-stephenson only backport to 2-9? Not 2-10 2-11?

https://github.com/SSSD/sssd/pull/7924 was 2-9 backport only was 2-9 only also, I set the same here.

@alexey-tikhonov
Copy link
Member

@justin-stephenson, could you please rebase?

Fixes an issue where ID overrides were not applied properly
for the Default Trust View.

Resolves: SSSD#8059
@justin-stephenson justin-stephenson force-pushed the overrides_default_view_fix branch from 861c0b7 to 2702adb Compare September 2, 2025 12:44
@justin-stephenson
Copy link
Contributor Author

@justin-stephenson, could you please rebase?

Done.

@alexey-tikhonov
Copy link
Member

Pushed PR: #8070

  • master
    • 9cbb08d - sysdb: Execute override code even if no templates exist
  • sssd-2-9
    • 6d595cd - sysdb: Execute override code even if no templates exist

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.

IPA idoverride and auto private groups - behavior change with the copr repo @sssd/nightly

4 participants