Skip to content

Keep existing HTML exports intact on failure - #53

Merged
mahach666 merged 1 commit into
mainfrom
codex/protect-html-exports
Nov 18, 2026
Merged

mahach666 merged 1 commit into
mainfrom
codex/protect-html-exports

Conversation

@mahach666

Copy link
Copy Markdown
Contributor

Closes #9.

Validate the HTML data before writing and publish a completed temporary sibling in one move. Preserve Windows access rules or Unix mode bits on replacement and clean up the temporary file if the move fails. Reject duplicate element IDs, invalid texture references, and legacy meshes that provide geometry by reference and inline arrays.

Verification

  • Windows Release build and 155 tests on each of .NET 8 and .NET 10, including the actual RVT integration test.
  • Linux .NET 10: 154 tests passed. Real RVT test skipped. Verified symlink output, Unix mode bits and protection of a read-only destination.
  • Chromium and Firefox: 148 Playwright tests passed.
  • The RVT and IFC exports retained byte-identical geometry. Invalid OBJ exports with NaN and exponent overflow both left the existing IFC HTML byte-identical and returned exit code 3.

@mahach666
mahach666 merged commit 1ca02bd into main Nov 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exporter: validate all input before writing so a failed export never damages an existing file

1 participant