wso2 / mi-vscode

Micro Integrator extension for Visual Studio Code
Apache License 2.0
2 stars 3 forks source link

MI Extension for VS Code Problem with Data Source creation #357

Closed jpvadell closed 1 week ago

jpvadell commented 1 month ago

Description: When I create a new datasource, without configuring "Expose as a JNDI Datasource" the source appears like this:

<datasource>
    <name>DemoDS</name>
    <definition type="RDBMS">
        <configuration>
            <driverClassName>com.mysql.jdbc.Driver</driverClassName>
            <url>jdbc:mysql://[machine-name/ip]:[port]/[database-name]</url>
            <username>demo</username>
            <password>demo</password>
        </configuration>
    </definition>
</datasource>

But when, for example, I update the username and save... appears the jndiConfig with empty parameters:

<datasource>
    <name>DemoDS</name>
    <jndiConfig useDataSourceFactory="">
        <name></name>
    </jndiConfig>
    <definition type="RDBMS">
        <configuration>
            <driverClassName>com.mysql.jdbc.Driver</driverClassName>
            <url>jdbc:mysql://[machine-name/ip]:[port]/[database-name]</url>
            <username>changed</username>
            <password>demo</password>
        </configuration>
    </definition>
</datasource>

And with this configuration, don't work when i deploy it. If I delete this element, works again.

gigara commented 1 week ago

The latest release v1.1.0 has resolved the issue. Please reopen if the problem persists.