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] [Commented] (AIRAVATA-1890) the gateway preference fails with a nullpointer error when no uncelectedCRs are in the database..
Date Tue, 10 Jan 2017 16:53:58 GMT

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

Marcus Christie commented on AIRAVATA-1890:
-------------------------------------------

I can't reproduce this. I think [~ndoshi] actually fixed this with this commit: https://github.com/machristie/airavata-php-gateway/commit/80ed2f38826eb282d6320bd93b1591c7f388f521



> 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