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

Analyzer: Ensure parsed id contains digit #6448

Conversation

justin-stephenson
Copy link
Contributor

In analyzer list verbose output, we parse the last field of cache_req_search_send() lines. Certain log messages need to be filtered out by ensuring the parsed field is a digit, such as the last line below.

[cache_req_search_send] (0x0400): [CID#1] CR #1: Looking up GID:1031401119@testrealm.test [cache_req_search_send] (0x0400): [CID#1] CR #1: Looking up GID:1031401119@testrealm.test [cache_req_search_send] (0x0400): [CID#1] CR #1: Looking up GID:1031401119@domain-zflo.com [cache_req_search_send] (0x0400): [CID#1] CR #1: Returning [GID:1031401119@domain-zflo.com] from cache

Reviewed-by: Iker Pedrosa ipedrosa@redhat.com
Reviewed-by: Tomáš Halman thalman@redhat.com
(cherry picked from commit bfa8d50)

In analyzer list verbose output, we parse the last field of cache_req_search_send() lines.
Certain log messages need to be filtered out by ensuring the parsed field is
a digit, such as the last line below.

[cache_req_search_send] (0x0400): [CID#1] CR #1: Looking up GID:1031401119@testrealm.test
[cache_req_search_send] (0x0400): [CID#1] CR #1: Looking up GID:1031401119@testrealm.test
[cache_req_search_send] (0x0400): [CID#1] CR #1: Looking up GID:1031401119@domain-zflo.com
[cache_req_search_send] (0x0400): [CID#1] CR #1: Returning [GID:1031401119@domain-zflo.com] from cache

Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: Tomáš Halman <thalman@redhat.com>
(cherry picked from commit bfa8d50)
Copy link
Contributor

@ikerexxe ikerexxe left a comment

Choose a reason for hiding this comment

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

Just a little comment. The commit message contains information about who reviewed it for master. I don't know if that will cause some type of issue when merging it in sssd-2-7 branch.

Reviewed-by: Iker Pedrosa <ipedrosa@redhat.com>
Reviewed-by: Tomáš Halman <thalman@redhat.com>
(cherry picked from commit https://github.com/SSSD/sssd/commit/bfa8d50c479cf8ef7b299eb5848309a3a9ea7f12)

Apart from that LGTM.

@ikerexxe ikerexxe self-assigned this Nov 21, 2022
@alexey-tikhonov
Copy link
Member

Just a little comment. The commit message contains information about who reviewed it for master. I don't know if that will cause some type of issue when merging it in sssd-2-7 branch.

It shouldn't. This is our typical way to backport patches (cherry-pick -x).

@thalman thalman self-assigned this Nov 21, 2022
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.

ACK

@pbrezina
Copy link
Member

Pushed PR: #6448

  • sssd-2-7
    • 89ea4a5 - Analyzer: Ensure parsed id contains digit

@pbrezina pbrezina added Pushed and removed Accepted Ready to push Ready to push labels Nov 22, 2022
@pbrezina pbrezina closed this Nov 22, 2022
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.

None yet

5 participants