Closed
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
admin/ui
Describe the bug
For this SAML mapper, User Attribute should be a required field.
It doesn't make sense for this mapper to have a null User Attribute. And according to reports, it leads to a NullPointerException on the server:
2025-02-20 15:06:41,209 WARN [org.keycloak.services] (executor-thread-116) KC-SERVICES0013: Failed authentication: java.lang.NullPointerException: Cannot invoke "String.equalsIgnoreCase(String)" because "name" is null
at org.keycloak.storage.ldap.mappers.UserAttributeLDAPStorageMapper$3.getFirstAttribute(UserAttributeLDAPStorageMapper.java:366)
Version
main
Regression
- The issue is a regression
Expected behavior
User Attribute required
Actual behavior
User Attribute not required
How to Reproduce?
- Create a client scope with protocal SAML
- Go to the Mappers tab
- Add mapper by configuration
- Select "User Attribute Mapper For NameID"
- Observe
User Attribute
field that should be mandatory
Anything else?
No response