-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
User profile validation pattern error-message not rendered from messages_en.properties #29098
Comments
Due to the amount of issues reported by the community we are not able to prioritise resolving this issue at the moment. If you are affected by this issue, upvote it by adding a 👍 to the description. We would also welcome a contribution to fix the issue. |
fixed it and btw you can use the regex in your message like this:
|
fixes: keycloak#29098 Signed-off-by: Erik Jan de Wit <[email protected]>
In Version 25.0.1 it still not working. The nightly build is not testable at this time, because user profile ui is broken. I am waiting for merging and will test it again. |
fixes: keycloak#29098 Signed-off-by: Erik Jan de Wit <[email protected]>
fixes: #29098 Signed-off-by: Erik Jan de Wit <[email protected]>
Before reporting an issue
Area
admin/ui
Describe the bug
I use translation placeholder to configure messages for the user profile attributes. This worked as expected.
The translations located in the propertie file of the admin theme.
But the error-message for the pattern validator will not be rendered. Other placeholder translations like annotations work fine in the same properties file, e.g.
profile.attribute.myAttribute.placeholder
andprofile.attribute.myAttribute.description
.I tested it with "Add User" in the Admin UI keycloak.v2 theme.
Part of json config of the user profile:
{ "name": "myAttribute", "displayName": "${profile.attribute.myAttribute}", "validations": { "pattern": { "pattern": "^(admin|abc[0-9]{9,9})$", "error-message": "${profile.attribute.myAttribute.validator.errorMessage}" } }, "annotations": { "inputTypePlaceholder": "${profile.attribute.myAttribute.placeholder}", "inputHelperTextBefore": "${profile.attribute.myAttribute.description}" }, "required": { "roles": [ "admin", "user" ] }
Content in: admin/messages/messages_en.properties
profile.attribute.myAttribute.validator.errorMessage=My error message
Version
nightly Docker build
Regression
Expected behavior
Validator message should be rendered like other placeholders.
Actual behavior
see description on top
How to Reproduce?
Anything else?
No response
The text was updated successfully, but these errors were encountered: