Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6544

Datasource xsd and management API should specify user-name and security-domain cannot both be used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.1.3.Final (EAP), EAP 6.1.0.Alpha (7.2.0.Final)
    • Domain Management, JCA
    • None

      If a datasource security configuration includes both user-name and security-domain, the config will be rejected by DsSecurityImpl, via CredentialImpl.validate():

         public void validate() throws ValidateException
         {
            if (userName != null)
            {
               if (securityDomain != null)
               {
                  throw new ValidateException(bundle.invalidSecurityConfiguration());
               }
            }
         }
      

      If this is an invalid combination, the xsd should state this, and the relevant attribute definitions in the subsystem should use setAlternatives(...) as well.

              smaestri@redhat.com Stefano Maestri
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: