eclipse-ee4j / metro-jax-ws

metro-jax-ws
https://eclipse-ee4j.github.io/metro-jax-ws/
BSD 3-Clause "New" or "Revised" License
68 stars 40 forks source link

BUG 35047999: Show Server Error in faultString instead of error details. #648

Closed himanshuatgit closed 1 year ago

himanshuatgit commented 1 year ago

As of now, SOAP response packet contains faultString which contains detailed error message in case of any SOAP Fault.

The customer has a requirement where they do not want any exception messages to be displayed in the faultString for security concerns.

For the same reason, a fix was introduced for BUG34600318 where a new system property com.sun.xml.ws.fault.SOAPFaultBuilder.captureExceptionMessage=false has been added to simulate customer intended behavior.

This bug is intended to address the same issue but to include all possible cases which has been missed in the previous BUG34600318.

Added more testcases in file: ./jaxws-ri/runtime/rt/src/test/java/com/sun/xml/ws/fault/SOAPFaultBuilderTest.java

Signed-off-by: Himanshu Ranjan himanshu.ranjan@oracle.com

himanshuatgit commented 1 year ago

Changes done. Kindly review.

himanshuatgit commented 1 year ago

Changes done. Please review.

himanshuatgit commented 1 year ago

Pull request updated. Please have a look.