Open wrussell1999 opened 20 hours ago
hey. The code implementation takes the URL specified in the configuration files (application-{env}.yml or any other way to provide the value) and concats the "/ui" + the rest of the path to that URL. This could be fixed in the code by removing the slash if specified or to tell users to specify the URL without the slash at the end.
Here is the code creating the final URL:
` private URI executionUrl(Execution execution) { return URI.create(kestraUrl.orElse("") + "/ui" + (execution.getTenantId() != null ? "/" + execution.getTenantId(): "")
where kestraUrl is fetched from configuration:
@Value("${kestra.url}") private Optional<String> kestraUrl;
So, did you maybe specify in your application-local.yml or anywhere else the environment variable kestra.url as: "http://localhost:8084/"?
@loicmathieu what do you think?
Describe the issue
When I executed a flow using the API, I got a response with a URL to Kestra that contained two slashes when only one was needed.
Flow:
API Request made in the terminal:
Response given:
Specifically the bottom line
url
has two/
after the server URL. It should be:"url": "http://localhost:8084/ui/executions/company.team/hello_world/6gTABm82mx5li7tHkgqyNU"
Should be a quick fix, and doesn't stop it working - just a minor bug.
Environment