opensearch-project / opensearch-project/sql-odbc
[BUG] OpenSearch ODBC driver installer conflicts with already installed OpenDistro ODBC driver
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
OpenSearch and OpenDistro ODBC drivers conflicts with each other. It is impossible to install both of the on the computer.
Furthermore, it is impossible to install 32 bit driver if 64 bit one is already installed and otherwise.
To Reproduce
Steps to reproduce the behavior:
- Install OpenDistro ODBC driver taken from https://opendistro.github.io/for-elasticsearch/downloads.html
- Download OpenSearch ODBC driver with the same bitness. I used artifacts from this workflow run: https://github.com/opensearch-project/sql/actions/runs/1343276721
- Try to install it
- Error says that a newer version is already installed
Test 2
- Install OpenSearch ODBC 32-bit
- Try installing OpenSearch ODBC 64-bit
- Install succeeds, but the first driver is deleted
Expected behavior
OpenSearch ODBC driver is installed and co-exist with OpenDistro ODBC driver. No conflicts between them.
OpenSearch ODBC 32-bit driver is installed and co-exist with OpenSearch ODBC 64-bit driver. No conflicts between them.
Host/Environment (please complete the following information):
- OS: Win 10 21H1 10.0.19043.1288
- Installers for ODBC are taken from here: 32 bit, 64 bit. OpenDistro drivers are downloaded from the website: 32 bit, 64 bit.
md5sum *.msi
82604ef8a21b3e048ed3e45545f38839 opendistro-sql-odbc-1.13.0.1-windows-x64.msi
69217d4692d91221700388f48649f16a opendistro-sql-odbc-1.13.0.1-windows-x86.msi
52c3a8aa2214880cf480ed5208c13048 OpenSearch SQL ODBC Driver 32-bit-1.1.0.0-Windows.msi
94f078df2bb41b95dd7b13f5469b71cb OpenSearch SQL ODBC Driver 64-bit-1.1.0.0-Windows.msi
Additional context
I guess this happened because both OpenSearch and OpenDistro ODBC drivers are registered as the same product in the system.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the Windows MSI installer configuration used for the 32-bit and 64-bit ODBC artifacts linked in the issue, focusing on product identity and registration. Reproduce the reported installs on Windows, then verify that OpenDistro and OpenSearch drivers, and both OpenSearch bitness variants, can coexist without one being removed or rejected.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system, release
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100