pgAdmin changing pg_hba.conf does not work - Mac and Windows (Fix) - Mailing list pgadmin-hackers

From Dhiraj Chawla
Subject pgAdmin changing pg_hba.conf does not work - Mac and Windows (Fix)
Date
Msg-id CAJgtxT5vxSwUBz_9ivoy1agKcbzFc7KK=QPQ9zRfd6hG1QcY=Q@mail.gmail.com
Whole thread Raw
Responses Re: pgAdmin changing pg_hba.conf does not work - Mac and Windows (Fix)  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
Hi Dave,

Attached is the patch that fixes the issue where if a user connects to
a server, and then tries to add an entry to pg_hba.conf via
pgHbaConfig form dialog and the newly added entry does not get saved.

Actually a member variable 'isComment' in the pgHbaConfigLine class
was not initialized. This class stores data of each line of the
pg_hba.conf file. On some system the default value was set to true
while on others it was getting set to false. But for empty lines if it
is set to true, the other logic in pgHbaConfig form dialogs works as
expected and the newly added entry is getting saved properly.

Let me know your feedback on the same.

Thanks,

--
regards,

Dhiraj Chawla
Software Engineer
EnterpriseDB Corporation
The Enterprise PostgreSQL Company

Phone: +91-20-30589522

Attachment

pgadmin-hackers by date:

Previous
From: Dave Page
Date:
Subject: Re: Recreate views after column type change
Next
From: Dave Page
Date:
Subject: pgAdmin III commit: Fix the editing of pg_hba.conf files.