nomadinjax / esapi4cf

If anyone is interested in taking over this project please let me know! I no longer have the time to commit to it as my role has changed much since I took this over. This project deserves someone who can devote the necessary time to it! OWASP Enterprise Security API (ESAPI) for ColdFusion/CFML Project
http://damonmiller.github.io/esapi4cf/
BSD 3-Clause "New" or "Revised" License
37 stars 10 forks source link

Railo 4 only: Fix 'Could not initialize class org.owasp.esapi.codecs.Base64' error #28

Closed nomadinjax closed 11 years ago

nomadinjax commented 11 years ago

This error is a mystery and was not occurring under Railo 3.x. It is causing almost half of the unit tests for Railo to error.

The error always occurs when accessing the ESAPI4J Base64 class.

C:\Users\Damon\Dropbox\org.owasp\workspace\esapi4cf-trunk\WebContent\esapi4cf\org\owasp\esapi\reference\DefaultEncoder.cfc (574)

nomadinjax commented 11 years ago

I believe this may be a server configuration issue but not yet sure. I have found a workaround but definitely needs a solution.

Workaround: create a test page which does nothing the following:

j = createObject("java", "org.owasp.esapi.codecs.Base64").DONT_BREAK_LINES;

Run this test page first once the Railo server is online. Then you can run the unit tests for Railo to get accurate results. Not sure why this causes the error to not occur. Multi-threading issue?

nomadinjax commented 11 years ago

resolved in v1.1 by converting encoders to use Java counterparts