diegosouzapw/OmniRoute · error
ZIP archive total uncompressed size exceeds
Error message
ZIP archive total uncompressed size exceeds ${maxTotal} byte limit What it means
Aggregate size guard in extractJsonZip: cumulative uncompressed size of all .json entries exceeds options.maxTotalSizeBytes (default DEFAULT_MAX_TOTAL). Final zip-bomb defense on total inflated bytes.
Solutions
- Repack the ZIP with only the required auth.json entry
- Increase maxTotalSizeBytes only when importing a known-large trusted export
- Drop unnecessary files from the archive before uploading
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/lib/oauth/utils/jsonZipExtract.ts:81 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/745fe3e715c8480b.
Report an issue: GitHub.
Appendix: source
Thrown at src/lib/oauth/utils/jsonZipExtract.ts:81
`ZIP entry "${baseName}" has an unsafe filename (must be a .json file without path traversal)`
);
}
if (!isSafeEntryName(entryName)) {
throw new Error(
`ZIP entry path "${entryName}" is unsafe (no "..", absolute paths, or control characters allowed)`
);
}
if (data.byteLength > maxFileSize) {
throw new Error(
`ZIP entry "${baseName}" is ${data.byteLength} bytes — exceeds ${maxFileSize} byte limit per file`
);
}
totalBytes += data.byteLength;
if (totalBytes > maxTotal) {
throw new Error(`ZIP archive total uncompressed size exceeds ${maxTotal} byte limit`);
}
const content = new TextDecoder("utf-8").decode(data);
result.push({ name: baseName, content });
}
return result;
}
View on GitHub (pinned to a179ffed5b)