---
id: change/al-go/2330
type: change
title: "#2330 Emit valid SARIF URIs for AL code analysis paths containing spaces"
summary: ProcessALCodeAnalysisLogs now properly URI-encodes file paths with spaces in SARIF output to comply with URI standards and prevent upload warnings.
tier: official
language: en
tags:
  - fix
  - main
system: development
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:11:17.041Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: aec640c0ed700b1b8af06823ba9681b9ce17d369
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2330
    title: "microsoft/AL-Go#2330: Emit valid SARIF URIs for AL code analysis paths containing spaces"
    date: "2026-07-27"
    commit: aec640c0ed700b1b8af06823ba9681b9ce17d369
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2330
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2330
kind: pr
base_branch: main
major: null
merged_at: "2026-07-27T09:04:19Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 97
  deletions: 3
  al: 2
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/ProcessALCodeAnalysisLogs/ProcessALCodeAnalysisLogs.ps1
    status: modified
    reason: not-in-snapshot
  - path: Actions/ProcessALCodeAnalysisLogs/ProcessALCodeAnalysisLogs.psm1
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items: []
systems:
  - development
  - platform
quote: null
joined_against:
  major: null
  commit: null
---

# #2330 Emit valid SARIF URIs for AL code analysis paths containing spaces

> ProcessALCodeAnalysisLogs now properly URI-encodes file paths with spaces in SARIF output to comply with URI standards and prevent upload warnings.

[Pull request](https://github.com/microsoft/AL-Go/pull/2330) · merged into `main` on 2026-07-27 by aholstrup1 · 4 files (+97 -3), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Added ConvertTo-SarifArtifactUri function to encode path segments while preserving forward slashes
- Spaces in file paths are converted to %20 in SARIF artifact URIs
- De-duplication logic still uses raw path names, ensuring semantics are unchanged
- Eliminates thousands of 'not a valid URI' warnings from SARIF uploads
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/ProcessALCodeAnalysisLogs/ProcessALCodeAnalysisLogs.ps1`: modified, not in the BC? snapshot
- `Actions/ProcessALCodeAnalysisLogs/ProcessALCodeAnalysisLogs.psm1`: modified, not in the BC? snapshot

## Context

- Systems: development, platform

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