code change · fixPlatform, DevOps & Performanceofficial - Microsoftreviewed - checked by Opus

#11733 Fix external storage migration for unsafe attachment filenames

Attachments with unsafe filenames now migrate to external storage because generated storage paths are sanitized while displayed names stay unchanged. Each sync step runs in isolation so one failure rolls back only that step, failures are registered per attachment, and the app no longer deletes remote files, only retiring local references under a guard.

Pull request · merged into main (BC30) on 2026-10-09 by darjoo · 15 files (+1544 -164), 9 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Generated storage filenames are sanitized; displayed File Name and File Extension are unchanged
  • Each synchronization step runs through a worker; failures roll back that step and processing continues
  • Failed attachments are registered locally; interactive runs show Error Messages, background runs do not fail the job queue entry
  • Uploaded files are retained after failed persistence and their logical paths recorded for recovery
  • All remote deletion calls are removed; local references are retired only under a guarded check
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#647832
  • Labels: AL: Apps (W1), AL: System Application, Team: Integrations
  • Systems: platform
  • From the description: “Sanitize generated storage/media-import filenames without changing displayed File Name or File Extension.”

No source states these links: they share an object, a model read them, or a person found the same subject.

Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).