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

Contexts::context isEmpty during serverResponse.whenSent().thenRun(....) in SE 3.2.7 #8705

Open
RickyFrost opened this issue Apr 26, 2024 · 0 comments
Assignees
Labels
3.x Issues for 3.x version branch bug Something isn't working P2 webserver
Projects

Comments

@RickyFrost
Copy link

Environment Details

  • Helidon Version: 3.2.7
  • Helidon SE
  • JDK version: Graal 21
  • OS: OL 7u5
  • Docker version (if applicable): NA

Problem Description

My service uses Contexts.context() as a way to get hold of the serverRequest.context() in code that doesn't have access to the serverRequest. This mostly works except for service code that runs inside serverResponse.whenSent().thenRun(....)
That code gets an isEmpty return from Contexts.context(). I suspect this shouldn't be since the service code hasn't completed.

Steps to reproduce

In any service, try to execute code inside whenSent().thenRun that needs access to the request context.

@github-actions github-actions bot added this to Triage in Backlog Apr 26, 2024
@barchetta barchetta added 3.x Issues for 3.x version branch webserver bug Something isn't working P2 labels May 2, 2024
@barchetta barchetta moved this from Triage to Sprint Scope in Backlog May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issues for 3.x version branch bug Something isn't working P2 webserver
Projects
Backlog
  
Sprint Scope
Development

No branches or pull requests

3 participants