Description:
When I access the "Settings" tab in MEM with a read-only user and modify options,
there is not the usual error message box but plain HTML displayed in my browser.
On all other tests to save information I get a wonderful error box.
Only the settings tab produces broken HTML.
How to repeat:
Log in to MEM 2.3 with a read only user.
Go to tab "Settings", enable SNMP or something else.
Click on the "save" button. You will see:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="/web/resources/css/default.css?B=2.3.0.2036" />
<link rel="stylesheet" type="text/css" href="/web/resources/css/tree.css?B=2.3.0.2036" />
<link rel="stylesheet" type="text/css" href="/web/resources/css/jqueryui-mem/jquery-ui-1.7.1.custom.css"/>
<link rel="shortcut icon" href="/web/favicon.ico" />
<script type="text/javascript" src="/web/resources/js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="/web/resources/js/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript" src="/web/resources/js/jquery-ui-i18n.js"></script>
<script type="text/javascript" src="/web/resources/js/pxToEm.js"></script>
<script type="text/javascript" language="javascript" src="/Constants.js?B=2.3.0.2036&L=en_US"></script>
<script type="text/javascript" language="javascript" src="/web/resources/js/render/full.js?B=2.3.0.2036"></script>
<script type="text/javascript" language="javascript">
/* <![CDATA[ */
var GLOBAL_noticeFader = new noticeFade();
GLOBAL_noticeFader.setObject('fader');
GLOBAL_noticeFader.setMessageContainer('noticeMessages');
GLOBAL_noticeFader.registerClose('noticeClose');
GLOBAL_noticeFader.init();
/* ]]> */
</script>
<title>User Not Authorized : MySQL Enterprise Dashboard</title>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="100%" style="margin-top: 10px;">
<tr>
<td id="bodyTop">
<table cellpadding="0" cellspacing="0" width="100%">
<tr class="secondaryHeaderBG">
<td><img src="/web/resources/images/secondaryTL.gif" width="8" height="7" alt=""/></td>
<td class="right"><img src="/web/resources/images/secondaryTR.gif" width="8" height="7" alt=""/></td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="bodyContentsWrapper">
<div id="bodyContents">
<div class="titleBar">Access Denied</div>
<div class="basicBox">
<p>You do not have permissions to access this resource.</p>
</div>
</div>
</td>
</tr>
<tr>
<td id="bodyBottom">
<table cellpadding="0" cellspacing="0" width="100%">
<tr class="secondaryFooterBG">
<td><img src="/web/resources/images/secondaryBL.gif" width="8" height="7" alt=""/></td>
<td class="right"><img src="/web/resources/images/secondaryBR.gif" width="8" height="7" alt=""/></td>
</tr>
</table>
</td>
</tr>
</table>
<table id="fader">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="/web/resources/images/secondaryTL.png" width="8" height="7" alt="" /></td>
<td class="secondaryHeaderSpacer"><img src="/web/resources/images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="/web/resources/images/secondaryTR.png" width="8" height="7" alt="" /></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td class="noticeBody">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>Notice:</td>
<td class="right"><img src="/web/resources/images/deleteIcon11.gif" id="noticeClose" width="11" height="11" alt="close" style="cursor: pointer;" /></td>
</tr>
</table>
<ul id="noticeMessages">
</ul>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="/web/resources/images/secondaryBL.png" width="8" height="7" alt="" /></td>
<td class="secondaryFooterSpacer"><img src="/web/resources/images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="/web/resources/images/secondaryBR.png" width="8" height="7" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
<table id="popupError" style="display: none">
<tr>
<td>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="/web/resources/images/errorTL.gif" width="8" height="7" alt="" /></td>
<td class="errorHeaderSpacer"><img src="/web/resources/images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="/web/resources/images/errorTR.gif" width="8" height="7" alt="" /></td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td id="popupErrorBody">
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>An Error Occurred</td>
<td class="right"><img src="/web/resources/images/deleteIcon11.png" id="errorClose" width="11" height="11" alt="close" style="cursor: pointer;" /></td>
</tr>
</table>
<div id="popupErrorListWrapper">
<ul id="popupErrorList">
</ul>
</div>
</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td><img src="/web/resources/images/errorBL.gif" width="8" height="7" alt="" /></td>
<td class="errorFooterSpacer"><img src="/web/resources/images/spacer.gif" width="1" height="1" alt="" /></td>
<td><img src="/web/resources/images/errorBR.gif" width="8" height="7" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
Suggested fix:
The HTML looks good.
Maybe wrong MIME type so that it is displayed as text only?