Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-18194

XML Schema for datasource credentials wrong

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Trivial Trivial
    • 30.0.0.Beta1, 30.0.0.Final
    • 23.0.2.Final, 28.0.1.Final
    • JCA
    • None
    • ---
    • ---

      wildfly-datasources_7_0.xsd defines dsSecurityType as a choice of either username and password or a credential-reference like so (pseudo code):

      (user-name, password) | credential-reference

      I think it should be

      user-name, (password | credential-reference)

       

      The XML editor in eclipse seems to agree with me, because it marks the following as wrong albeit it seems to be the only correct way to use a password from the credential store:

      <datasources>
         <xa-datasource ...>
         ...
         <security>
            <user-name>sa</user-name>
            <credential-reference store="credentials" alias="sa-creds"/>
         </security> 

       

      Error message is
       

      Element name 'credential-reference' is invalid.
       One of the following is expected:
      - password
      - reauth-plugin
      

       

            tadamski@redhat.com Tomasz Adamski
            thomas.reinhardt@s4p.de Thomas Reinhardt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: