From 72c02bbd9805f2e8c20e65ae8e905e2813811856 Mon Sep 17 00:00:00 2001 From: Antoine Clausse Date: Thu, 2 Oct 2025 17:17:34 +0200 Subject: [PATCH] [e2e] Prevent slashes in generated project names (#28835) * Prevent slashes in generated project names by using base64url encoding (replaces `+` and `/` by `-` and `_`) * Keep base64 (Missing baseUrl in compilerOptions) and replace the slash manually GitOrigin-RevId: 62217873de8d1e00e72927a5195338ad92c09769 --- server-ce/test/helpers/project.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server-ce/test/helpers/project.ts b/server-ce/test/helpers/project.ts index eb64bf37ce..e252649d67 100644 --- a/server-ce/test/helpers/project.ts +++ b/server-ce/test/helpers/project.ts @@ -141,6 +141,7 @@ export function getSpamSafeProjectName() { // Move from hex/16 to base64/64 possible characters per char in string const name = Buffer.from(uuid().replaceAll('-', ''), 'hex') .toString('base64') + .replace('/', '_') .slice(0, 10) const nDigits = (name.match(/\d/g) || []).length if (nDigits < 6) return name