struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject struts git commit: WW-4468 Switched to buildError on file limit excided
Date Fri, 06 Mar 2015 20:40:47 GMT
Repository: struts
Updated Branches:
  refs/heads/develop a1d277fac -> 5665dd52b


WW-4468 Switched to buildError on file limit excided


Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/5665dd52
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/5665dd52
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/5665dd52

Branch: refs/heads/develop
Commit: 5665dd52b5a6b430d74d6c9f1ca7b85ee2709007
Parents: a1d277f
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Fri Mar 6 21:40:10 2015 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Fri Mar 6 21:40:10 2015 +0100

----------------------------------------------------------------------
 .../dispatcher/multipart/JakartaStreamMultiPartRequest.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/5665dd52/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
b/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
index eae0039..6fbd2c3 100644
--- a/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
+++ b/core/src/main/java/org/apache/struts2/dispatcher/multipart/JakartaStreamMultiPartRequest.java
@@ -357,7 +357,7 @@ public class JakartaStreamMultiPartRequest implements MultiPartRequest
{
     private void addFileSkippedError(String fileName, HttpServletRequest request) {
         String exceptionMessage = "Skipped file " + fileName + "; request size limit exceeded.";
         FileSizeLimitExceededException exception = new FileUploadBase.FileSizeLimitExceededException(exceptionMessage,
getRequestSize(request), maxSize);
-        String message = buildMessage(exception, new Object[]{fileName, getRequestSize(request),
maxSize});
+        String message = buildErrorMessage(exception, new Object[]{fileName, getRequestSize(request),
maxSize});
         if (!errors.contains(message))
             errors.add(message);
     }


Mime
View raw message