You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2014/03/13 14:21:43 UTC
[jira] [Updated] (KARAF-2819) datasource-xxx.xml contains wrong
password after jdbc:create
[ https://issues.apache.org/jira/browse/KARAF-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jean-Baptiste Onofré updated KARAF-2819:
----------------------------------------
Fix Version/s: 2.3.5
3.1.0
3.0.1
2.4.0
> datasource-xxx.xml contains wrong password after jdbc:create
> ------------------------------------------------------------
>
> Key: KARAF-2819
> URL: https://issues.apache.org/jira/browse/KARAF-2819
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 2.3.4
> Environment: Talend TESB 5.4.1 (Karaf 2.3.3) with jdbc installed from 2.3.4:
> features:addurl mvn:org.apache.karaf.assemblies.features/enterprise/2.3.4/xml/features
> features:addurl mvn:org.apache.karaf.assemblies.features/standard/2.3.4/xml/features
> features:install management
> features:install jdbc
> Reporter: Lothar Werzinger
> Assignee: Jean-Baptiste Onofré
> Fix For: 2.4.0, 3.0.1, 3.1.0, 2.3.5
>
>
> I can execute the jdbc commands, but I am experiencing a problem creating a datasource:
> karaf@trun> jdbc:create -url jdbc:mysql://localhost:3306/sample -u sample -p sample -t MySQL sample
> karaf@trun> jdbc:tables jdbc/sample
> Error executing command: Access denied for user 'sample'@'localhost' (using password: YES)
> It looks like the 'password' of the datasource configuration file is created wrong '${test}' instead of 'sample'
> <bean id="dataSource" class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
> <property name="url" value="jdbc:mysql://localhost:3306/sample"/>
> <property name="user" value="sample"/>
> <property name="password" value="${test}"/>
> </bean>
> I know I can edit the datasource-sample.xml file as a workaround and provide the real password.
--
This message was sent by Atlassian JIRA
(v6.2#6252)