[
https://issues.apache.org/jira/browse/AIRAVATA-1142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13970679#comment-13970679
]
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: https://issues.apache.org/jira/browse/AIRAVATA-1142
> 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
(v6.2#6252)