Parsing issue in Open pg_hba.conf dialog - Mailing list pgadmin-hackers

From Dhiraj Chawla
Subject Parsing issue in Open pg_hba.conf dialog
Date
Msg-id AANLkTi=Gw35--K0YEBQvH7k0Oszvja82sH1ncz+1DUY+@mail.gmail.com
Whole thread Raw
Responses Re: Parsing issue in Open pg_hba.conf dialog  (Dave Page <dpage@pgadmin.org>)
List pgadmin-hackers
Hi,

Today I came across an issue in the Open pg_hba.conf dialog.

If your pg_hba.conf is something like this:

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    "all, samerole"             all             127.0.0.1/32            trust
# IPv6 local connections:
host    all             "all, agent1"             ::1/128                 trust

Then the pg_hba.conf dialog shows something like this:

Type          Database              User            IP-Address          Method          Option
local          all                         all                                          trust
host          "all,                       samerole"     all   127.0.0.1/32  trust
host          all                         "all,              agent1"    ::1/128  trust

which I guess is an issue with the parser of pg_hba.conf file.

So I debugged it and was able to fix it.

I am attaching the patch for the fix herewith this email.

I am not sure if this was a correct scenario or what but this issue I was facing so thought of working on it.

--
regards,
Dhiraj

Attachment

pgadmin-hackers by date:

Previous
From: "pgAdmin Trac"
Date:
Subject: Re: [pgAdmin III] #132: Use one of the new format for the graphical EXPLAIN
Next
From: Dave Page
Date:
Subject: pgAdmin III commit: Fix a parser bug in the pg_hba.conf editor.