-
Notifications
You must be signed in to change notification settings - Fork 7
Transfer of endpoint configuration from appstore to connector fails #125
Description
Describe the bug
I'm using the ids-app-template (https://gitlab.cc-asp.fraunhofer.de/fhg-fit-ids/ids-app-template) and trying to connect it to a route. I've added an input and an output endpoint while uploading the app and it's visible with GET /api/endpoints on appstore side. After downloading the app, there is only one APP Endpoint visible with GET /api/endpoints on connector side. Am I missing something at the configuration?
This is the response on GET /api/endpoints on appstore side:
{
"_embedded": {
"endpoints": [
{
"type": "APP",
"creationDate": "2023-01-25T10:04:52.497+0000",
"modificationDate": "2023-01-25T10:04:52.497+0000",
"location": "/output",
"endpointType": "Output",
"docs": "https://documentation",
"info": "information",
"endpointPort": 8080,
"mediaType": "application/json",
"protocol": "HTTP/1.1",
"language": "EN",
"path": "/output/",
"_links": {
"self": {
"href": "https://{{hostname}}/api/endpoints/8cfe68e6-1e95-45be-b41a-f4e5626ae15c"
}
}
},
{
"type": "APP",
"creationDate": "2023-01-25T10:04:52.521+0000",
"modificationDate": "2023-01-25T10:04:52.522+0000",
"location": "/output",
"endpointType": "Output",
"docs": "https://documentation",
"info": "information",
"endpointPort": 8080,
"mediaType": "application/json",
"protocol": "HTTP/1.1",
"language": "EN",
"path": "/output/",
"_links": {
"self": {
"href": "https://{{hostname}}/api/endpoints/dce2599f-ee10-44e6-a393-4e49b6d99aab"
}
}
},
{
"type": "APP",
"creationDate": "2023-01-25T10:04:52.839+0000",
"modificationDate": "2023-01-25T10:04:52.839+0000",
"location": "/input",
"endpointType": "Input",
"docs": "https://documentation",
"info": "information",
"endpointPort": 8080,
"mediaType": "application/json",
"protocol": "HTTP/1.1",
"language": "EN",
"path": "/input/",
"_links": {
"self": {
"href": "https://{{hostname}}/api/endpoints/f125c8ea-6ac0-4c68-aa49-b0f277b7bdaf"
}
}
},
{
"type": "APP",
"creationDate": "2023-01-25T10:04:52.862+0000",
"modificationDate": "2023-01-25T10:04:52.862+0000",
"location": "/input",
"endpointType": "Input",
"docs": "https://documentation",
"info": "information",
"endpointPort": 8080,
"mediaType": "application/json",
"protocol": "HTTP/1.1",
"language": "EN",
"path": "/input/",
"_links": {
"self": {
"href": "https://{{hostname}}/api/endpoints/9f62e086-8986-49b1-a796-accf172016d6"
}
}
}
]
},
"_links": {
"self": {
"href": "https://{{hostname}}/api/endpoints?page=0&size=30"
}
},
"page": {
"size": 30,
"totalElements": 4,
"totalPages": 1,
"number": 0
}
}
And this is the response (only about the APP endpoint) on connector side:
{
"_embedded": {
"endpoints": [
{
"type": "APP",
"creationDate": "2023-01-25T12:58:05.250+0000",
"modificationDate": "2023-01-25T13:17:56.451+0000",
"location": "http://app-1674652676103:8080/output",
"endpointType": "INPUT_ENDPOINT",
"docs": "https://documentation",
"info": "information",
"endpointPort": 8080,
"mediaType": "application/json",
"protocol": "HTTP/1.1",
"language": "https://w3id.org/idsa/code/EN",
"path": "/output",
"_links": {
"self": {
"href": "https://{{hostname}}/api/endpoints/3b19c5cb-9bc1-45be-815a-16d0602a8606"
}
}
},
To Reproduce
Steps to reproduce the behavior:
- Upload an app with endpoints configured to an appstore
- Download the app with a connector
- GET /api/endpoints
- There is only one "INPUT_ENDPOINT" but it's pointing on "/output"
Expected behavior
That the configured endpoints stay visible and accessible as they are at appstore side.
Desktop (please complete the following information):
- Version (DSC) [8.0.2]
- Version (Appstore) [3.0.0 ~ with DSC7upgrade branch]