ESAPI / owasp-esapi-js

An UNMAINTAINTED project originally exported from code.google.com/p/owasp-esapi-js. This project is deprecated. See the README.md for further details and possible alternatives.
Other
101 stars 32 forks source link

Getting started guide JS sample doesn't work #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Follow the steps in the getting started guide and copy the JS code sample as is

What is the expected output? 
ESAPI methods work.

What do you see instead?
JS Errors

What version of the product are you using? On what operating system?
ESAPI4JS 1.3  on Firefox 23 linux 32 bit.

Please provide any additional information below.
The order that the JS libraries load is significant.  The sample code in the 
getting started guide should be:

<!-- esapi4js dependencies -->
    <script type="text/javascript" language="JavaScript" src="scripts/esapi4js/lib/log4js.js"></script>
    <!-- esapi4js core -->
    <script type="text/javascript" language="JavaScript" src="scripts/esapi4js/esapi.js"></script>
    <!-- esapi4js i18n resources -->
    <script type="text/javascript" language="JavaScript" src="scripts/esapi4js/resources/i18n/ESAPI_Standard_en_US.properties.js"></script>
    <!-- esapi4js configuration -->
    <script type="text/javascript" language="JavaScript" src="scripts/esapi4js/resources/Base.esapi.properties.js"></script>

Original issue reported on code.google.com by stephe...@gmail.com on 28 Aug 2013 at 7:23

enrico-usai commented 7 years ago

esapi-compressed.js must be included before of Base.esapi.properties.js because by following the suggested order the loading fails with this error: ...resources/Base.esapi.properties.js) on line 14 with message (ReferenceError: $namespace is not defined)