Details
-
Bug
-
Resolution: Won't Fix
-
Low
-
None
-
4.0, 6.2.7
-
4
-
2
-
Severity 3 - Minor
-
1
-
-
Description
When the HTML body of the Text Gadget reaches a certain length, the contents will fail to load and the Edit link disappears.
Steps to Reproduce:
- Add the Text Gadget to your dashboard
- Add a lot of content into the HTML body, for example:
<!doctype html> <html> <head> <title></title> </head> <body> <table align="center" border="2" cellpadding="2" cellspacing="2" style="width: 500px;"> <thead> <tr> <th scope="col"><span style="font-size:14px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone</span></span></th> <th scope="col"><span style="font-size:14px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Date</span></span></th> <th scope="col"><span style="font-size:14px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Tickets</span></span></th> </tr> </thead> <tbody> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> <tr> <td><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">Milestone mark 1</span></span></td> <td style="text-align: center;"><strong><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">9/15</span></span></strong></td> <td style="text-align: center;"><span style="font-size:12px;"><span style="font-family:trebuchet ms,helvetica,sans-serif;">49/153</span></span></td> </tr> </tbody> </table> <p> </p> </body> </html>
- Save the gadget, it will appear just fine initially
- Refresh the page
- Notice that the gadget is blank and there is no option to Edit it
Cause
When refreshing the gadget, it actually performs a request containing all of the HTML body. So the more data you've added, the longer the request becomes. At a certain point, you'll hit the limit of the request, either on the web browser side, the proxy side, or the web server side.
Workaround if Head Request Limitation is caused by Tomcat
In server.xml:
- Try increasing the maxHttpHeaderSize
- by default it is set to 8192 kb.
- For example, here's the default connector:
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" port="8079" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true"/>
- This can be modified to be:
<Connector acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" enableLookups="false" maxHttpHeaderSize="65536" maxThreads="150" minSpareThreads="25" port="8079" protocol="HTTP/1.1" redirectPort="8443" useBodyEncodingForURI="true"/>
- Restart JIRA
Attachments
Issue Links
- is caused by
-
JRASERVER-20787 Gadget URL length problem
- Gathering Impact
- relates to
-
JRASERVER-18898 We should use POST instead of GET when retrieving data for gadgets
- Closed