View | Details | Raw Unified | Return to bug 58031
Collapse All | Expand All

(-)java/org/apache/catalina/connector/Request.java (+4 lines)
Lines 2714-2719 Link Here
2714
                            // Value separator
2714
                            // Value separator
2715
                            postSize++;
2715
                            postSize++;
2716
                            if (postSize > maxPostSize) {
2716
                            if (postSize > maxPostSize) {
2717
                                response.setStatus(HttpServletResponse
2718
                                        .SC_REQUEST_ENTITY_TOO_LARGE);
2717
                                throw new IllegalStateException(sm.getString(
2719
                                throw new IllegalStateException(sm.getString(
2718
                                        "coyoteRequest.maxPostSizeExceeded"));
2720
                                        "coyoteRequest.maxPostSizeExceeded"));
2719
                            }
2721
                            }
Lines 3009-3014 Link Here
3009
            if (len > 0) {
3011
            if (len > 0) {
3010
                int maxPostSize = connector.getMaxPostSize();
3012
                int maxPostSize = connector.getMaxPostSize();
3011
                if ((maxPostSize > 0) && (len > maxPostSize)) {
3013
                if ((maxPostSize > 0) && (len > maxPostSize)) {
3014
                    response.setStatus(HttpServletResponse
3015
                            .SC_REQUEST_ENTITY_TOO_LARGE);
3012
                    Context context = getContext();
3016
                    Context context = getContext();
3013
                    if (context != null && context.getLogger().isDebugEnabled()) {
3017
                    if (context != null && context.getLogger().isDebugEnabled()) {
3014
                        context.getLogger().debug(
3018
                        context.getLogger().debug(

Return to bug 58031