Bug 780248 (SOA-2645)

Summary: Configuration setting, jaasLoginConfigName, when defined as the element name, is not picked up to override the default modeshape-jcr
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Van Halbert <vhalbert>
Component: EDSAssignee: Van Halbert <vhalbert>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.1.0.ER4CC: rhauch
Target Milestone: ---   
Target Release: 5.1.0 GA   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2645
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-04 20:28:26 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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