[ 
https://issues.apache.org/jira/browse/JS2-749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12791413#action_12791413
 ] 

Frank Otto commented on JS2-749:
--------------------------------

I have the same problem with jetspeed 2.2.0.

My tomcat folder is: C:\Programme\Tomcat Server\ and I get following error on 
jetspeed:

java.lang.SecurityException: 
C:\Programme\Tomcat%20Server\work\Catalina\localhost\jetspeed\loader\login.conf 
(Das System kann den angegebenen Pfad nicht finden)

I solved this by writing my own AuthenticationProvider with a workaround for 
jetspeeds BaseAuthenticationProvider:

File file = new File(loginConfigUrl.toURI());
...
System.setProperty("java.security.auth.login.config", file.getAbsolutePath());

Hope this helps...


kind regards,

F.O.

> Jetspeed Login Module fails to load on Windows in directories with spaces in 
> the path
> -------------------------------------------------------------------------------------
>
>                 Key: JS2-749
>                 URL: https://issues.apache.org/jira/browse/JS2-749
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 2.2.0
>         Environment: Windows
>            Reporter: David Sean Taylor
>            Assignee: Vivek Kumar
>            Priority: Minor
>             Fix For: 2.2.0
>
>
> Jetspeed Login Module fails to load on Windows in directories with spaces in 
> the path
> It appears that we are breaking the Login Module on Windows when there are 
> spaces in the path to the login module configuration file that Jetspeed 
> provides, and is put into the work area of the application server. The 
> problem is the Java class loader encodes the space, but then the file system 
> does not understand the encoding (%20). If we do not encode the space, the 
> file system correctly finds the resource. This change should be tested on all 
> major file systems before committing.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to