Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-9826

Data source creation registers multiple DS under the same name

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: fuse-7.0.1
    • Fix Version/s: fuse-7.3
    • Component/s: Karaf
    • Labels:
      None
    • Environment:

      Fuse 7.1.0 ; pax-jdbc-config

    • Sprint:
      Fuse 7.3 Sprint 40 - Dev #1, Fuse 7.3 Sprint 41 - Dev #2

      Description

      Data source creation registers multiple DS under the same name.

      Steps to reproduce:

      cat <fuse-home>/etc/org.ops4j.datasource-mariadb.cfg
      osgi.jdbc.driver.class = org.mariadb.jdbc.Driver
      url=jdbc:mariadb://127.0.0.1:3306/test
      databaseName=test
      dataSourceName=test
      user=root
      password=
      
      karaf@root()> feature:install pax-jdbc-mariadb pax-jdbc-config
      karaf@root()> config:list '(service.factoryPid=org.ops4j.datasource)'
      {quote}
      Pid:            org.ops4j.datasource.15301a54-ea1b-435d-a108-f715ac4f0dbb
      FactoryPid:     org.ops4j.datasource
      BundleLocation: ?
      Properties:
         dataSourceName = test
         databaseName = test
         felix.fileinstall.filename = file:/Users/fvaleri/workspace/fuse-karaf-7.1.0.fuse-710023-redhat-00001/etc/org.ops4j.datasource-mariadb.cfg
         osgi.jdbc.driver.class = org.mariadb.jdbc.Driver
         password = 
         service.factoryPid = org.ops4j.datasource
         service.pid = org.ops4j.datasource.15301a54-ea1b-435d-a108-f715ac4f0dbb
         url = jdbc:mariadb://127.0.0.1:3306/test
         user = root
      
      karaf@root()> jdbc:ds-list
      Name │ Product │ Version         │ URL                                │ Status
      ─────┼─────────┼─────────────────┼────────────────────────────────────┼───────
      test │ MySQL   │ 10.3.10-MariaDB │ jdbc:mariadb://127.0.0.1:3306/test │ OK
      test │ MySQL   │ 10.3.10-MariaDB │ jdbc:mariadb://127.0.0.1:3306/test │ OK
      test │ MySQL   │ 10.3.10-MariaDB │ jdbc:mariadb://127.0.0.1:3306/test │ OK
      
      karaf@root()> jdbc:ds-factories
      Name             │ Class                   │ Version
      ─────────────────┼─────────────────────────┼────────
      mysql            │ org.mariadb.jdbc.Driver │
      mariadb          │ org.mariadb.jdbc.Driver │
      org.mariadb.jdbc │ org.mariadb.jdbc.Driver │ 1.5.9.0
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                grgrzybek Grzegorz Grzybek
                Reporter:
                fvaleri Federico Valeri
                Tester:
                Vratislav Hais
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: