You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We set the directory for locating the ESAPI.properties within our resources in the following way.
String` rd = findConfigurationDirectory(...); // <== result e.g. is "esapi/v25/" ESAPI.securityConfiguration().setResourceDirectory(rd);
Using ESAPI <= version 2.1 this perfectly worked fine. It does not work from ESAPI >= 2.2 on.
After scanning the code of "DefaultSecurityConfiguration" I see the following difference in method "loadConfigurationFromClasspath":
Version 2.1
in = currentLoader.getResourceAsStream(this.resourceDirectory + "/" + fileName);
Version >= 2.2
in = currentLoader.getResourceAsStream(DefaultSearchPath.RESOURCE_DIRECTORY.value() + fileName);
Please check details from discussion #745 . As mentioned in the discussion there is a workaround for flexibly loading the configuration.
The text was updated successfully, but these errors were encountered:
#745
We set the directory for locating the ESAPI.properties within our resources in the following way.
Using ESAPI <= version 2.1 this perfectly worked fine. It does not work from ESAPI >= 2.2 on.
After scanning the code of "DefaultSecurityConfiguration" I see the following difference in method "loadConfigurationFromClasspath":
Please check details from discussion #745 . As mentioned in the discussion there is a workaround for flexibly loading the configuration.
The text was updated successfully, but these errors were encountered: