|
Hi:
I built Acegi under MevenIde/Eclipse, and ran into a problem
with the test cases for the Jaas security provider. I debugged it and
determined that the cause of the test failure was that MevenIde runs JUnit
without forking, which leaves properties in the
java.security.Security properties, resulting in a URL which (on Windows)
started with "C:/", Java not like this one bit.
The fix was simple, and here is an Eclipse patch for it:
convert the loginConfig.getFile() to a URL. I'm not sure this is the
correct fix, but it lets me get moving.
Regards,
Simon.
Index:
JaasAuthenticationProvider.java
=================================================================== RCS file: /cvsroot/acegisecurity/acegisecurity/core/src/main/java/net/sf/acegisecurity/providers/jaas/JaasAuthenticationProvider.java,v retrieving revision 1.10 diff -u -r1.10 JaasAuthenticationProvider.java --- JaasAuthenticationProvider.java 17 Apr 2005 14:13:13 -0000 1.10 +++ JaasAuthenticationProvider.java 3 Aug 2005 21:43:16 -0000 @@ -284,7 +284,7 @@ String loginConfigStr = null; try { - loginConfigStr = loginConfig.getFile().toString(); + loginConfigStr = loginConfig.getFile().toURL().toString(); } catch (IOException e) { if (log.isDebugEnabled()) { log.debug("Could not resolve loginConfig [" + loginConfig |
- [Acegisecurity-developer] JaasAuthenticationProvider Simon Tuffs
