Uploaded image for project: 'Teiid'
  1. Teiid
  2. TEIID-3079

Security domain associated with data source is not getting deleted while deleting the data source,post server restart.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 8.7.1, 8.9
    • 8.7
    • None
    • Hide

      (1) Create a simple JDBC data source with a custom security domain. In this example, data source is "Test" with custom security domain "TestSecurityDomain"

      (2) Restart jboss server;

      (3) Using following JBOSS CLI command to remove data source "Test" (successful) and the security domain "TsetSecurityDomain" (throws error):

      [standalone@localhost:9999 /] /subsystem=datasources/data-source=Test:remove

      {"outcome" => "success"}

      [standalone@localhost:9999 /] /subsystem=security/security-domain=TestSecurityDomain:remove

      {

      "outcome" => "failed",

      "failure-description" => "JBAS014762: Removing services has lead to unsatisfied dependencies:

      Service jboss.security.security-domain.TestSecurityDomain was depended upon by service jboss.teiid.transport.embedded, service jboss.teiid.transport.jdbc, servi

      ce jboss.teiid.transport.odbc",

      "rolled-back" => true
      }

      TestSecurityDomain is:
      <security-domain name="TestSecurityDomain" cache-type="default">
      <authentication>
      <login-module name="TestSecurityDomainlogin-module" code="SecureIdentity" flag="required">
      <module-option name="username" value="test_user"/>
      <module-option name="password" value="-68464afbc18e19e864265f4892564719"/>

      </login-module>
      </authentication>
      </security-domain>

      Show
      (1) Create a simple JDBC data source with a custom security domain. In this example, data source is "Test" with custom security domain "TestSecurityDomain" (2) Restart jboss server; (3) Using following JBOSS CLI command to remove data source "Test" (successful) and the security domain "TsetSecurityDomain" (throws error): [standalone@localhost:9999 /] /subsystem=datasources/data-source=Test:remove {"outcome" => "success"} [standalone@localhost:9999 /] /subsystem=security/security-domain=TestSecurityDomain:remove { "outcome" => "failed", "failure-description" => "JBAS014762: Removing services has lead to unsatisfied dependencies: Service jboss.security.security-domain.TestSecurityDomain was depended upon by service jboss.teiid.transport.embedded, service jboss.teiid.transport.jdbc, servi ce jboss.teiid.transport.odbc", "rolled-back" => true } TestSecurityDomain is: <security-domain name="TestSecurityDomain" cache-type="default"> <authentication> <login-module name="TestSecurityDomainlogin-module" code="SecureIdentity" flag="required"> <module-option name="username" value="test_user"/> <module-option name="password" value="-68464afbc18e19e864265f4892564719"/> </login-module> </authentication> </security-domain>

    Description

      We are migrating from Teiid 8.4 final to teiid 8.7 final.

      We have custom security domain for our data sources.

      We use JBoss DMR api to delete the datasource and the security domain while deleting a data source.

      With Teiid 8.4 this was working fine and both the datasource and the custom security domain used to get deleted , but with teiid 8.7 it gives following exception:

      {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => "JBAS014762: Removing services has lead to unsatisfied dependencies: Service jboss.security.security-domain.edmsqlSecurityDomain was depended upon by service jboss.teiid.transport.embedded, service jboss.teiid.transport.jdbc, service jboss.teiid.transport.odbc"}}

      Attachments

        Activity

          People

            rhn-engineering-rareddy Ramesh Reddy
            haifen_bi H B (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: