fac_verify controleren dat Managed code disabled is. Hebben we niet nodig namelijk

svn path=/Website/trunk/; revision=30514
This commit is contained in:
Jos Groot Lipman
2016-09-01 18:20:52 +00:00
parent 086b8ddeb9
commit 26a45358c7
2 changed files with 46 additions and 0 deletions

View File

@@ -290,6 +290,37 @@ function zipfile(pathname, filename)
} }
} }
xhr4.send(null); xhr4.send(null);
// Check for .NET *not* beaing enabled
var xhr5 = new XMLHttpRequest();
xhr5.open('GET', 'fac_verify_test.aspx');
xhr5.onreadystatechange = function()
{
var txt;
// Ready state 4 means the request is done
if (xhr5.readyState === 4)
{
if (xhr5.status == 404) // It should not be found when .NET not
{
txt = "Calling an aspx fails. Good!";
document.getElementById('resultASPX').innerHTML = 'Ok';
document.getElementById('resultASPX').style.color = 'green';
}
else
{
txt = "Calling an aspx succeeds. Not Good!";
txt += "<br>FACILITOR does not need managed code.";
txt += "<br>Best disable it in the IIS application pool.";
document.getElementById('resultASPX').innerHTML = 'Error';
document.getElementById('resultASPX').style.backgroundColor = 'red';
document.getElementById('resultASPX').style.color = 'black';
}
var span = document.createElement("span");
span.innerHTML = txt;
document.getElementById('checkASPX').appendChild( span );
}
}
xhr5.send(null);
} }
function reload() function reload()
{ {
@@ -699,6 +730,15 @@ checker("VBscript",
} }
) )
checker("Managed code should not be enabled.",
function ()
{
txt = "Checking managed code: <span id='checkASPX'></span>";
res = resultcodes.warning;
return { result: res, message: txt, id: "resultASPX" };
}
)
__GROUP = "FACILITOR software"; __GROUP = "FACILITOR software";
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
testfolder("../../cust", true); // mustbethere testfolder("../../cust", true); // mustbethere

View File

@@ -0,0 +1,6 @@
Dummy testfile
Fac_verify probeert deze aspx te laden en als het goed is
lukt dat *niet*, maar geeft een 404 error.
Dat gebeurt als Managed Code niet enabled is onze website
en dat is niet nodig omdat wij geen managed code gebruiken.