Skip to content
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

Reactive endpoint fails if security is not configured #963

Closed
mcollovati opened this issue Sep 24, 2024 · 1 comment · Fixed by #964
Closed

Reactive endpoint fails if security is not configured #963

mcollovati opened this issue Sep 24, 2024 · 1 comment · Fixed by #964
Labels
bug Something isn't working released Issue has been released

Comments

@mcollovati
Copy link
Owner

If a browser callable class defines a reactive endpoint (returning Flux), the application fails at runtime because of missing CurrentIdentityAssociation bean.

2024-09-24 20:55:19,566 WARN  [org.atm.web.DefaultWebSocketProcessor] (vert.x-eventloop-thread-0) Failed invoking AtmosphereFramework.doCometSupport(): jakarta.enterprise.inject.UnsatisfiedResolutionException: No bean found for required type [interface io.quarkus.security.identity.CurrentIdentityAssociation] and qualifiers [[]]
	at io.quarkus.arc.impl.InstanceImpl.bean(InstanceImpl.java:288)
	at io.quarkus.arc.impl.InstanceImpl.getInternal(InstanceImpl.java:309)
	at io.quarkus.arc.impl.InstanceImpl.get(InstanceImpl.java:190)
	at io.quarkus.security.identity.CurrentIdentityAssociation.current(CurrentIdentityAssociation.java:66)
	at com.github.mcollovati.quarkus.hilla.SpringReplacements.authenticationUtil_getSecurityHolderAuthentication(SpringReplacements.java:41)
	at com.vaadin.hilla.push.PushMessageHandler.handleBrowserSubscribe(PushMessageHandler.java:143)
	at com.vaadin.hilla.push.PushMessageHandler.handleMessage(PushMessageHandler.java:102)
	at com.vaadin.hilla.push.PushEndpoint.onMessage(PushEndpoint.java:121)
	at com.vaadin.hilla.push.PushEndpoint.onMessageRequest(PushEndpoint.java:67)
	at com.vaadin.hilla.push.PushEndpoint.onRequest(PushEndpoint.java:42)
	at org.atmosphere.cpr.AsynchronousProcessor.action(AsynchronousProcessor.java:217)
	at org.atmosphere.cpr.AsynchronousProcessor.suspended(AsynchronousProcessor.java:103)
	at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:67)
	at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2284)
	at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:574)
	at org.atmosphere.websocket.DefaultWebSocketProcessor.lambda$dispatch$2(DefaultWebSocketProcessor.java:326)
	at org.atmosphere.util.VoidExecutorService.execute(VoidExecutorService.java:101)
	at org.atmosphere.websocket.DefaultWebSocketProcessor.dispatch(DefaultWebSocketProcessor.java:323)
	at org.atmosphere.websocket.DefaultWebSocketProcessor.invokeWebSocketProtocol(DefaultWebSocketProcessor.java:428)
	at org.atmosphere.container.JSR356Endpoint.lambda$onOpen$2(JSR356Endpoint.java:261)
@mcollovati mcollovati added the bug Something isn't working label Sep 24, 2024
@mcollovati mcollovati moved this from 🆕 New to 🏗 In progress in quarkus-hilla backlog Sep 24, 2024
mcollovati added a commit that referenced this issue Sep 24, 2024
Prevents failures if CurrentIdentityAssociation bean is not present.

Fixes #963
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in quarkus-hilla backlog Sep 24, 2024
quarkus-hilla-bot bot pushed a commit that referenced this issue Sep 24, 2024
Prevents failures if CurrentIdentityAssociation bean is not present.

Fixes #963

(cherry picked from commit 426c0bd)
quarkus-hilla-bot bot pushed a commit that referenced this issue Sep 24, 2024
Prevents failures if CurrentIdentityAssociation bean is not present.

Fixes #963

(cherry picked from commit 426c0bd)
mcollovati added a commit that referenced this issue Sep 24, 2024
Prevents failures if CurrentIdentityAssociation bean is not present.

Fixes #963

(cherry picked from commit 426c0bd)

Co-authored-by: Marco Collovati <mcollovati@gmail.com>
mcollovati added a commit that referenced this issue Sep 24, 2024
Prevents failures if CurrentIdentityAssociation bean is not present.

Fixes #963

(cherry picked from commit 426c0bd)

Co-authored-by: Marco Collovati <mcollovati@gmail.com>
Copy link

This issue has been resolved in 24.5.0-alpha4 (Release Notes)

@github-actions github-actions bot added the released Issue has been released label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released Issue has been released
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant