Hi All,
I am getting 403 error loading a dojo JS page.
JavaScript error loading page
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/emits/../../.
./maint/home.jsp: Error: Could not load 'emits.core.base'; last tried
'../emits/core/base.js'
(http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/dojo/dojo.js
#20)
The returned page on a click step has the following code:
<title>eMiTS Maintenance</title>
<link rel="stylesheet" type="text/css"
href="../resources/css/release/maint_mainpage.css" media="screen" />
<link rel="stylesheet" type="text/css"
href="../resources/css/release/maint_print.css" media="print" />
<script
src="../resources/dojo09/emits/milonic_src.js"></script>
<script
src="../resources/dojo09/emits/mmenudom.js"></script>
<script>var djConfig={parseOnLoad: true, isDebug:
false};</script>
<script type="text/javascript"
src="/emits/resources/dojo09/dojo/dojo.js"></script>
<script type="text/javascript"
src="/emits/resources/dojo09/emits/coreInitCompressed.js"></script>
<script>
/*setup base environment*/
dojo.require("emits.core.base");
dojo.require("emits.core.environment");
dojo.require("emits.core.dom");
dojo.require("dijit.dijit");
dojo.require("emits.Handle");
etc.....
The specific call that is failing is:
dojo.require("emits.core.base").
I have the following config file:
host="xxxxxxxx.doir.wa.gov.au"
protocol="http"
port="9080"
basepath="emits/resources/dojo09/emits"
the problem is that the URL for "emits.core.base" gets constructed as:
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/dojo/../emits
/core/base.js
which can be loaded in a browser or from RUN command but htmlunit is
giving me a 403
response.
Received responses
302 get
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/emits/../../.
./maint/home.jsp ()
200 get http://xxxxxxxx.doir.wa.gov.au:9080/emits/login/login.do
(text/html)
302 post
http://xxxxxxxx.doir.wa.gov.au:9080/emits/login/j_security_check ()
200 get
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/emits/../../.
./maint/home.jsp (text/html)
200 get
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/emits/milonic
_src.js (application/x-javascript)
200 get
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/emits/mmenudo
m.js (application/x-javascript)
200 get
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/dojo/dojo.js
(application/x-javascript)
200 get
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/emits/coreIni
tCompressed.js (application/x-javascript)
403 get
http://xxxxxxxx.doir.wa.gov.au:9080/emits/resources/dojo09/dojo/../emits
/core/base.js (text/html)
Any ideas on how to fix this problem
Nick
"DISCLAIMER: This email, including any attachments, is intended only for use by
the addressee(s) and may contain confidential and/or personal information and
may also be the subject of legal privilege. If you are not the intended
recipient, you must not disclose or use the information contained in it. In
this case, please let me know by return email, delete the message permanently
from your system and destroy any copies.
Before you take any action based upon advice and/or information contained in
this email you should carefully consider the advice and information and
consider obtaining relevant independent advice.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest