airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eroma (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRAVATA-1890) the gateway preference fails with a nullpointer error when no uncelectedCRs are in the database..
Date Fri, 12 Feb 2016 15:41:18 GMT

     [ https://issues.apache.org/jira/browse/AIRAVATA-1890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eroma updated AIRAVATA-1890:
----------------------------
    Assignee: Nipurn Doshi

> the gateway preference fails with a nullpointer error when no uncelectedCRs are in the
database..
> -------------------------------------------------------------------------------------------------
>
>                 Key: AIRAVATA-1890
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-1890
>             Project: Airavata
>          Issue Type: Bug
>          Components: PGA PHP Web Gateway
>    Affects Versions: 0.16
>         Environment: ubuntu
>            Reporter: Eric Kuijt
>            Assignee: Nipurn Doshi
>            Priority: Minor
>
> PGA crashes hard when no unused Compute resources are in the database. I think the same
would count for Storage resources because of code below.
>                 foreach( (array)$gatewaysInfo["allCRs"] as $crId => $cr){
>                         if( ! in_array($cr->computeResourceId, $gatewaysInfo["selectedCRs"])
)
>                         $unselectedCRs[] = $cr;
>                 }
>                 foreach( (array)$gatewaysInfo["allSRs"] as $index => $sr){
>                         if( ! in_array($sr->storageResourceId, $gatewaysInfo["selectedSRs"])
)
>                         $unselectedSRs[] = $sr;
>                  }



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

Mime
View raw message