79633859

Date: 2025-05-22 13:32:14
Score: 1.5
Natty:
Report link

You duplicate the input stream but not its content. As @John posted, you can use a ContentCachingRequestWrapper. I combined it to a component extending OncePerRequestFilter and a storage with @RequestScope to retrieve it in any service. This leads to a lighter solution, given in https://stackoverflow.com/a/79633806/7251133.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @John
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Florian H.