Repository navigation
v1.12.1
Patch Changes
-
#55
3e55d0fThanks @claudiacodacy! - Escape path parameters per segment, so a namespaced image name reaches the right endpoint.codacy image gh my-org my-org/my-serviceand every otherimagesubcommand failed withError: The requested resource could not be found. (HTTP 404)against any image whose name carries a slash — which is the usual shape, and was every image in our own organization.The generated client falls back to
encodeURIwhenOpenAPI.ENCODE_PATHis unset, andencodeURIleaves/alone because it is meant for whole URLs rather than the pieces they are built from.codacy/codacy-websitetherefore expanded into two path segments and hit a route that does not exist. The entry point now setsencodePathSegment(encodeURIComponent), which escapes separators as a single segment requires.This affects every command, not only
image: the same encoder handles branch names and file paths, which can carry slashes for the same reason. No currently shipped command sent one as a path parameter, so nothing else changes shape.