-
Notifications
You must be signed in to change notification settings - Fork 74
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
Jans auth server client registration language metadata fix tests #2864
Jans auth server client registration language metadata fix tests #2864
Conversation
[jans-cli] Kudos, SonarCloud Quality Gate passed! |
[jans-pycloudlib] Kudos, SonarCloud Quality Gate passed! |
[notify] Kudos, SonarCloud Quality Gate passed! |
[jans-linux-setup] Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
[jans-config-api-parent] Kudos, SonarCloud Quality Gate passed! |
[jans-core] Kudos, SonarCloud Quality Gate passed! |
[Fido2 API] Kudos, SonarCloud Quality Gate passed! |
[SCIM API] Kudos, SonarCloud Quality Gate passed! |
[Jans authentication server parent] Kudos, SonarCloud Quality Gate passed! |
@@ -149,19 +149,19 @@ public void updateClientFromRequestObject(Client client, RegisterRequest request | |||
} | |||
|
|||
for (String key : requestObject.getClientNameLanguageTags()) { | |||
client.setClientName(requestObject.getClientName(key), Locale.forLanguageTag(key)); | |||
client.setClientNameLocalized(requestObject.getClientName(key), Locale.forLanguageTag(key)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So if there is no language tag set we end up client name skipped even if it's set in request object.
I mean we need plain setters for non-localized versions, like
client.setClientName(requestObject.getClientName());
Isn't it? Otherwise how non-localized version io.jans.as.common.model.registration.Client#clientName
is used?
I am closing this pull request and opening a new one because it is not allowing me to merge changes from the main branch. |
Pull request was closed
Prepare
Description
Target issue
closes #issue-number-here
Implementation Details
Test and Document the changes