Eric Kuijt created AIRAVATA-1890:
------------------------------------
Summary: 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
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)