diff --git a/CHANGELOG.md b/CHANGELOG.md index 6311dde..96e168f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [Unreleased] +### Fixed + +- Strip away trailing slashes from Codechecker server URL that could cause + problems when creating the endpoint URL. This affects the + `east codechecker store` and `east codechecker servdiff`, which get the URL + either as a command line argument or from the environmental variable + `EAST_CODECHECKER_SERVER_URL` + ## [0.17.4] - 2024-01-08 ### Fixed diff --git a/src/east/workspace_commands/codechecker_commands.py b/src/east/workspace_commands/codechecker_commands.py index 3209d9e..08a908e 100644 --- a/src/east/workspace_commands/codechecker_commands.py +++ b/src/east/workspace_commands/codechecker_commands.py @@ -245,7 +245,7 @@ def store(east, url, build_dir): endpoint = get_endpoint(east) store_cmd = ( - f"{cc} store --name '{name}' --url {url}/{endpoint} " + f"{cc} store --name '{name}' --url {url.strip('/')}/{endpoint} " f"--config {cfg} {cc_output_dir} --tag '{tag}'" ) @@ -393,7 +393,7 @@ def servdiff(east, new, resolved, unresolved, html, url, build_dir): diff_cmd = ( f"{cc} cmd diff --basename {name} --newname {cc_output_dir} " - f"--url {url}/{endpoint} " + f"--url {url.strip('/')}/{endpoint} " ) if [new, resolved, unresolved].count(True) != 1: