You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@polaris.apache.org by "eric-maynard (via GitHub)" <gi...@apache.org> on 2024/09/03 16:52:40 UTC
Re: [I] [BUG] creating an existing principal role assignment returns 500 instead of 409 [polaris]
eric-maynard commented on issue #226:
URL: https://github.com/apache/polaris/issues/226#issuecomment-2327003088
Can you share more details on how you hit this?
I configured my Polaris to use a local Postgres instance, purge+bootstrapped it, and then ran the following without seeing an error:
```
./polaris \
--access-token 'principal:root;realm:default-realm' \
catalogs \
create example_catalog \
--storage-type file \
--default-base-location 'file:///tmp/example'
./polaris \
--access-token 'principal:root;realm:default-realm' \
principals \
create \
example_user
./polaris \
--access-token 'principal:root;realm:default-realm' \
principal-roles \
create \
example_user_role
./polaris \
--access-token 'principal:root;realm:default-realm' \
principal-roles \
grant \
--principal example_user \
example_user_role
./polaris \
--access-token 'principal:root;realm:default-realm' \
principal-roles \
grant \
--principal example_user \
example_user_role
```
--
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: commits-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org