alinaliBQ opened a new issue, #49551:
URL: https://github.com/apache/arrow/issues/49551

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   Enable `DISABLE_CERTIFICATE_VERIFICATION` default value on Linux.
   ```
       Set(FlightSqlConnection::DISABLE_CERTIFICATE_VERIFICATION,
         ReadDsnString(dsn, 
FlightSqlConnection::DISABLE_CERTIFICATE_VERIFICATION,
                       DEFAULT_DISABLE_CERT_VERIFICATION));
   ```
   
   We want to set default value with `DEFAULT_DISABLE_CERT_VERIFICATION`. We 
ran into a weird situation where passing a default value to 
`ReadDsnString(...,FlightSqlConnection::DISABLE_CERTIFICATE_VERIFICATION)` 
causes subsequent calls to `ReadDsnString` unable to fetch DSN. This is a 
strange issue because:
   - The default value not actually passed to `SQLGetPrivateProfileString` on 
Linux due to another issue I am investigating, so theoretically having a 
default or not shouldn't matter. 
   - No matter the value of `DEFAULT_DISABLE_CERT_VERIFICATION`, this issue 
persists
   - Unix-odbc driver manager can read DSN if I do not pass 
`DEFAULT_DISABLE_CERT_VERIFICATION` as an argument to `ReadDsnString`
   - This issue is only seen with key `DISABLE_CERTIFICATE_VERIFICATION`, other 
keys can be safely passed with or without a default value
   
   
   
   ### Component(s)
   
   FlightRPC, C++


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to