jenkinsci / opentelemetry-plugin

Monitor and observe Jenkins with OpenTelemetry.
https://plugins.jenkins.io/opentelemetry/
Apache License 2.0
93 stars 47 forks source link

Failed to parse URL #821

Closed kuisathaverat closed 3 months ago

kuisathaverat commented 3 months ago

Jenkins and plugins versions report

Environment Running the code in main branch ``` mvn hpi:run ```

What Operating System are you using (both controller, and any agents involved in the problem)?

any

Reproduction steps

  1. Configure the Elastic Backend
  2. Set a Dashboard name with a white space in the name
  3. Navigate to the Jenkins Dashboard

Expected Results

no warnings and the link in the dashboard woks.

Actual Results

the link in the Jenkins dashboard to the metrics does not work and there is some warning in the logs

2024-03-15 13:56:46.639+0000 [id=82]    WARNING hudson.Functions#getActionUrl: Failed to parse URL for io.jenkins.plugins.opentelemetry.OpenTelemetryRootAction@4a4d3370: java.net.URISyntaxException: Illegal character in fragment at index 93: https://observability-ci.kb.us-west2.gcp.elastic-cloud.com:443/app/kibana#/dashboards?title=${kibanaDashboardTitle}&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-24h%2Fh,to:now))

Anything else?

No response

Are you interested in contributing a fix?

No response