Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-21996

Text Gadget fails to render HTML content after a refresh

    XMLWordPrintable

Details

    Description

      Here are the steps to reproduce this bug:

      1. Using a JIRA 4.x instance to replicate the problem
      2. Go to Administration -> System -> Plugins and enable the Text from JIRA Gadgets Plugin
      3. In JIRA Dashboard view, click on 'Add Gadget'
      4. Select Text
      5. Fill in anything inside the 'Title' field and copy paste the HTML code provided in this issue inside the 'HTML' field
        <HTML><HEAD>
        <TITLE></TITLE>
        <META http-equiv="contentNormal-Type" contentnormal="text/html; charset=iso-8859-1">
        <STYLE type="text/css">
        <!--
        *{font-family:Arial,Helvetica,sans-serif;}
        .Headercontent {
        	color: #000000;
        	font-weight: bold; 
        	font-size:12px;
        	background-color:#CCCCCC;
        	text-align:center;
        	}
        
        .contentNormal{ 
        	font-size:12px;
        	color:#3C78B5; 
        	line-height:1.4;
        	padding:1px;
        	margin-left:5px;
        	text-align:center;
        }
        .contentNormalHiLight{ 
        	font-size:12px;
        	color:#000000; 
        	padding:1px;
        	font-weight: normal;   
        	margin-left:5px;
        	text-align:center;
        }
        -->
        </STYLE>
        </HEAD><BODY bgcolor="#FFFFFF">
        <TABLE width="100%" cellpadding="0" cellspacing="0" border="1" bordercolor="#999999" >
          <TR>
            <TD class="Headercontent" width="12.5%">Ref No.<P></P></TD>
            <TD class="Headercontent" width="12.5%">Release Cycle<P></P></TD>
            <TD class="Headercontent" width="12.5%">(WL) Req Freeze<P></P></TD>
            <TD class="Headercontent" width="12.5%">&nbsp;(INT ) Req Freeze<P></P></TD>
            <TD class="Headercontent" width="12.5%">(Change Request) Req Freeze <P></P></TD>
            <TD class="Headercontent" width="12.5%">Regional IT Dev Freeze<P></P></TD>
            <TD class="Headercontent" width="12.5%">HQ CVS Repository Freeze (Code Freeze)<P></P></TD>
            <TD class="Headercontent" width="12.5%">Cutover (CET time)<P></P></TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100706</TD>
            <TD class="contentNormal">Weekly release</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 29Jun, 2010</TD>
            <TD class="contentNormal">Thu, 01Jul, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 06Jul, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100713</TD>
            <TD class="contentNormal">Weekly release</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 06Jul, 2010</TD>
            <TD class="contentNormal">Thu, 08Jul, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 13Jul, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100720</TD>
            <TD class="contentNormal"><P>Weekly release</P></TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 13Jul, 2010</TD>
            <TD class="contentNormal">Thu, 15Jul, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 20Jul, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormalHiLight">MR-20100729</TD>
            <TD class="contentNormalHiLight">Monthly release (July)</TD>
            <TD class="contentNormalHiLight"><B>Tue, 15Jun, 2010</B></TD>
            <TD class="contentNormalHiLight"><B>Tue, 22Jun, 2010</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;-</B></TD>
            <TD class="contentNormalHiLight"><B>Tue,13Jul,2010*</B></TD>
            <TD class="contentNormalHiLight"><B>Tue, 20Jul, 2010 *</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;Thu, 29Jul, 2010 *</B></TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100803</TD>
            <TD class="contentNormal"><P>Weekly release</P></TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 27Jul, 2010</TD>
            <TD class="contentNormal">&nbsp;Thu,29Jul, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 03Aug, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100810</TD>
            <TD class="contentNormal"><P>Weekly release</P></TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 03Aug, 2010</TD>
            <TD class="contentNormal">&nbsp;Thu,05Aug, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 10Aug, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100817</TD>
            <TD class="contentNormal"><P>Weekly release</P></TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Mon, 09Aug, 2010</TD>
            <TD class="contentNormal">&nbsp;Wed,11Aug, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 17Aug, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormalHiLight">WR-20100826</TD>
            <TD class="contentNormalHiLight">Monthly release (August)</TD>
            <TD class="contentNormalHiLight"><B>Fri, 09Jul, 2010</B></TD>
            <TD class="contentNormalHiLight"><B>Fri, 16Jul, 2010</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;-</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;Mon,09Aug, 2010 *</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;Tue, 17Aug, 2010 *</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;Thu, 26Aug, 2010 *</B></TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100831</TD>
            <TD class="contentNormal"><P>Weekly release</P></TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 24Aug, 2010</TD>
            <TD class="contentNormal">&nbsp;Thu,26Aug, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 31Aug, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100907</TD>
            <TD class="contentNormal"><P>Weekly release</P></TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 31Aug, 2010</TD>
            <TD class="contentNormal">Thu,02Sep, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 07Sep, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100914</TD>
            <TD class="contentNormal"><P>Weekly release</P></TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 07Sep, 2010</TD>
            <TD class="contentNormal">Thu,09Sep, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 14Sep, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormal">WR-20100921</TD>
            <TD class="contentNormal"><P>Weekly release</P></TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">Tue, 14Sep, 2010</TD>
            <TD class="contentNormal">Thu,16Sep, 2010</TD>
            <TD class="contentNormal">&nbsp;-</TD>
            <TD class="contentNormal">&nbsp;Tue, 21Sep, 2010</TD>
          </TR>
          <TR>
            <TD class="contentNormalHiLight">MR-20100930</TD>
            <TD class="contentNormalHiLight">Monthly release (September)</TD>
            <TD class="contentNormalHiLight"><B>Tue, 17Aug, 2010</B></TD>
            <TD class="contentNormalHiLight"><B>Tue, 24Aug, 2010</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;-</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;Tue,14Sep, 2010 *</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;Tue, 21Sep, 2010 *</B></TD>
            <TD class="contentNormalHiLight"><B>&nbsp;Thu, 30Sep, 2010 *</B></TD>
          </TR> 
          </TABLE>
        
        </BODY></HTML>
        
      6. You will see the display of the HTML code just fine (please see attached screenshot TextGadgetHTML.jpg)

      However, clicking on anything else or by refreshing the page, the Text gadget now becomes empty.

      This is what I saw using Firefox Error Console after a refresh of the page:

      Attachments

        1. FFErrorConsole.jpg
          135 kB
          JoachimA
        2. TextGadgetEmptyInFirefox.jpg
          3 kB
          JoachimA
        3. TextGadgetEmptyInIE8.jpg
          4 kB
          JoachimA
        4. TextGadgetHTML.jpg
          48 kB
          JoachimA

        Issue Links

          Activity

            People

              bmagro Ben Magro
              jcooi JoachimA
              Votes:
              32 Vote for this issue
              Watchers:
              42 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: