Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Orchestrator should return empty response isntead of error #34

Description

@cochicde

when requesting information for a system to the empty orchestrator using the orchestrator/orchestration interface I get:

{
"errorMessage": "No Orchestration Store entries were found for consumer Deposit1",
"errorCode": 404,
"exceptionType": "DATA_NOT_FOUND",
"origin": "http://localhost:8440/orchestrator/orchestration",
"documentation": "https://github.com/arrowhead-f/core-java/tree/master/documentation"
}

According to the SD of the orchestrator: "The response to a Service Request is the Orchestration Response, which can contain several Orchestration Forms", so when the the are no rules for the requested system, the orchestrator should return
{
"response" : []
}

the same way the serviceRegistry returns
{
"serviceQueryData": []
}

when no service is found.

I think the error messages should be returned only if the request is not properly formed

Metadata

Metadata

Assignees

No one assigned

    Labels

    design issueProblem which warrants design changes

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions