Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when trying to edit authentication sub-flow name / description #30947

@mruzicka

Description

@mruzicka

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

It is not possible to edit any authentication sub-flow name / description.

Version

25.0.1

Regression

  • The issue is a regression

Expected behavior

  • The edits are saved and reflected in the list of executions / sub-flows.

Actual behavior

  • The edits are not saved, the following error is reported in an error box in the UI:

    Could not update flow: For more on this error consult the server log at the debug level.

  • The underlying Keycloak admin API request (/admin/realms/{realmName}/authentication/flows/{flowAlias}/executions) returns the following error message:

    Unrecognized field "name" (class org.keycloak.representations.idm.AuthenticationExecutionInfoRepresentation), not marked as ignorable (14 known properties: "requirement", "level", "authenticationFlow", "flowId", "providerId", "displayName", "requirementChoices", "alias", "index", "configurable", "authenticationConfig", "id", "description", "priority"])
    at [Source: REDACTED (StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION disabled); line: 1, column: 420] (through reference chain: org.keycloak.representations.idm.AuthenticationExecutionInfoRepresentation["name"])

How to Reproduce?

  1. navigate to Authentication
  2. click any editable (non built-in) flow containing a sub-flow
  3. click the Edit (the pencil icon) in the row of the sub-flow
  4. in the opened modal window perform the desired edits and click Save

Anything else?

  • when the modal window for editing the sub-flow's name / description is opened (as instructed in step 3.) its Name filed is not populated
  • it appears the bug is due to a mismatch in the name of the property holding the sub-flow's name used in the UI (name) vs. on the backend (displayName)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions