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
{{ message }}
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.
A valid URL such as http://localhost:8080/apiman/ in config.json5 endpoint (and possibly others) causes 'double forward slash', as UI code adds a / to the end of endpoint.
For example: http://localhost:8080/apiman/ causes http://locahost:8080/apiman//<rest of path>
Acceptance criteria
URL should be normalised so that slashed and non-slashed URLs work.
Possible solutions
Normalise by always trimming the slash from endpoints in #get<whatever> URL endpoints, (consistently throughout codebase so all config properties do the same).
Use built-in URL class to join URLs instead of doing it by hand new URL('/whatever', 'http://localhost:8080/apiman/').href
A valid URL such as
http://localhost:8080/apiman/
in config.json5endpoint
(and possibly others) causes 'double forward slash', as UI code adds a/
to the end of endpoint.For example:
http://localhost:8080/apiman/
causeshttp://locahost:8080/apiman//<rest of path>
Acceptance criteria
Possible solutions
#get<whatever>
URL endpoints, (consistently throughout codebase so all config properties do the same).URL
class to join URLs instead of doing it by handnew URL('/whatever', 'http://localhost:8080/apiman/').href
Might be good to hide some of this behind the scenes, with an extra service endpoint like
The text was updated successfully, but these errors were encountered: