Bug 503601 - Need to fix all text areas in the UI to deal with Max Post size
Summary: Need to fix all text areas in the UI to deal with Max Post size
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Spacewalk
Classification: Community
Component: WebUI
Version: 0.6
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jan Pazdziora (Red Hat)
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2009-06-01 20:49 UTC by Partha Aji
Modified: 2011-08-05 12:13 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-08-05 12:13:42 UTC
Embargoed:


Attachments (Terms of Use)

Description Partha Aji 2009-06-01 20:49:42 UTC
Many of the text areas used in our web UI, for example pages such as Create/Edit Snippets, Create/Edit Raw Kickstats, Create/Edit Config files, Channel Descriptions, Config Channel descriptions etc do not  specify a Max Character limit when getting rendered causing issues like


2009-06-01 10:46:19,859 [TP-Processor7] ERROR com.redhat.rhn.frontend.servlets.SessionFilter - Error during transaction. Rolling back
java.lang.IllegalStateException: Post too large
	at org.apache.catalina.connector.Request.parseParameters(Request.java:2368)
	at org.apache.catalina.connector.Request.getParameter(Request.java:1005)
	at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:353)
	at com.redhat.rhn.frontend.servlets.EnvironmentFilter.addParameterizedMessages(EnvironmentFilter.java:112)
	at com.redhat.rhn.frontend.servlets.EnvironmentFilter.doFilter(EnvironmentFilter.java:105)



One way to tackle this is to figure out whats the max size we would like on a case by case basis and enforce it on the browser.. But that won;t entirely prevent one from  doing a post request with overwhelming data...

Comment 1 Partha Aji 2009-06-01 20:53:03 UTC
Refer to https://bugzilla.redhat.com/show_bug.cgi?id=444221#c34 for more info...

Comment 2 Colin Coe 2010-03-16 03:01:16 UTC
In /etc/rhn/default/rhn_web.conf 'web.post_max' is defined and set to '512000'.  Should this value be used for the textareas?

Comment 3 Jan Pazdziora (Red Hat) 2010-11-19 16:03:59 UTC
Mass-moving to space13.

Comment 4 Miroslav Suchý 2011-04-11 07:32:39 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 5 Miroslav Suchý 2011-04-11 07:36:52 UTC
We did not have time for this one during Spacewalk 1.4 time frame. Mass moving to Spacewalk 1.5.

Comment 6 Jan Pazdziora (Red Hat) 2011-07-20 11:50:43 UTC
Aligning under space16.

Comment 7 Jan Pazdziora (Red Hat) 2011-07-25 16:54:16 UTC
(In reply to comment #2)
> In /etc/rhn/default/rhn_web.conf 'web.post_max' is defined and set to '512000'.
>  Should this value be used for the textareas?

I can only see this value to be used in the Perl stack, web/modules/pxt/PXT/ApacheHandler.pm. And I believe it's the size of the whole POST request, not of individual values in the POST request.

I plan to close WONTFIX this bugzilla unless we have some easy patch.

Comment 8 Jan Pazdziora (Red Hat) 2011-08-05 12:13:42 UTC
Closing now.


Note You need to log in before you can comment on or make changes to this bug.