-
Notifications
You must be signed in to change notification settings - Fork 264
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
getOutputStream() has already been called for this response #146
Comments
I'm not 100% sure how Spring (or Logbook?) behaves differently between embedded and standalone tomcat deployments. We are using the embedded deployment exclusively. @davidjirovec Are you willing to investigate this? |
I am very busy sorry :( Anyway the example demonstrates it well I think. I've tried different versions of Tomcat, both standalone and embedded and always same result. |
I have a similar issue with Logbook and Spring Boot. I noticed that when browser is accessing
You can try it for yourself by running the single test in this demo application. The problem occurs when
I would refactor this method, throwing out the last two lines and returning |
Thanks for the investigation. I guess it would be enough to delay the calls to |
Any plans on fix? Thanks. |
@davidjirovec I tried to replicate/fix this locally. I haven't finished it yet. |
…eady-called GH-146 Delegates getOutputStream and getWriter after withoutBody was called
@davidjirovec @Infeligo I deployed 1.2.1 just now. Should be in central soon. |
Thanks, issue is fixed for the example I've provided originally, but I still run in same problem when I turn on logging messages in logger configuration. Please see #155. I've updated my example to reproduce it again. |
When I use Logbook auto configuration with Spring Security with Spring Boot app packaged as war and deployed to Tomcat and try to access non existent url, I get
I have prepared minimal example to reproduce it here
without Logbook it works as expected - basic auth is required
without Spring Security it works as expected - not found error message is shown
when packaged as jar with embedded Tomcat it works perfectly
The problem is not present only when accessing non existent url - if there would be any controllers in my example, you would not be able to access them neither.
The text was updated successfully, but these errors were encountered: