8000 Unknown error on authentication-flow delete action · Issue #38145 · keycloak/keycloak · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unknown error on authentication-flow delete action #38145
Closed
@mriedmann

Description

@mriedmann

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 possible to select the "delete" action inside the authentication-flow edit view. If the flow is currently in-use this is failing with an error (as expected) but the error message is just saying "unknown error". It would be helpful to usable the button (as in the Authentication overview) or give a more meaningful error-message.

Version

26.1.4

Regression

  • The issue is a regression

Expected behavior

Remove the "delete" option if the flow is in use

or add "Error: Flow is currently in use" as an error-message

Image

Actual behavior

Image

Console Log:

2025-03-16 14:06:18,737 traceId=884e29242fd0e05bbf97eb5c82c311a8, parentId=47fa7693a70d10ab, spanId=47fa7693a70d10ab, sampled=true ERROR [org.keycloak.services.error.KeycloakErrorHandler] (executor-thread-158) Uncaught server error: org.keycloak.models.ModelException: Cannot remove authentication flow, it is currently in use
        at org.keycloak.models.jpa.RealmAdapter.removeAuthenticationFlow(RealmAdapter.java:1520)
        at org.keycloak.models.cache.infinispan.RealmAdapter.removeAuthenticationFlow(RealmAdapter.java:1365)
        at org.keycloak.models.utils.KeycloakModelUtils.deepDeleteAuthenticationFlow(KeycloakModelUtils.java:1030)
�       at org.keycloak.services.resources.admin.AuthenticationManagementResource.deleteFlow(AuthenticationManagementResource.java:370)
�       at org.keycloak.services.resources.admin.AuthenticationManagementResource$quarkusrestinvoker$deleteFlow_c7a3b2245d7e636a2fcab9cafd6ed82fb5d1f875.invoke(Unknown Source)
        at org.jboss.resteasy.reactive.server.handlers.InvocationHandler.handle(InvocationHandler.java:29)
�       at io.quarkus.resteasy.reactive.server.runtime.QuarkusResteasyReactiveRequestContext.invokeHandler(QuarkusResteasyReactiveRequestContext.java:141)
        at org.jboss.resteasy.reactive.common.core.AbstractResteasyReactiveContext.run(AbstractResteasyReactiveContext.java:147)
        at io.quarkus.vertx.core.runtime.VertxCoreRecorder$14.runWith(VertxCoreRecorder.java:635)
        at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2516)
        at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2495)
        at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1521)
        at org.jboss.threads.DelegatingRunnable.run(DelegatingRunnable.java:11)
        at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:11)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:1583)

How to Reproduce?

  • duplicate a flow
  • bind the flow
  • enter flow
  • click Action > Delete

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0