ffang commented on PR #3740:
URL: https://github.com/apache/cxf/pull/3740#issuecomment-6984978065
Thanks @coheigea , looks good. The move into `FaultUtils` keeps the SOAP
output unchanged, and the XML binding no longer sends the cause's class name.
`core`, `rt/bindings/soap` and `rt/bindings/xml` tests pass locally.
FYI, JAX-RS has a similar issue. `JAXRSDefaultFaultOutInterceptor` writes
the same `xformat` fault with its own copy of the old code:
```java
Throwable t = f.getCause();
writer.writeCharacters(t == null ? f.getMessage() : t.toString());
```
So an unmapped exception still returns the exception class name.
`JAXRSClientServerBookTest.testPropogateException2` expects exactly that:
```
org.apache.cxf.systest.jaxrs.BookNotFoundFault: Book Exception
```
Using `FaultUtils.getFaultString(message, f)` there gives `Book Exception`,
and that test's expected value would need updating. Up to you whether to
include it here or do it separately.
Minor: `InternalContextUtils` in ws-addr (line 215) still uses the
hard-coded literal:
```java
partialResponse.put("forced.faultstring", ...
```
It could use the new `FaultUtils.FORCED_FAULT_STRING` constant instead.
Cheers
Freeman
--
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]