ffang commented on PR #3744:
URL: https://github.com/apache/cxf/pull/3744#issuecomment-7010867048

   LGTM 👍
   
   Verified locally: module tests pass with `-Psourcecheck`, and both new tests 
fail against the old handler (the first one gets `Internal Error 
500<script>alert('xss')</script>` back; the second one NPEs because the old 
Content-Length was the char count, so the `é` truncated the body).
   
   Two minor nits, not blocking:
   - `isIncludeExceptionMessage()` only reads the Bus property, while the 
SOAP/XML fault paths use `MessageUtils.getContextualBoolean`, which also 
honours endpoint properties. Maybe also check 
`undertowHTTPDestination.getEndpointInfo().getProperty(Message.EXCEPTION_MESSAGE_CAUSE_ENABLED)`,
 or note in the javadoc that it's bus-level only.
   - Every failed request still logs at WARNING with a full stack trace (same 
as the old `printStackTrace()`, so not a regression); errors a client can 
trigger, like dropped connections, might be better at FINE.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to