From: Kris Jurka <books@ejurka.com>
To: Jonas Sundman <jonas.sundman@thl.fi>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: getTablePrivileges empty if table owned by group role
Date: Tue, 23 Aug 2011 13:19:51 -0400 (EDT)
Message-ID: <alpine.BSO.2.00.1108231315490.20121@leary.csoft.net> (raw)
In-Reply-To: <4E539D4F.6090803@thl.fi>
References: <4E4CD82E.3040102@thl.fi>
<4E539D4F.6090803@thl.fi>
On Tue, 23 Aug 2011, Jonas Sundman wrote:
> after some digging and further reading in the todo list I learned that acl
> parsing is known to be uncompatible with versions after 7.3.
>
> I decided to have a look into the code and turned up with a working
> version of the acl parsing, which I would like to share.
Great. Can you resend as a context diff (diff -c), the default format
isn't really usable. Also we need to able to support the older ACL
formats as well. I haven't read your patch, but my ancient notes say 7.3,
7.4, and 8.0 all have different formats. I know you aren't likely to have
these old versions handy, but can you test with the attached ACL entries
and ensure they get parsed correctly?
Kris Jurka
Attachments:ACLs (text/plain, 507B) download
80 {jurka=arwdRxt/jurka,permuser=rw*/jurka}
74 {jurka=a*r*w*d*R*x*t*/jurka,permuser=rw*/jurka}
73 {=,jurka=arwdRxt,permuser=rw}
with grant option:
80 {jurka=arwdRxt/jurka,permuser=rw*/jurka,grantuser=w/permuser}
74 {jurka=a*r*w*d*R*x*t*/jurka,permuser=rw*/jurka,grantuser=w/permuser}
groups:
80 {jurka=arwdRxt/jurka,permuser=rw*/jurka,grantuser=w/permuser,"group permgroup=a/jurka"}
74 {jurka=a*r*w*d*R*x*t*/jurka,permuser=rw*/jurka,grantuser=w/permuser,"group permgroup=a/jurka"}
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: books@ejurka.com, jonas.sundman@thl.fi
Subject: Re: getTablePrivileges empty if table owned by group role
In-Reply-To: <alpine.BSO.2.00.1108231315490.20121@leary.csoft.net>
References: <4E4CD82E.3040102@thl.fi> <4E539D4F.6090803@thl.fi> <alpine.BSO.2.00.1108231315490.20121@leary.csoft.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox