[CONC-359] host configuration option not picked up from .my.cnf Created: 2018-08-30  Updated: 2018-09-05

Status: Open
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 3.0.5
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Michael Herzberg Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None
Environment:

OS: Arch Linux


Attachments: File fix_libmariadb_ignored_host.patch    

 Description   

When using read_default_file to specify connection credentials, the host option is not being picked up, although other options are. The client library then attempts to connect to the default local socket, which fails. When the host is passed directly in the code, it is correctly picked up.

After some debugging and building from source, I suspect the issue was introduced in https://github.com/MariaDB/mariadb-connector-c/commit/184a16d2f1d0bb24bea6bcf23e1604093fef8f93. When applying the attached patch and thus reverting part of the commit, the host is correctly picked up again, although I am not sure what exactly the purpose of said commit is and whether the patch interferes with that.



 Comments   
Comment by Rares Vernica [ 2018-09-05 ]

I can confirm this issue exists in 3.0.6 as well.

Generated at Thu Feb 08 03:04:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.