airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Saminda Wijeratne (JIRA)" <>
Subject [jira] [Commented] (AIRAVATA-1142) getAllExperimentsInProject throws exeption instead of empty result
Date Wed, 16 Apr 2014 11:20:16 GMT


Saminda Wijeratne commented on AIRAVATA-1142:

Are we planning to register projects in the gateway? If so such exceptions are valid (but
should be wrapped with a meaningful exception) if the project name/id is infact unregistered.
Or else in all other cases I agree that the return result should be and empty list.

I'm adding "Java" as well to the Environment (technically this affects all environment)

Note: Looking at the implementation in the registry however enforces projects to be registered
in the "Project" table before accessing any experiment data. This piece of code actually comes
from our previous registry architecture which we are reusing for underline implementations
of the new registry architecture assumingly due to similarity in the required data structures
for the gateway.

> getAllExperimentsInProject throws exeption instead of empty result
> ------------------------------------------------------------------
>                 Key: AIRAVATA-1142
>                 URL:
>             Project: Airavata
>          Issue Type: Bug
>          Components: Airavata Client
>    Affects Versions: 0.12
>         Environment: PHP
>            Reporter: David Reagan
> If you ask for a project that doesn't exist, an AiravataSystemException is thrown instead
of returning an empty array.
> Fatal error: Uncaught exception 'Airavata\API\Error\AiravataSystemException' in C:\wamp\www\Airavata-PHP-Client-Samples\lib\Airavata\API\Airavata.php
on line 2280

This message was sent by Atlassian JIRA

View raw message