frankframework icon indicating copy to clipboard operation
frankframework copied to clipboard

"servers" empty in http://localhost/iaf/api/webservices/openapi.json?uri=/service1a

Open jacodg opened this issue 1 year ago • 3 comments

With F!F 7.8:

image

8.1.0-20240228.042318:

image

URLs to verify/test http://localhost/iaf-test/iaf/api/webservices/openapi.json?uri=/exception http://localhost/iaf-test/api/openapi.json

jacodg avatar Feb 29 '24 10:02 jacodg

Situation 1 http://localhost/iaf-test/api/openapi.json => still works fine in master (8.1-SNAPSHOT).

Situation 2 http://localhost/iaf-test/iaf/api/webservices/openapi.json?uri=/exception Needs the configured loadBalancer.url property, and otherwise it shows an empty array. Does work as expected in: 7.9.1, 8.0.0, 8.1. Previously, in 7.9.0 and lower versions, it always uses the request and always shows a value for the server.

jkosternl avatar Mar 14 '24 15:03 jkosternl

Feels a bit stilly to say 'this works as intended', but right now we cannot do much about this behavior. There are some limitations on when and where we can retrieve the server info. If you call the webservices endpoint directly it still works (as described by @jkosternl).

For our frank-cloud module we can try to determine the service endpoint (by reading the docker/k8s API), and provide more accurate information, when the OpenApi spec is retrieved through the frontend module.

nielsm5 avatar Mar 19 '24 15:03 nielsm5

Duplicate of #6373. This is working as intended. Once we have a cloud module, and can read the Kubernetes API, we can find the INGRESS and set the value automatically.

nielsm5 avatar Mar 21 '24 16:03 nielsm5