Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-27287

HTML Form Markup Breaks Edit Mode Cancel and Save Button Functionality in Google Chrome

      While in edit mode using Google Chrome, if a page contains a HTML macro with HTML form markup inside, clicking "Cancel" or "Save" will result in a blank screen. This is tested in Google Chrome (Google Chrome version 19 and 23 tested).

      Steps to Reproduce

      1. Create a page and enter this HTML form
        <form enctype="multipart/form-data" method="post" action="http://www.test.com/mail.php" accept-charset="UTF-8">
        	<div>
        		<input type="hidden" name="acctid" id="acctid" value="7ksurkrkzxyj5epi" />
        		<input type="hidden" name="formid" id="formid" value="1155349" />
        		<input type="hidden" name="required_vars" id="required_vars" value="name,email" />
        	</div>
        	<table cellspacing="5" cellpadding="5" border="0">
        		<tr>
        			<td valign="top">
        				<strong>Name:</strong>
        			</td>
        			<td valign="top">
        				<input type="text" name="name" id="name" size="40" value="" />
        				
        			</td>
        		</tr>
        		<tr>
        			<td valign="top">
        				<strong>Email Address:</strong>
        			</td>
        			<td valign="top">
        				<input type="text" name="email" id="email" size="40" value="" />
        				
        			</td>
        		</tr>
        		<tr>
        			<td colspan="2" align="center">
        				<input type="submit" value=" Submit Form " />
        			</td>
        		</tr>
        	</table>
        </form>
        
      2. Attempt to Save the page
        • Expected behaviour - the page saves and the form is visible
        • Actual behaviour - the browser redirects to 'about:blank'

      NB: The page is actually saved. You can go to the Dashboard and find the page, and the form is visible and correct

      Workaround

      1. Follow the steps above, then go to the Dashboard or the parent page after the blank page is displayed
      2. You will see the page is in the recent updates (or listed in the child pages of the parent page), and it works correctly

            [CONFSERVER-27287] HTML Form Markup Breaks Edit Mode Cancel and Save Button Functionality in Google Chrome

            Atlassian Update - September 2019

            Thank you for your interest in this ticket. The Confluence Server and Data Center team released a major upgrade to the editor in 6.14. Due to the age of this ticket and/or lack of updates, we suspect that this issue is no longer relevant or was resolved as a result of the upgrade and are now closing this ticket.

            If this issue is still a problem in your Confluence instance in version 6.15 or later, please tag me in your comment and we can reopen this ticket for review.

            You can read more about the editor upgrade in the 6.14 Release Notes.

            Thanks

            Makisa Appleton | Senior Product Manager, Confluence Server and Data Center

            Makisa Appleton added a comment - Atlassian Update - September 2019 Thank you for your interest in this ticket. The Confluence Server and Data Center team released a major upgrade to the editor in 6.14. Due to the age of this ticket and/or lack of updates, we suspect that this issue is no longer relevant or was resolved as a result of the upgrade and are now closing this ticket. If this issue is still a problem in your Confluence instance in version 6.15 or later, please tag me in your comment and we can reopen this ticket for review. You can read more about the editor upgrade in the 6.14 Release Notes . Thanks Makisa Appleton | Senior Product Manager, Confluence Server and Data Center

            Tom Moors added a comment -

            I encounter the same by adding the Dilbert cartoon of the day widget to a Confluence page:

            {html}
            <img style="visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src="http://c.gigcount.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEzODc*NDM4NTgwNzAmcHQ9MTM4NzQ*NDQyMzYzMCZwPTE2MTQ*OTImZD1EaWxiZXJ*JTIwNDAweDMwMCZnPTImbz*z/M2M3MmQ*NzNhOGM*MjdiOTc*ZGUwY2U*N2FmNmE1YSZvZj*w.gif" /><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="400" height="300" id="widget_103193083810"><param name="movie" value="http://widget.dilbert.com/swf/v2/dilbert_widget_400x300.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><param name="flashVars" value="hpsfo=1&crtr=1&previewImg=http://picayune.uclick.com/images/dilbert/dilbert_400x300.jpg&gig_lt=1387443858070&gig_pt=1387444423630&gig_g=2" /><embed src="http://widget.dilbert.com/swf/v2/dilbert_widget_400x300.swf" quality="high" bgcolor="#ffffff" width="400" height="300" flashVars="hpsfo=1&crtr=1&previewImg=http://picayune.uclick.com/images/dilbert/dilbert_400x300.jpg&gig_lt=1387443858070&gig_pt=1387444423630&gig_g=2" align="" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>
            {html}
            

            Tom Moors added a comment - I encounter the same by adding the Dilbert cartoon of the day widget to a Confluence page: {html} <img style= "visibility:hidden;width:0px;height:0px;" border=0 width=0 height=0 src= "http: //c.gigcount.com/wildfire/IMP/CXNID=2000002.0NXC/bT*xJmx*PTEzODc*NDM4NTgwNzAmcHQ9MTM4NzQ*NDQyMzYzMCZwPTE2MTQ*OTImZD1EaWxiZXJ*JTIwNDAweDMwMCZnPTImbz*z/M2M3MmQ*NzNhOGM*MjdiOTc*ZGUwY2U*N2FmNmE1YSZvZj*w.gif" /><object classid= "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase= "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width= "400" height= "300" id= "widget_103193083810" ><param name= "movie" value= "http://widget.dilbert.com/swf/v2/dilbert_widget_400x300.swf" /><param name= "quality" value= "high" /><param name= "bgcolor" value= "#ffffff" /><param name= "flashVars" value= "hpsfo=1&crtr=1&previewImg=http://picayune.uclick.com/images/dilbert/dilbert_400x300.jpg&gig_lt=1387443858070&gig_pt=1387444423630&gig_g=2" /><embed src= "http://widget.dilbert.com/swf/v2/dilbert_widget_400x300.swf" quality= "high" bgcolor= "#ffffff" width= "400" height= "300" flashVars= "hpsfo=1&crtr=1&previewImg=http://picayune.uclick.com/images/dilbert/dilbert_400x300.jpg&gig_lt=1387443858070&gig_pt=1387444423630&gig_g=2" align= "" type=" application/x-shockwave-flash " pluginspage=" http://www.macromedia.com/go/getflashplayer"></embed></object> {html}

            Same here - any form with action will cause a redirect.

            Tobias Anstett (K15t) added a comment - Same here - any form with action will cause a redirect.

            Oh, yeah, and another symptom: I get the same behavior when saving the main page layout for the site (maybe for all of the page layouts). The odd fragment that appears in the URL bar is always the same.

            Jonathan Simonoff added a comment - Oh, yeah, and another symptom: I get the same behavior when saving the main page layout for the site (maybe for all of the page layouts). The odd fragment that appears in the URL bar is always the same.

            I'm getting this in 5.1.3 with a simpler case: an html macro containing only:

            <form action="">
            </form>

            Also, the URL bar for the blank page that appears after saving or canceling from the editor contains only:

            data:text/html,<p></p>

            Jonathan Simonoff added a comment - I'm getting this in 5.1.3 with a simpler case: an html macro containing only: <form action=""> </form> Also, the URL bar for the blank page that appears after saving or canceling from the editor contains only: data:text/html,<p></p>

              Unassigned Unassigned
              527feab301ff Eddie Connatser
              Affected customers:
              9 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved: