Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17429

Database product recognition fails when the Hibernate "connection.driver_class" property is not set

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 12.5-rc-1
    • 12.4
    • Old Core
    • None
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Right now we try to recognize the DB product using the Hibernate "connection.driver_class" property when there's no Session Factory. However this has two downsides:
      1. When there are new drivers, then we fail to recognize the DB. For example MySQL added "com.mysql.cj.jdbc.Driver" (in addition to "com.mysql.jdbc.Driver"), see XWIKI-17380
      1. Some JDBC drivers are registered automatically using the Service Loader mechanism and thus don't need a Hibernate "connection.driver_class" property to be set. Thus if our user don't see that property we won't recognize the DB product.

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: