eCourt-Doc-Edit/backend/WordVersioning.Api.IntegrationTests
Suphonchai Phoonsawat f4b2ff9d28 v9.2.1: real filenames back in open-link URLs (was literal "file")
User report: downloaded/opened files named just "file" — v9.2 put a
literal file.docx/file.pdf at the end of open-link URLs (treated as
cosmetic since Content-Disposition carries the real name, but Word
names its URL-copy from the URL path and browsers fall back to the
URL filename)

- OpenLinkService.CreateLink takes fileName and appends it (URL-encoded,
  Thai-safe) — version: {base}_v{N}.docx/.pdf per FR-15, draft:
  {template}_{timestamp}.docx per FR-10 naming policy
- Draft route split into /d/{templateId}/{stamp}/{fileName} (rebuilds
  objectKey + HMAC-validates as before); version route unchanged shape
  with real name
- Tests: URL tails assert real names (คำร้อง_v1.pdf/_v1.docx, draft
  template name), no /file.docx; new tamper tests — modified stamp/
  templateId and swapped docx↔pdf extension (version route) → 404
- backend 89/89; QA reviewer PASS (1 round, minors 2 fixed)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-10 14:18:36 +07:00
..
Fixtures Phase 7-8 2026-08-20 13:51:42 +07:00
AuthTests.cs Phase 12: draft generation (FR-16) 2026-09-10 10:51:13 +07:00
DraftTests.cs v9.2.1: real filenames back in open-link URLs (was literal "file") 2026-09-10 14:18:36 +07:00
FieldEditorTests.cs Phase 10: field editor (FR-14) 2026-08-22 09:17:15 +07:00
FieldSyncTests.cs Phase 11: version PDF (FR-15) 2026-09-08 14:01:13 +07:00
GenerateTests.cs Phase 12 v9: draft opens in Word + Thai word-breaking fix (FR-16) 2026-09-10 11:49:16 +07:00
IntegrationTestFixture.cs Phase 12 v9.2: download-first + backend open-links (Word 16.101+ broke ms-word) 2026-09-10 13:39:23 +07:00
TemplateLinkingTests.cs Phase 12: draft generation (FR-16) 2026-09-10 10:51:13 +07:00
TemplateTests.cs Phase 10: field editor (FR-14) 2026-08-22 09:17:15 +07:00
TestDocx.cs Phase 12 v9: draft opens in Word + Thai word-breaking fix (FR-16) 2026-09-10 11:49:16 +07:00
TestDtos.cs Phase 12 v9: draft opens in Word + Thai word-breaking fix (FR-16) 2026-09-10 11:49:16 +07:00
TestFlow.cs Phase 9: version message (FR-13) 2026-08-20 22:05:49 +07:00
UploadVersionTests.cs Phase 7-8 2026-08-20 13:51:42 +07:00
VersionMessageTests.cs Phase 11: version PDF (FR-15) 2026-09-08 14:01:13 +07:00
VersionPdfTests.cs v9.2.1: real filenames back in open-link URLs (was literal "file") 2026-09-10 14:18:36 +07:00
WordVersioning.Api.IntegrationTests.csproj Phase 7-8 2026-08-20 13:51:42 +07:00