Navigation Menu

Skip to content

Commit

Permalink
CommonsMultipartResolver explicitly converts FileSizeLimitExceededExc…
Browse files Browse the repository at this point in the history
…eption

Issue: SPR-14638
  • Loading branch information
jhoeller committed Aug 30, 2016
1 parent 960d335 commit 58ffca7
Showing 1 changed file with 5 additions and 2 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright 2002-2015 the original author or authors.
* Copyright 2002-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -160,8 +160,11 @@ protected MultipartParsingResult parseRequest(HttpServletRequest request) throws
catch (FileUploadBase.SizeLimitExceededException ex) {
throw new MaxUploadSizeExceededException(fileUpload.getSizeMax(), ex);
}
catch (FileUploadBase.FileSizeLimitExceededException ex) {
throw new MaxUploadSizeExceededException(fileUpload.getFileSizeMax(), ex);
}
catch (FileUploadException ex) {
throw new MultipartException("Could not parse multipart servlet request", ex);
throw new MultipartException("Failed to parse multipart servlet request", ex);
}
}

Expand Down

0 comments on commit 58ffca7

Please sign in to comment.