• Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • htmlpublisher-plugin
    • None
    • Jenkins 1.652
      htmlpuplisher 1.11
      Chrome

      I got a html-report with a button to hide and show detailed information via onClick.
      If i open the report via the plugin, that button never works. It doesnt react.

      If i open the report from the build archiv it works.
      Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.
      It looks like its related to the CSP. If i change the CSP on the run the behavior of the archiv-file changes too.
      But not for the reported file. Its behavior stays like the CSP was configured in the moment of puplishing. So its behavior will never change afterwards.

      <head>
        <body>
          <table border='2' cellspacing='1'>
            <tr>
              <th>h1</th>
              <th>h2</th>
            </tr>
            <tr>
              <td valign='top'>Row 1</td>
              <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
      	  </tr>
      	</table>
        </body>
      </head>
      

          [JENKINS-34556] onclick-button not working

          Sebastian created issue -
          Sebastian made changes -
          Description Original: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.

          {{<head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>}}
          New: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.

          {{
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>
          }}
          Sebastian made changes -
          Description Original: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.

          {{
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>
          }}
          New: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.
          {quote}
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>{quote}
          Sebastian made changes -
          Description Original: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.
          {quote}
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>{quote}
          New: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.



          {noformat}
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>
          {noformat}
          Sebastian made changes -
          Description Original: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.



          {noformat}
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>
          {noformat}
          New: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.




          {code:html}
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>
          {code}
          Sebastian made changes -
          Environment Original: Jenkins 1.652
          htmlpuplisher 1.11
          New: Jenkins 1.652
          htmlpuplisher 1.11
          Chrome

          Sebastian added a comment -

          i figured out its just not working in Chrome. Firefox and IE are fine.

          Sebastian added a comment - i figured out its just not working in Chrome. Firefox and IE are fine.
          Sebastian made changes -
          Description Original: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.




          {code:html}
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>
          {code}
          New: I got a html-report with a button to hide and show detailed information via onClick.
          If i open the report via the plugin, that button never works. It doesnt react.

          If i open the report from the build archiv it works.
          -Its not related to the Content Security Policy. Even if i set the CSP to "", the button doesnt work in the puplisher.-
          It looks like its related to the CSP. If i change the CSP on the run the behavior of the archiv-file changes too.
          But not for the reported file. Its behavior stays like the CSP was configured in the moment of puplishing. So its behavior will never change afterwards.

          {code:html}
          <head>
            <body>
              <table border='2' cellspacing='1'>
                <tr>
                  <th>h1</th>
                  <th>h2</th>
                </tr>
                <tr>
                  <td valign='top'>Row 1</td>
                  <td bgcolor='1BD130' valign='top'>Text<br>IMPORTANT<BR><button style="background-color:1BD130;border-style:solid;border-color:grey" onclick="if (document.all.bid1.style.display=='') { document.all.bid1.style.display='none' } else { document.all.bid1.style.display=''}">Log:</button><div id="bid1" style="display:none;">Details</div></td>
          </tr>
          </table>
            </body>
          </head>
          {code}

          Sebastian added a comment -

          Now it works chrome too. It looks like the CSD needs some time.

          Sebastian added a comment - Now it works chrome too. It looks like the CSD needs some time.
          Sebastian made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            r2b2_nz Richard Bywater
            stautz85 Sebastian
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: