Skip to content

Conversation

slobodanadamovic
Copy link
Contributor

@slobodanadamovic slobodanadamovic commented Sep 5, 2025

The way predicate was constructed could result in a NullPointerException
when name or friendlyName is null. This is because the contains
method of ImmutableCollections does not accept nulls.

This PR fixes this and adds more test coverage for these edge cases.

Technically it's a bug, but marking this as >non-issue because PR,
that introduced the private attributes, is not released yet.

The way predicate was constructed could result in a `NullPointerException`
when `name` or `friendlyName` are null.

This is because the `contains` method of `ImmutableCollections` does not
accept nulls.

This PR fixes this and adds more test coverage for these cases.
@slobodanadamovic slobodanadamovic self-assigned this Sep 5, 2025
@slobodanadamovic slobodanadamovic added >non-issue :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team labels Sep 5, 2025
@slobodanadamovic slobodanadamovic marked this pull request as ready for review September 5, 2025 13:36
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-security (Team:Security)

@slobodanadamovic slobodanadamovic merged commit 2149f15 into elastic:main Sep 5, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>non-issue :Security/Authentication Logging in, Usernames/passwords, Realms (Native/LDAP/AD/SAML/PKI/etc) Team:Security Meta label for security team v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants