Bug 780248 (SOA-2645) - Configuration setting, jaasLoginConfigName, when defined as the element name, is not picked up to override the default modeshape-jcr
Summary: Configuration setting, jaasLoginConfigName, when defined as the element name,...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-2645
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: EDS
Version: 5.1.0.ER4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 5.1.0 GA
Assignee: Van Halbert
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-12-06 16:23 UTC by Van Halbert
Modified: 2011-02-04 20:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-04 20:28:26 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SOA-2645 0 None None None Never

Description Van Halbert 2010-12-06 16:23:42 UTC
project_key: SOA

In the modeshape-config.xml,  the JAAS setting of:    <jaasLoginConfigName jcr:primaryType="option" value="modeshape"/>
is not picked up, and therefore the internal default of modeshape-jcr is used.

However, if defined as:  <mode:option jcr:name="jaasLoginConfigName" mode:value="modeshape-abc"/>
this is picked up and the override is applied.

Comment 1 Van Halbert 2010-12-06 16:23:43 UTC
Link: Added: This issue Cloned from MODE-1038


Comment 2 Van Halbert 2010-12-06 16:24:28 UTC
Security: Added: Public


Comment 3 Randall Hauch 2010-12-06 20:44:20 UTC
The actual problem appears to be an error in the configuration file for SOA-P. The original fragment in the configuration file was this: 

    <jaasLoginConfigName jcr:primaryType="option" value="modeshape"/> 

The "mode:" prefix is missing from two places in this line. The first is that the value for the "jcr:primaryType" XML attribute should be "mode:option", not "option". Second, the "value" XML attribute also needs the "mode:" XML namespace prefix. Thus, the line should be: 

    <jaasLoginConfigName jcr:primaryType="mode:option" mode:value="modeshape"/> 

This is how the other options are specified in the same configuration file. 

I'd recommend switching all repository options to the "mode:option" form, as that is a) slightly smaller and b) more consistent with the other parts of the configuration file. Thus the equivalent would be: 

   <mode:option jcr:name="jaasLoginConfigName" mode:value="modeshape"/>

Note that MODE-1038 was resolved with a minor improvement to improve the error message when a JAAS login configuration policy with the configured name could not be found. However, this change is not required to fix the SOA-P configuration file.

Comment 4 Van Halbert 2010-12-07 15:38:49 UTC
The changes were committed to the soa build.   These won't make it into the ER5 release, but should be in the next release.

Comment 5 Dana Mison 2011-01-04 06:16:42 UTC
Release Notes Docs Status: Added: Not Required
Writer: Added: Darrin



Note You need to log in before you can comment on or make changes to this bug.