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

Don't read the servlet's InputStream #207

Merged
merged 5 commits into from
Sep 2, 2023
Merged

Conversation

apotterri
Copy link
Contributor

The agent should not cause the body of a request to be read, e.g. by
getting the parameter map before HttpServlet.service is invoked. These
changes avoid this by calling getParameterMap after HttpServlet.service
returns.

Also fixes a couple of other bugs I noticed while working on this one.

Fixes #199 .

Remote recording should be enabled when appmap.recording.requests is
false.
Don't run the spring-javaformat plugin in the PetClinic apps.

Also, make the test scripts a little less chatty.
When a SpringApplication is deployed to a servlet container (e.g.
Tomcat), both the SpringApplication.applyInitializers and
SpringServletContainerInitializer.onStartup will be run. These changes
allow for that, and ensure that the ServletListener and
RemoteRecordingFilter are only added once.
The agent should not cause the body of a request to be read, e.g. by
getting the parameter map before HttpServlet.service is invoked.  These
changes avoid this by calling getParameterMap after HttpServlet.service
returns.
@apotterri apotterri marked this pull request as ready for review September 1, 2023 20:29
@apotterri apotterri merged commit c0ac080 into master Sep 2, 2023
1 check passed
@apotterri apotterri deleted the empty-input_20230822 branch September 2, 2023 08:28
@appland-release
Copy link

🎉 This PR is included in version 1.20.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

agent consumes servlet's InputStream
3 participants