Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-19614

Text Gadget chokes to death on some input

    XMLWordPrintable

Details

    • 4
    • 2
    • Severity 3 - Minor
    • 1
    • Hide
      Atlassian Update – 22 Oct 2018

      Hi everyone,

      We have recently reviewed this issue and the overall interest in the problem. As the issue hasn't collect votes, watchers, comments, or support cases from many customers during its lifetime, it's very low on our priority list, and will not be fixed in the foreseeable future. That's why we've decided to resolve it as Time Out.

      Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Jira team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details.

      We understand how disappointing this decision may be, but we hope you'll appreciate our transparent approach and communication.
      Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments.

      Thank you,
      Ignat Alexeyenko
      Jira Bugmaster

      Show
      Atlassian Update – 22 Oct 2018 Hi everyone, We have recently reviewed this issue and the overall interest in the problem. As the issue hasn't collect votes, watchers, comments, or support cases from many customers during its lifetime, it's very low on our priority list, and will not be fixed in the foreseeable future. That's why we've decided to resolve it as Time Out . Although we're aware the issue is still important to those of you who were involved in the conversations around it, we want to be clear in managing your expectations. The Jira team is focusing on issues that have broad impact and high value, reflected by the number of comments, votes, support cases, and customers interested. Please consult the Atlassian Bugfix Policy for more details. We understand how disappointing this decision may be, but we hope you'll appreciate our transparent approach and communication. Atlassian will continue to watch this issue for further updates, so please feel free to share your thoughts in the comments. Thank you, Ignat Alexeyenko Jira Bugmaster

    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>&nbsp;</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

          Activity

            People

              Unassigned Unassigned
              jpendleton Justus Pendleton (Inactive)
              Votes:
              32 Vote for this issue
              Watchers:
              32 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: