jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-497) No LoginModules configured error on Java 7
Date Fri, 07 Dec 2012 11:05:20 GMT

    [ https://issues.apache.org/jira/browse/OAK-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13526317#comment-13526317
] 

Jukka Zitting commented on OAK-497:
-----------------------------------

Not sure, I guess Angela interpreted your earlier change as a workaround to get the query
tests working (OAK-379 or your commit didn't give much context about the broader issue). Angela?
                
> No LoginModules configured error on Java 7
> ------------------------------------------
>
>                 Key: OAK-497
>                 URL: https://issues.apache.org/jira/browse/OAK-497
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: core
>         Environment: java version "1.7.0_04"
> Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
> Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)
>            Reporter: Jukka Zitting
>            Assignee: Jukka Zitting
>             Fix For: 0.6
>
>
> The AuthenticationConfigurationImpl uses Configuration.getConfiguration() to get JAAS
configuration when available, and falls back to the default OakConfiguration when not.
> That fallback is currently triggered by a SecurityException thrown from getConfiguration(),
which seems to *not* happen on Java 7 where instead just an empty Configuration is returned.
> A better approach might be to check if the returned configuration (if any) contains entries
for the specified appName, and to fall back to default configuration if not.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message