Skip to content

Commit

Permalink
Issue #81 Exception not always thrown in Jetty to application when up…
Browse files Browse the repository at this point in the history
…load part is too big

Issue #82 Request.getPart() that results in Exception still allows other parts to be fetched
  • Loading branch information
janbartel committed Feb 16, 2016
1 parent 496be5e commit 11d3448
Show file tree
Hide file tree
Showing 3 changed files with 325 additions and 228 deletions.
Expand Up @@ -1489,14 +1489,13 @@ public void handle(String target, Request baseRequest, HttpServletRequest reques
request.setAttribute(Request.__MULTIPART_CONFIG_ELEMENT, mpce);

//We should get an error when we getParams if there was a problem parsing the multipart
request.getParameter("xxx");
request.getPart("xxx");
//A 200 response is actually wrong here
}
catch (RuntimeException e)
{
response.sendError(500);
}

}
}

Expand Down

0 comments on commit 11d3448

Please sign in to comment.