Skip to content

sysdb: Execute override code even if no templates exist#8070

Closed
justin-stephenson wants to merge 1 commit into
SSSD:masterfrom
justin-stephenson:overrides_default_view_fix
Closed

sysdb: Execute override code even if no templates exist#8070
justin-stephenson wants to merge 1 commit into
SSSD:masterfrom
justin-stephenson:overrides_default_view_fix

Conversation

@justin-stephenson

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown

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
Copy Markdown
Member

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

@justin-stephenson

justin-stephenson commented Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

@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
Copy Markdown
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
Copy Markdown
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

justin-stephenson commented Aug 11, 2025

Copy link
Copy Markdown
Contributor Author

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

Added, thanks.

@thalman thalman left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Member

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

@justin-stephenson

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

@justin-stephenson, could you please rebase?

Done.

@alexey-tikhonov

Copy link
Copy Markdown
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