dbptk-developer
dbptk-developer copied to clipboard
import-config-module ignores input-port-number (SQL Server)
An input configuration yml file generated with the input-config-module as export-module contains the correct input-port-number parameter. Using this configuration yml file as input with the imput-config-module ignores the input-port-number when connecting to the database.
Steps required to reproduce the bug:
Using SQLServer:
java -jar "-Dfile.encoding=UTF-8" dbptk-app-2.11.0-SNAPSHOT.jar migrate --import microsoft-sql-server --import-server-name=servername --import-port-number=12345 --import-database="the_database" --import-disable-encryption --import-username=snsb --import-password="AllSymbolsHere" --export import-config --export-file=example.siard.yml
The config file eample.siard.yml is written and the port is correct in this file.
java -jar "-Dfile.encoding=UTF-8" dbptk-app-2.11.0-SNAPSHOT.jar migrate --import import-config --import-file=example.siard.yml --export siard-2 --export-file=example.siard2 --export-pretty-xml
Tries to connect with the default port-number 1433