{"record":{"id":"cc4b771b3f4df3f7","repo":"diegosouzapw/OmniRoute","slug":"invalid-profile-identifier","errorCode":null,"errorMessage":"Invalid profile identifier","messagePattern":"Invalid profile identifier","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/lib/vncSession/service.ts","lineNumber":127,"sourceCode":"      if (ids.length > 0) {\n        await docker([\"rm\", \"-f\", ...ids], { timeoutMs: 30_000 });\n      }\n    })();\n  }\n  await reconciliationPromise;\n}\n\nfunction findActiveSessionForConnection(connectionId: string): VncSession | undefined {\n  return [...SESSIONS.values()].find(\n    (session) =>\n      session.connectionId === connectionId &&\n      [\"starting\", \"running\", \"harvesting\"].includes(session.status)\n  );\n}\n\nfunction safePathSegment(value: string): string {\n  const safe = value.replace(/[^a-zA-Z0-9._-]/g, \"_\").slice(0, 120);\n  if (!safe || safe === \".\" || safe === \"..\") throw new Error(\"Invalid profile identifier\");\n  return safe;\n}\n\nfunction createProfileDir(connectionId: string, sessionId: string): string {\n  mkdirSync(VNC_CONFIG.profileDir, { recursive: true, mode: 0o700 });\n  chmodSync(VNC_CONFIG.profileDir, 0o700);\n  const profileName = safePathSegment(VNC_CONFIG.persistProfiles ? connectionId : sessionId);\n  const profileDir = join(VNC_CONFIG.profileDir, profileName);\n  mkdirSync(profileDir, { recursive: true, mode: 0o700 });\n  chmodSync(profileDir, 0o700);\n  return profileDir;\n}\n\nasync function publishedPort(containerName: string, containerPort: number): Promise<number> {\n  const result = await docker([\"port\", containerName, `${containerPort}/tcp`], {\n    timeoutMs: 10_000,\n  });\n  if (result.code !== 0) {","sourceCodeStart":109,"sourceCodeEnd":145,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/lib/vncSession/service.ts#L109-L145","documentation":"Error \"Invalid profile identifier\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/lib/vncSession/service.ts:127 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}