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

Correctly fix NPE in servlet AsyncListener #10250

Merged
merged 1 commit into from
Jan 18, 2024
Merged

Correctly fix NPE in servlet AsyncListener #10250

merged 1 commit into from
Jan 18, 2024

Conversation

jonasrutishauser
Copy link
Contributor

This is the correct fix for #7449 as the spec says the following on AsyncEvent.getSuppliedResponse():

If the AsyncListener to which this AsyncEvent is being delivered was added using AsyncContext.addListener(AsyncListener, ServletRequest, ServletResponse), the returned ServletResponse will be the same as the one supplied to the above method. If the AsyncListener was added via AsyncContext.addListener(AsyncListener), this method must return null.

@jonasrutishauser jonasrutishauser requested a review from a team January 16, 2024 20:41
Copy link

linux-foundation-easycla bot commented Jan 16, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: jonasrutishauser / name: Jonas Rutishauser (ae0fbbf)

This is the correct fix for #7449 as the spec says the following on
AsyncEvent.getSuppliedResponse():
> If the AsyncListener to which this AsyncEvent is being delivered was added using AsyncContext.addListener(AsyncListener, ServletRequest, ServletResponse), the returned ServletResponse will be the same as the one supplied to the above method. If the AsyncListener was added via AsyncContext.addListener(AsyncListener), this method must return null.
@trask trask merged commit 35b143a into open-telemetry:main Jan 18, 2024
47 checks passed
@jonasrutishauser jonasrutishauser deleted the correctly-fix-npe-in-servlet-AsyncListener branch January 27, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants