Skip to content

.NET: fix: uri canonization in workflow http handler - #8406

Merged
Vincent Biret (baywet) merged 1 commit into
mainfrom
fix/uri-canonization
Sep 16, 2026
Merged

Vincent Biret (baywet) merged 1 commit into
mainfrom
fix/uri-canonization

Conversation

@baywet

@baywet Vincent Biret (baywet) commented Sep 15, 2026

Copy link
Copy Markdown
Member

the request URI was not being normalized, which may lead to improper evaluations below.

Copilot AI balanced review requested due to automatic review settings September 15, 2026 19:24
@agent-framework-automation agent-framework-automation Bot added .NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows labels Sep 15, 2026
@github-actions github-actions Bot changed the title fix: uri canonization in workflow http handler .NET: fix: uri canonization in workflow http handler Sep 15, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The implementation is focused, preserves request data, and includes appropriate regression coverage.

Pull request overview

Canonicalizes workflow HTTP request URIs before client selection, ensuring authorization and transport use the same effective URI.

Changes:

  • Canonicalizes initial request URLs before invoking the provider.
  • Adds regression coverage for dot-segment normalization.
File summaries
File Description
dotnet/src/Microsoft.Agents.AI.Workflows.Declarative/DefaultHttpRequestHandler.cs Creates canonical request metadata before dispatch.
dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.UnitTests/DefaultHttpRequestHandlerTests.cs Verifies provider and transport receive matching canonical URLs.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@github-code-quality

Copy link
Copy Markdown
Contributor

Code Coverage Overview

Languages: C#

C# / code-coverage/dotnet

The overall line coverage in commit df3cd96 in the fix/uri-canonization branch is 84%. Line coverage data for the main branch is not yet available.

Show a line coverage summary of the most covered files.
File main fix/uri-canonization df3cd96 +/-
/home/runner/wo...valConverter.cs 100%
/home/runner/wo...entsProvider.cs 99%
/home/runner/wo...nticAnalyzer.cs 94%
/home/runner/wo...tClientAgent.cs 91%
/home/runner/wo...putConverter.cs 90%
/home/runner/wo...kflowBuilder.cs 90%
/home/runner/wo...kflowSession.cs 87%
/home/runner/wo...SkillsSource.cs 86%
/home/runner/wo...onExtensions.cs 81%
/home/runner/wo...ctionVisitor.cs 70%

@baywet
Vincent Biret (baywet) added this pull request to the merge queue Sep 16, 2026
Merged via the queue into main with commit ee8e5f5 Sep 16, 2026
45 of 48 checks passed
@baywet
Vincent Biret (baywet) deleted the fix/uri-canonization branch September 17, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NET Usage: [Issues, PRs], Target: .Net workflows Usage: [Issues, PRs], Target: Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants