cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject cxf git commit: [CXF-7190] Preserving the 500 error cause
Date Wed, 21 Dec 2016 10:59:36 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 29a822225 -> 84bc175c4


[CXF-7190] Preserving the 500 error cause


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/84bc175c
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/84bc175c
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/84bc175c

Branch: refs/heads/master
Commit: 84bc175c4d816760a1cfd857b19eaa1fbbbfe461
Parents: 29a8222
Author: Sergey Beryozkin <sberyozkin@gmail.com>
Authored: Wed Dec 21 10:59:22 2016 +0000
Committer: Sergey Beryozkin <sberyozkin@gmail.com>
Committed: Wed Dec 21 10:59:22 2016 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/84bc175c/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
----------------------------------------------------------------------
diff --git a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
index 872bda0..83de439 100644
--- a/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
+++ b/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/ext/MessageContextImpl.java
@@ -55,6 +55,7 @@ import org.apache.cxf.jaxrs.impl.MetadataMap;
 import org.apache.cxf.jaxrs.impl.ProvidersImpl;
 import org.apache.cxf.jaxrs.interceptor.AttachmentInputInterceptor;
 import org.apache.cxf.jaxrs.interceptor.AttachmentOutputInterceptor;
+import org.apache.cxf.jaxrs.utils.ExceptionUtils;
 import org.apache.cxf.jaxrs.utils.JAXRSUtils;
 import org.apache.cxf.message.Exchange;
 import org.apache.cxf.message.ExchangeImpl;
@@ -288,7 +289,7 @@ public class MessageContextImpl implements MessageContext {
                                      new ProvidersImpl(inMessage));
             newAttachments.add(first);
         } catch (IOException ex) {
-            throw new WebApplicationException(500);
+            ExceptionUtils.toInternalServerErrorException(ex, null);
         }
         
     


Mime
View raw message