From 821baa4d5cdcb6f2938495e096bee2f79fde24cc Mon Sep 17 00:00:00 2001 From: OpenShift Cherrypick Robot Date: Thu, 6 Nov 2025 17:58:26 +0100 Subject: [PATCH] [redhat-3.16] fix(web): use single quotes in container login commands (PROJQUAY-9683) (#4447) fix(web): use single quotes in container login commands (PROJQUAY-9683) Application token and robot token credentials modals were using double quotes in podman/docker login commands, causing authentication failures. Changed to single quotes to match current UI behavior and ensure CLI compatibility. Signed-off-by: Brady Pratt Co-authored-by: Brady Pratt Co-authored-by: Claude --- .../modals/ApplicationTokenCredentials.tsx | 2 +- web/src/components/modals/RobotTokensModal.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/web/src/components/modals/ApplicationTokenCredentials.tsx b/web/src/components/modals/ApplicationTokenCredentials.tsx index c3df69fb1..4fc917ce0 100644 --- a/web/src/components/modals/ApplicationTokenCredentials.tsx +++ b/web/src/components/modals/ApplicationTokenCredentials.tsx @@ -38,7 +38,7 @@ export default function ApplicationTokenCredentials({ }; const getContainerLoginCommand = (runtime: 'docker' | 'podman') => { - return `${runtime} login -u="$app" -p="${token?.token_code}" ${getServerHostname()}`; + return `${runtime} login -u='$app' -p='${token?.token_code}' ${getServerHostname()}`; }; const kubernetesYaml = useMemo(() => { diff --git a/web/src/components/modals/RobotTokensModal.tsx b/web/src/components/modals/RobotTokensModal.tsx index e94872a65..bf89b477d 100644 --- a/web/src/components/modals/RobotTokensModal.tsx +++ b/web/src/components/modals/RobotTokensModal.tsx @@ -378,11 +378,11 @@ export default function RobotTokensModal(props: RobotTokensModalProps) { isReadOnly id="podman-login" > - {'podman login -u="' + + {"podman login -u='" + tokenData.name + - '" -p="' + + "' -p='" + tokenData.token + - '" ' + + "' " + domain} @@ -410,11 +410,11 @@ export default function RobotTokensModal(props: RobotTokensModalProps) { isReadOnly id="docker login" > - {'docker login -u="' + + {"docker login -u='" + tokenData.name + - '" -p="' + + "' -p='" + tokenData.token + - '" ' + + "' " + domain}