Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/9.0] Return 206 Partial Content on Valid Range for Static Assets #59325

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Dec 5, 2024

Backport of #59160 to release/9.0

/cc @javiercn @melotic

Return 206 Partial Content on Valid Range for Static Assets

Fixes an issue where range requests resulted in a 416 error.

Description

The status code that we were returning was incorrect. The fix corrects the behavior and includes the appropriate test to cover the scenario.

Fixes #58829

Customer Impact

Customers can't serve media content (video, audio) as the browser issues a range request for it, and the result has the wrong status code. This only applies when using the new MapStaticAssets API introduced in .NET 9, so customers will only be impacted if they manually updated their app to use the new API, or if they created their project from a .NET 9 project template.

Regression?

  • Yes
  • No

The bug only occurs when using a newly introduced API in .NET 9.

Risk

  • High
  • Medium
  • Low

The fix is simple, it has automated tests, and it has been manually validated.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

When servicing release/2.1

  • Make necessary changes in eng/PatchConfig.props

@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label Dec 5, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0.x milestone Dec 5, 2024
@javiercn javiercn added area-blazor Includes: Blazor, Razor Components and removed needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically labels Dec 5, 2024
@dotnet-policy-service dotnet-policy-service bot added the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Dec 12, 2024
@MackinnonBuck MackinnonBuck self-assigned this Jan 13, 2025
@MackinnonBuck
Copy link
Member

I manually verified that the fix works.

@MackinnonBuck MackinnonBuck added the Servicing-consider Shiproom approval is required for the issue label Jan 13, 2025
@MackinnonBuck
Copy link
Member

/azp run

@dotnet-policy-service dotnet-policy-service bot removed the pending-ci-rerun When assigned to a PR indicates that the CI checks should be rerun label Jan 13, 2025
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@MackinnonBuck MackinnonBuck added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Jan 14, 2025
@wtgodbe wtgodbe merged commit 7128f3e into release/9.0 Jan 14, 2025
25 checks passed
@wtgodbe wtgodbe deleted the backport/pr-59160-to-release/9.0 branch January 14, 2025 21:04
@dotnet-policy-service dotnet-policy-service bot modified the milestones: 9.0.x, 9.0.2 Jan 14, 2025
@bikeoid
Copy link

bikeoid commented Feb 11, 2025

I'm still seeing the 416 error on 9.0.2 . Has this been included in the 9.0.2 packages?

[EDIT] Ignore this: it turns out that the server is running IIS and not Kestrel. It works properly when running from localhost on 9.0.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants