playframework/playframework — pull request #2219 by jroper (2014-08-25 08:14:14+00:00)
Title: RequestBody.isMaxSizeExceeded returns incorrect result for request body encoded in multipart/form-data

RequestBody.isMaxSizeExceeded always returns false for a request body encoded in multipart/form-data, even if the request body has an entity which exceeds `parsers.text.maxLength`. But I can't get the entity because it exceeds the limit.

If you submit this form with a `body` entity which is larger than `parsers.text.maxLength`:
```html

```

`isMaxSizeExceeded()` returns false and the `body` entity is null.
```java
public static Result submit() {
Boolean isExceeded = request().body().isMaxSizeExceeded()); // false
String body = request().body().asMultipartFormData()
.asFormUrlEncoded().get("body"); // null
return ok();
}
```

ps. `isMaxSizeExceeded()` works correctly without any problem for `application/x-www-form-urlencoded`.