1
0
Fork 0
polaris-task-force/src/collections
Z8MB1E cc9d3b8073 fix(missions): only accept Arma 3 Launcher preset exports as mod lists
Root cause of the upload failures: the launcher writes an
<?xml version="1.0"?> prologue, Payload sniffs uploads with
fileTypeFromBuffer, and the collection mimeTypes allowlist lacked
application/xml, so every genuine launcher export was rejected with
'Invalid MIME type: application/xml'.

- Add application/xml to the mod-lists upload mimeTypes (the document is
  still stored as text/html; verified end to end).
- New pure parser src/lib/modlistPreset.ts validates the launcher export
  structure (arma:Type=preset meta + data-type=ModContainer rows) and is
  shared by the server action (authoritative) and CreateSideOpDialog
  (instant client-side feedback).
- Plain-text lists are no longer accepted anywhere: dialog accept/hint,
  collection mimeTypes, and the action now agree on HTML presets only.
- Upload name defaults to the preset's own arma:PresetName.
- Tests: tests/int/modlist-preset.int.spec.ts (9 cases).
2026-10-08 13:25:08 -04:00
..
banking feat(rbac): migrate collection access controls to RBAC permissions 2026-08-19 19:47:51 -04:00
game feat(game-structures): add Labor Crew admin panel for staffing writes 2026-10-07 23:28:35 -04:00
intelligence feat(missions): add a per-mission planning map with Arma markers 2026-10-04 02:53:21 -04:00
locker feat(arma-bridge): sync limited-arsenal locker stock with the game 2026-10-05 03:17:59 -04:00
logistics feat(logistics): add the accessory asset type 2026-10-03 03:30:34 -04:00
market style(collections): replace dashes in admin field descriptions 2026-09-07 05:19:50 -04:00
minigames feat(minigames): add creator bank and exposure toggle schema with migrations 2026-09-08 15:57:01 -04:00
operations feat(operations): readiness and zone pressure aggregates 2026-09-20 02:43:53 -04:00
projects feat(projects): enforce permissions and improve search 2026-08-21 00:26:33 -04:00
server fix(missions): only accept Arma 3 Launcher preset exports as mod lists 2026-10-08 13:25:08 -04:00
story feat(story): order chapters by creation date and show newest first 2026-09-24 19:23:46 -04:00
tickets feat(tickets): allow staff to archive tickets, hiding them from the front-end 2026-10-07 01:22:51 -04:00
users feat(promotions): add promotion nominations and leadership transfers 2026-10-03 03:29:24 -04:00
voiceover fix(uploads): store upload collections under the persistent media volume 2026-10-08 12:14:46 -04:00
wiki feat(wiki): add Documentation category restricted to admins and developers 2026-09-30 18:41:07 -04:00
world feat(map): add Arma-style coordinate grid config, overlay and mission-map wiring 2026-10-05 03:17:52 -04:00
AGENTS.md feat(tickets): allow staff to archive tickets, hiding them from the front-end 2026-10-07 01:22:51 -04:00
Announcements.ts feat(announcements): add announcements system with roleDocs targeting and richText 2026-09-22 21:08:46 -04:00
Media.ts feat: application staging deployment (ensure better commits after this) 2025-12-15 01:14:30 -05:00
Shims.ts style(collections): replace dashes in admin field descriptions 2026-09-07 05:19:50 -04:00