-
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
Servlet 3 asynchronous requests not correctly handled #2
Comments
I haven't had the chance to look into a filter chain with async requests. Could you provide a failing test case? |
Thanks @lukasniemeier-zalando for the quick response. I just created a small example project with a simple rest endpoint and the logging filter configured. The junit test though succeeds, but you can see in the logs that the httpLogger of the filter does not log a content type nor the body. If you run the example with the filter enabled the response is empty and if disabled the response is correct. Sorry for the form of the example, I didn't know a faster and easier solution. |
Thank's for the test case. I think @whiskeysierra already tried out something promising 🕐 |
Uh, that's great! Really looking forward to see async responses being logged! 👍 |
@rzimmer @c0nscience Can you try with |
We had the chance to take a deeper look at the refactored library yesterday and so far, it looks really good. Async responses are logged correctly now with body messages. Until now, nothing seems broken. Thanks for your effort, your quick reaction time and your greatly designed library, makes a lot of fun! |
Glad to hear that it works for you. We still have some TODOs on our wishlist for this, e.g. #17 (special setup for secure services) and I'm not 100% happy with the current separation of formatting and writing, but nothing concrete, more like a gut feeling. |
…ient5 fix: Return raw query and actual reason phrase from server response
Hi,
we just tried your logging filter implementation, but it breaks all of our requests. Because we use exclusively servlet 3 async requests in our application, every request mapping method returns a callable.
Example method declaration:
The response is always missing the content type and body, with the logging filter enabled.
Any suggestions how to fix this problem?
The text was updated successfully, but these errors were encountered: