[
https://issues.apache.org/jira/browse/AIRAVATA-1890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shameera Rathnayaka updated AIRAVATA-1890:
------------------------------------------
Fix Version/s: (was: 0.16)
0.17
> 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
> Fix For: 0.17
>
>
> 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)