You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The invalid serviceId (against the conformance) has an unexpected behavior.
Steps to Reproduce
register a service with serviceId service_test
try to call an endpoint ie. /service_test/api/v1
the response is 500
Expected behavior
It should route well or inform about wrong inputs
The root cause is that GW uses a load balancer. To identify the instance it uses a URI like lb://service_test. During the processing by the load balancer, it is necessary to parse the URI and it is a problem because the URI is not valid (for _ character - https://www.ietf.org/rfc/rfc0952.txt). It leads to internal server error 500.
Possible solution:
reject onboarding with invalid serviceId (or potentially other values)
the DS could return 400 in this case
if the service logs the reason for error it could be displayed
rename serviceId internally
use as service ID encoded string (ie by using -)
we need to provide the original serviceId in metadata to be possible to construct url for a routing rule
update enabler to verify this value and at least log warn message or rather stop onboarding process
Details
Version and build number: 3.0.0
The text was updated successfully, but these errors were encountered:
Describe the bug
The invalid serviceId (against the conformance) has an unexpected behavior.
Steps to Reproduce
service_test
Expected behavior
It should route well or inform about wrong inputs
The root cause is that GW uses a load balancer. To identify the instance it uses a URI like
lb://service_test
. During the processing by the load balancer, it is necessary to parse the URI and it is a problem because the URI is not valid (for_
character - https://www.ietf.org/rfc/rfc0952.txt). It leads to internal server error 500.Possible solution:
Details
The text was updated successfully, but these errors were encountered: