Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1850

DataSource wizard creates invalid operation

XMLWordPrintable

      This isn't a bug since the operation is correctly processed by the server but if someone tried to copy it to CLI it won't pass validation, there are several attributes that don't belong in the model (e.g. due to flattening credential reference), and undefined values probably don't need be there either (CLI treats those as strings).

      Example:

      /subsystem=datasources/data-source=H2DS:add(name=H2DS,
          jndi-name=java:/H2DS,driver-name=h2,
          connection-url=jdbc:h2:mem:test;DB_CLOSE_DELAY=-1,
          user-name=sa,password=sa,validate-on-match=true,driver-class=org.h2.Driver,
          security-domain=undefined,store=undefined,alias=undefined,clear-text=undefined,
          type=undefined,credential-reference=undefined)
       

              mpetrov@redhat.com Michal Petrov
              mpetrov@redhat.com Michal Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: