[jboss-jira] [JBoss JIRA] (AS7-6544) Datasource xsd and management API should specify user-name and security-domain cannot both be used
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Sat Feb 16 18:57:56 EST 2013
[ https://issues.jboss.org/browse/AS7-6544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754620#comment-12754620 ]
Brian Stansberry commented on AS7-6544:
---------------------------------------
The "recovery" configuration has the same issue.
> Datasource xsd and management API should specify user-name and security-domain cannot both be used
> --------------------------------------------------------------------------------------------------
>
> Key: AS7-6544
> URL: https://issues.jboss.org/browse/AS7-6544
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management, JCA
> Affects Versions: 7.1.3.Final (EAP), 7.2.0.Alpha1
> Reporter: Brian Stansberry
> Assignee: Stefano Maestri
>
> If a datasource security configuration includes both user-name and security-domain, the config will be rejected by DsSecurityImpl, via CredentialImpl.validate():
> {code}
> public void validate() throws ValidateException
> {
> if (userName != null)
> {
> if (securityDomain != null)
> {
> throw new ValidateException(bundle.invalidSecurityConfiguration());
> }
> }
> }
> {code}
> If this is an invalid combination, the xsd should state this, and the relevant attribute definitions in the subsystem should use setAlternatives(...) as well.
--
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
More information about the jboss-jira
mailing list