You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by "Marcus Christie (Jira)" <ji...@apache.org> on 2020/09/24 14:49:00 UTC

[jira] [Commented] (AIRAVATA-3297) When sharing a SSH key if the Permission is set to MANAGE_SHARING an exception is thrown

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

Marcus Christie commented on AIRAVATA-3297:
-------------------------------------------

Looks like what happened is we added the MANAGE_SHARING permission creation to the API server's addGateway method. 

https://github.com/apache/airavata/blob/develop/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java#L399-L404

But addGateway isn't actually called any longer. The tenant profile service is used for gateway creation and the SharingServiceDBEventHandler creates permissions for new gateways when a tenant is created.

https://github.com/apache/airavata/blob/develop/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/messaging/SharingServiceDBEventHandler.java#L220-L245


> When sharing a SSH key if the Permission is set to MANAGE_SHARING an exception is thrown
> ----------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-3297
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3297
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>    Affects Versions: 0.18
>         Environment: https://beta.geogateway.scigap.org/
>            Reporter: Eroma
>            Assignee: Marcus Christie
>            Priority: Major
>             Fix For: 0.18
>
>         Attachments: Screen Shot 2020-02-26 at 12.40.24 PM.png
>
>
> 1. Created a new key for a newly deployed gateway and saved with MANAGE_SHARING.
> 2. Exception thrown (Image attached)
> h5. TODO
> - [ ] fix the error that is causing MANAGE_SHARING permission to not work correctly
> - [ ] change the permission on default sharing of resources with Admins to MANAGE_SHARING (currently WRITE)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)