[jboss-jira] [JBoss JIRA] (AS7-3349) Data-source add allows adding data sources with non existing JDBC driver

Dominik Pospisil (JIRA) jira-events at lists.jboss.org
Mon Jan 30 11:27:48 EST 2012


    [ https://issues.jboss.org/browse/AS7-3349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662787#comment-12662787 ] 

Dominik Pospisil commented on AS7-3349:
---------------------------------------

And do you really consider this as a valid use case? Is there any reason why a user should not be forced to install the driver first so this validation could be performed? I think that this is counter intuitive and also adding data source without validation pretty error prone.
Is there any other management operation which would allow you to pass reference to non-existing resource?
                
> Data-source add allows adding data sources with non existing JDBC driver
> ------------------------------------------------------------------------
>
>                 Key: AS7-3349
>                 URL: https://issues.jboss.org/browse/AS7-3349
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: CLI, Domain Management
>    Affects Versions: 7.1.0.Final
>            Reporter: Dominik Pospisil
>            Assignee: Stefano Maestri
>              Labels: eap6-ux
>             Fix For: 7.1.1.Final
>
>
> Data-source add allows adding data sources with non existing JDBC driver. The data-source add command should warn / prevent user from doing such thing.
> [standalone at localhost:9999 /] ls /subsystem=datasources/data-source      
> ExampleDS
> [standalone at localhost:9999 /] data-source add --jndi-name=java:/TestDS  --connection-url=jdbc:postgresql://localhost/test --driver-name=NON_EXISTING_DRIVER
> [standalone at localhost:9999 /] ls /subsystem=datasources/data-source                                                                                        
> ExampleDS      java:/TestDS
> [standalone at localhost:9999 /] 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list