Skip to content

Preserve request URL casing in ApplicationPath on .NET Framework#1282

Closed
claudiamurialdo wants to merge 1 commit into
masterfrom
fix/application-path-casing
Closed

Preserve request URL casing in ApplicationPath on .NET Framework#1282
claudiamurialdo wants to merge 1 commit into
masterfrom
fix/application-path-casing

Conversation

@claudiamurialdo
Copy link
Copy Markdown
Collaborator

In .NET Framework, HttpRequest.ApplicationPath returns the path as configured in IIS regardless of the casing the client used in the URL, while .NET Core's PathBase preserves the request casing. Callers like GAM use this value as a cookie Path; since cookie paths are case-sensitive per RFC 6265, a mismatch caused the browser to drop the cookie when the URL casing differed from IIS.

GetApplicationPath now returns the matching prefix taken from Request.Url.AbsolutePath, aligning behavior across frameworks. New appSettings flag PreserveApplicationPathCasing (default true) allows reverting to the historical behavior if needed.

Issue:208240

In .NET Framework, HttpRequest.ApplicationPath returns the path as configured
in IIS regardless of the casing the client used in the URL, while .NET Core's
PathBase preserves the request casing. Callers like GAM use this value as a
cookie Path; since cookie paths are case-sensitive per RFC 6265, a mismatch
caused the browser to drop the cookie when the URL casing differed from IIS.

GetApplicationPath now returns the matching prefix taken from
Request.Url.AbsolutePath, aligning behavior across frameworks. New appSettings
flag PreserveApplicationPathCasing (default true) allows reverting to the
historical behavior if needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@claudiamurialdo claudiamurialdo temporarily deployed to kafka-integration-tests May 19, 2026 14:16 — with GitHub Actions Inactive
@claudiamurialdo claudiamurialdo temporarily deployed to external-storage-tests May 19, 2026 14:16 — with GitHub Actions Inactive
@genexusbot
Copy link
Copy Markdown
Collaborator

Cherry pick to beta success

@claudiamurialdo
Copy link
Copy Markdown
Collaborator Author

Revert changes: this was resolved differently in #1283

@genexusbot
Copy link
Copy Markdown
Collaborator

Revert to beta success
  • 2fcc9cb (warning: no changes merged)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants