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 2021/08/31 20:40:00 UTC

[jira] [Comment Edited] (AIRAVATA-3508) As Read only Admin I cannot clone other users experiments. Exception thrown.

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

Marcus Christie edited comment on AIRAVATA-3508 at 8/31/21, 8:39 PM:
---------------------------------------------------------------------

Reproduced in dev environment by disabling the comet.sdsc.edu compute resource and then trying to clone an experiment that was run on comet.sdsc.edu (https://django.seagrid.org/workspace/experiments/Gaussian_Space_Test_on_Apr_9,_2021_3:24_PM_2e96aaa2-84ea-479a-bb35-7a55d90add58/).

It turns out the cloning logic already does the right thing and nulls out the compute resource information in the cloned experiment when the compute resource is no longer enabled:

https://github.com/apache/airavata/blob/master/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java#L2167-L2170

However, the registry's {{updateExperiment}} method isn't checking to see if the compute resource is null.



was (Author: marcuschristie):
Reproduced in dev environment by disabling the comet.sdsc.edu compute resource and then trying to clone an experiment that was run on comet.sdsc.edu (https://django.seagrid.org/workspace/experiments/Gaussian_Space_Test_on_Apr_9,_2021_3:24_PM_2e96aaa2-84ea-479a-bb35-7a55d90add58/).

It turns out the cloning logic already does the right thing and nulls out the compute resource information in the cloned experiment when the compute resource is no longer enabled:

https://github.com/apache/airavata/blob/master/airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java#L2167-L2170

However, the registry's `updateExperiment` method isn't checking to see if the compute resource is null.

> As Read only Admin I cannot clone other users experiments. Exception thrown.
> ----------------------------------------------------------------------------
>
>                 Key: AIRAVATA-3508
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-3508
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>         Environment: https://testdrive.airavata.org/
>            Reporter: Eroma
>            Assignee: Marcus Christie
>            Priority: Major
>         Attachments: Screen Shot 2021-08-31 at 6.12.30 AM.png
>
>
> # Read only admin user (eabeysin@iu.edu) chooses another users experiment to clone and got exception [1]
>  # This application and GRP is open to read only admin group.
>  # Got the error for FAILED and COMPLETED experiments. But not for all, some recent ones  I was able to clone.
>  # Exp IDs
>  ## Gaussian16_on_Mar_9,_2021_11:27_AM_3d8576a7-5e48-400f-8503-cea3377ebe8e (This is older than 6 months and exp directory is not existing.)



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