{"record":{"id":"cfda5e0ac93cdf50","repo":"paperclipai/paperclip","slug":"daytona-syncout-refusing-unparseable-or-ambiguous","errorCode":null,"errorMessage":"Daytona syncOut refusing unparseable or ambiguous symlink entry: ${line}","messagePattern":"Daytona syncOut refusing unparseable or ambiguous symlink entry: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/plugins/sandbox-providers/daytona/src/file-sync.ts","lineNumber":251,"sourceCode":" * targets are inspected; any unparseable line fails closed.\n */\nasync function assertTarballEntriesConfined(archivePath: string): Promise<void> {\n  const { stdout } = await execFileAsync(\"tar\", [\"-tvf\", archivePath], {\n    env: { ...process.env, COPYFILE_DISABLE: \"1\" },\n    maxBuffer: 32 * 1024 * 1024,\n  });\n  const lines = stdout.split(\"\\n\").filter((line) => line.trim().length > 0);\n  for (const line of lines) {\n    const parsed = parseTarVerboseListingLine(line);\n    if (!parsed) {\n      throw new Error(`Daytona syncOut refusing tarball with an unparseable entry listing: ${line}`);\n    }\n    const typeFlag = parsed.typeFlag;\n    let name = parsed.rest;\n    let linkTarget: string | null = null;\n    if (typeFlag === \"l\") {\n      const split = splitLinkEntryOnce(name, \" -> \");\n      if (!split) throw new Error(`Daytona syncOut refusing unparseable or ambiguous symlink entry: ${line}`);\n      name = split.name;\n      linkTarget = split.target;\n    } else if (typeFlag === \"h\") {\n      const split = splitLinkEntryOnce(name, \" link to \");\n      if (!split) throw new Error(`Daytona syncOut refusing unparseable or ambiguous hardlink entry: ${line}`);\n      name = split.name;\n      linkTarget = split.target;\n    }\n    const cleanName = name.replace(/\\/+$/, \"\");\n    if (cleanName.length > 0 && posixPathEscapes(cleanName)) {\n      throw new Error(`Daytona syncOut refusing tarball member that escapes the extraction dir: ${name}`);\n    }\n    if (linkTarget !== null) {\n      const resolved = path.posix.join(path.posix.dirname(cleanName), linkTarget);\n      if (path.posix.isAbsolute(linkTarget) || posixPathEscapes(resolved)) {\n        throw new Error(\n          `Daytona syncOut refusing tarball link whose target escapes the extraction dir: ${name} -> ${linkTarget}`,\n        );","sourceCodeStart":233,"sourceCodeEnd":269,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/packages/plugins/sandbox-providers/daytona/src/file-sync.ts#L233-L269","documentation":"Fail-closed check in assertTarballEntriesConfined: a tar member whose type flag is 'l' (symlink) did not split cleanly on exactly one ' -> ' separator, so its name and link target are ambiguous. Since the target cannot be verified to stay inside the extraction dir, the syncOut is refused outright.","triggerScenarios":"Thrown at packages/plugins/sandbox-providers/daytona/src/file-sync.ts:247 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix or exclude the ambiguous symlink entry in the tarball."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a7e689b3c35347b529cb9f54c9b9a8575a3dcab6","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}