airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcus Christie (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AIRAVATA-1890) the gateway preference fails with a nullpointer error when no uncelectedCRs are in the database..
Date Tue, 10 Jan 2017 16:54:58 GMT

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

Marcus Christie resolved AIRAVATA-1890.
---------------------------------------
    Resolution: Fixed

I believe this was fixed awhile ago so I'm marking this issue as Fixed. In any case, I can't
reproduce it now.

> 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: Marcus Christie
>            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)

Mime
View raw message