Marcus Christie created AIRAVATA-2351:
-----------------------------------------
Summary: RegistryServerHandler creates singletons that reference
the wrong gateway
Key: AIRAVATA-2351
URL: https://issues.apache.org/jira/browse/AIRAVATA-2351
Project: Airavata
Issue Type: Bug
Affects Versions: 0.16, 0.17
Reporter: Marcus Christie
Fix For: 0.18
The RegistryServerHandler uses the RegistryFactory to instantiate the
ExperimentCatalog in a singleton type pattern. The ExperimentCatalog is
initialized with a gatewayId.
The problem is that, because it is initialized only once as a singleton, the
ExperimentCatalog that is created gets a gatewayId that is good only for the
first request (maybe, there is a also a default gatewayId that it could be
created with as well, in which case it is never valid). This code pattern
works against the multi-tenanted nature of Airavata.
The code should be refactored so that the ExperimentCatalog can be instantiated
per request, with that request's gatewayId. This may require changing the
Registry API to pass in gatewayId for requests that are missing it.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)