Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2872

Properly initialize elements from the datasource configs

      When using named datasources, we might create these objects directly
      instead of relying on the config framework. In this case, we need the
      objects to be fully initialized.

      Fix #26455

            [QUARKUS-2872] Properly initialize elements from the datasource configs

            Errata Tool added a comment -

            Since the problem described in this issue should be resolved in a recent advisory, it has been closed.

            For information on the advisory (Important: Red Hat build of Quarkus 2.7.7 release and security update), and where to find the updated files, follow the link below.

            If the solution does not work for you, open a new bug report.
            https://access.redhat.com/errata/RHSA-2023:1006

            Errata Tool added a comment - Since the problem described in this issue should be resolved in a recent advisory, it has been closed. For information on the advisory (Important: Red Hat build of Quarkus 2.7.7 release and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:1006

            Fedor Dudinskii added a comment - - edited

            2.7 stream seems not be affected by the error from the bug description.
            Nonetheless, these fixes are in the code. Verification steps:
            Download and unzip: http://download.devel.redhat.com/rcm-guest/staging/quarkus/quarkus-2.7.7.CR1/rh-quarkus-2.7.7.CR1-maven-repository.zip
            Unzip io/quarkus/quarkus-agroal/2.7.7.Final-redhat-00002/quarkus-agroal-2.7.7.Final-redhat-00002-sources.jar,
            check file ./io/quarkus/agroal/runtime/DataSourceJdbcRuntimeConfig.java(there is no `tracing` line at all, since it was added only in 2.11[1])
            Unzip ./io/quarkus/quarkus-reactive-datasource/2.7.7.Final-redhat-00002/quarkus-reactive-datasource-2.7.7.Final-redhat-00002-sources.jar, check file ./io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java. There is no `additionalProperties` line at all (it was added in 2.10), this is the reason for the bug not being reproducible on 2.7.7.

            [1] https://github.com/quarkusio/quarkus/pull/26144
            [2] https://github.com/quarkusio/quarkus/pull/25931

            Fedor Dudinskii added a comment - - edited 2.7 stream seems not be affected by the error from the bug description. Nonetheless, these fixes are in the code. Verification steps: Download and unzip: http://download.devel.redhat.com/rcm-guest/staging/quarkus/quarkus-2.7.7.CR1/rh-quarkus-2.7.7.CR1-maven-repository.zip Unzip io/quarkus/quarkus-agroal/2.7.7.Final-redhat-00002/quarkus-agroal-2.7.7.Final-redhat-00002-sources.jar, check file ./io/quarkus/agroal/runtime/DataSourceJdbcRuntimeConfig.java(there is no `tracing` line at all, since it was added only in 2.11 [1] ) Unzip ./io/quarkus/quarkus-reactive-datasource/2.7.7.Final-redhat-00002/quarkus-reactive-datasource-2.7.7.Final-redhat-00002-sources.jar, check file ./io/quarkus/reactive/datasource/runtime/DataSourceReactiveRuntimeConfig.java. There is no `additionalProperties` line at all (it was added in 2.10), this is the reason for the bug not being reproducible on 2.7.7. [1] https://github.com/quarkusio/quarkus/pull/26144 [2] https://github.com/quarkusio/quarkus/pull/25931

              Unassigned Unassigned
              probinso_jira Quarkus JIRA Bot (Inactive)
              Fedor Dudinskii Fedor Dudinskii
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: