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

Marcus Christie commented on AIRAVATA-2152:
-------------------------------------------

[~anujbhan],

When I try to call deleteUserComputeResourcePreference in the Airavata API, 
nothing is happening.  I think there is a bug in 
[UsrResourceProfileImpl|https://github.com/apache/airavata/blob/8469effce22ffe3a54255d3920ee33b9d9035c06/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/app/catalog/impl/UsrResourceProfileImpl.java#L204-L204]

Instead of this:
{code}
            CompositeIdentifier ids = new CompositeIdentifier(userId,gatewayId);
{code}

I think it should probably be

{code}
            CompositeIdentifier ids = new CompositeIdentifier(preferenceId, 
userId);
{code}

I say that because the CompositeId in 
UserComputeHostPreferenceResource.remove() expects the first id to be the 
RESOURCE_ID and the second one is the USER_ID.

> UI for to add compute resource/storage allocations
> --------------------------------------------------
>
>                 Key: AIRAVATA-2152
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2152
>             Project: Airavata
>          Issue Type: Bug
>          Components: PGA PHP Web Gateway
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>




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

Reply via email to