cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject svn commit: r1343868 - /cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
Date Tue, 29 May 2012 17:36:29 GMT
Author: sergeyb
Date: Tue May 29 17:36:29 2012
New Revision: 1343868

URL: http://svn.apache.org/viewvc?rev=1343868&view=rev
Log:
Returning 400 in case of missing multiparts

Modified:
    cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java

Modified: cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java?rev=1343868&r1=1343867&r2=1343868&view=diff
==============================================================================
--- cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
(original)
+++ cxf/trunk/rt/frontend/jaxrs/src/main/java/org/apache/cxf/jaxrs/utils/multipart/AttachmentUtils.java
Tue May 29 17:36:29 2012
@@ -117,7 +117,7 @@ public final class AttachmentUtils {
                                                            mt.toString());
                 LOG.warning(errorMsg.toString());
                 throw new WebApplicationException(
-                          new MultipartReadException(id.value(), id.type(), errorMsg.toString()));
+                          new MultipartReadException(id.value(), id.type(), errorMsg.toString()),
400);
             } else {
                 return null;
             }



Mime
View raw message