code change · refactorFinanceofficial - Microsoftreviewed - checked by Opus

#12617 [Security] Move URL checks from Web Request Helper to System Application Uri module

URL validation moved from Web Request Helper using DotNet System.Uri to native System Application Uri module across multiple apps, with obsolete markers for deprecated procedures.

Pull request · merged into main (BC30) on 2026-10-13 by darjoo · 22 files (+281 -113), 21 AL · refactor · tier official · reviewed (checked by Opus)

What changed

  • Migrated URL validation away from DotNet with IsValidUri, IsValidUriWithoutProtocol, IsSecureHttpUrl, IsHttpUrl, and GetHostNameFromUrl
  • System Application Uri module now used directly by all callers in Base App, CZ, NA, NO, and specialty apps
  • Five helper procedures reimplemented on top of Uri codeunit and marked obsolete for CLEAN30
  • Removed unused System.Integration directives across multiple files
  • Semantics preserved: absolute URI validation, scheme checking, same error messages

AL objects touched

Obsoletions

  • Web Request Helper: IsValidUri, replaced by Uri.IsValidUri from System Application
  • Web Request Helper: IsValidUriWithoutProtocol, replaced by Uri.IsValidUri from System Application
  • Web Request Helper: IsSecureHttpUrl, replaced by Uri.GetScheme from System Application
  • Web Request Helper: IsHttpUrl, replaced by Uri.GetScheme from System Application
  • Web Request Helper: GetHostNameFromUrl, replaced by Uri.GetHost from System Application

Context

  • Work items: AB#647963
  • Labels: AL: Apps (W1), AL: System Application, Ownership: Needs Review, Team: Other
  • Systems: finance, integration, development, platform, administration, copilot, crm

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).