[ 
https://issues.apache.org/jira/browse/AIRAVATA-2185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15664466#comment-15664466
 ] 

Marcus Christie commented on AIRAVATA-2185:
-------------------------------------------

[~scnakandala],

I found an issue when trying to use the OWNER ResourcePermissionType.  In 
[AiravataServerHandler.java|https://github.com/machristie/airavata/blob/c456337f23c6833779d454789ee698e0e87b2b24/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java#L4000-L4000],
 the permissionTypeId is constructed like so
{code}
authzToken.getClaimsMap().get(Constants.GATEWAY_ID)
                                + ":OWNER"
{code}

However, when I look in the database, the permission is just "OWNER" without 
the GATEWAY_ID prefix.

> Add OWNER ResourcePermissionType to sharing API
> -----------------------------------------------
>
>                 Key: AIRAVATA-2185
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2185
>             Project: Airavata
>          Issue Type: New Feature
>          Components: Airavata API
>            Reporter: Marcus Christie
>            Assignee: Supun Chathuranga Nakandala
>
> I [discussed this earlier with 
> Supun|https://issues.apache.org/jira/browse/AIRAVATA-2170?focusedCommentId=15588665&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-15588665]
> {quote}
> I talked with Supun and he is going to add the OWNER ResourcePermissionType 
> to the sharing API. Then I'll be able to call getAllAccessibleUsers with the 
> OWNER permission type.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to