Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2904

ConnectionManager no longer uses the underlying XADataSource's credentials when none are provided in its Properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 5.5.7.Final
    • None
    • None
    • Hide

      A sample that reproduces the problem can be found in this Spring Boot issue that brought the problem to my attention.

      Show
      A sample that reproduces the problem can be found in this Spring Boot issue that brought the problem to my attention.

    Description

      I believe that this commit has introduced a regression in how ConnectionManager handles credentials. Previously, if the Properties contained an XADataSource and no credentials, the data source's default credentials would be used, i.e. XADataSource.getXAConnection() would be called by ProvidedXADataSourceConnection. With the aforelinked change, ConnectionManager now coerces null credentials to empty strings. As a result XADataSource.getXAConnection(String, String) is called by ProvidedXADataSourceConnection with the empty credentials.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ankinson Andy Wilkinson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: