Skip to content

[release/7.0] Fix predicate evaluation in OutputCacheAttribute #45027

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

Merged
merged 3 commits into from
Nov 14, 2022

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 11, 2022

Backport of #45013 to release/7.0

/cc @adityamandaleeka @sebastienros

Fix predicate evaluation in OutputCacheAttribute

Description

When using an Output Cache policy that depends on a predicate, the Default policy is applied even
if the predicate is false, and the action is still cached.

Fixes #44739

Customer Impact

MVC actions could be cached when not desired.

Regression?

  • Yes
  • No

Risk

  • High
  • Medium
  • Low

The change is isolated to the code path with the bug.

Verification

  • Manual (required)
  • Automated

Packaging changes reviewed?

  • Yes
  • No
  • N/A

@ghost ghost added the area-runtime label Nov 11, 2022
@sebastienros sebastienros added the Servicing-consider Shiproom approval is required for the issue label Nov 11, 2022
@ghost
Copy link

ghost commented Nov 11, 2022

Hi @github-actions[bot]. Please make sure you've updated the PR description to use the Shiproom Template. Also, make sure this PR is not marked as a draft and is ready-to-merge.

To learn more about how to prepare a servicing PR click here.

@wtgodbe
Copy link
Member

wtgodbe commented Nov 14, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 3 pipeline(s).

@sebastienros
Copy link
Member

@dotnet/aspnet-build PR approved but failing (second time) with the same RestoreTask issue

@adityamandaleeka adityamandaleeka added Servicing-approved Shiproom has approved the issue and removed Servicing-consider Shiproom approval is required for the issue labels Nov 14, 2022
@ghost
Copy link

ghost commented Nov 14, 2022

Hi @github-actions[bot]. This PR was just approved to be included in the upcoming servicing release. Somebody from the @dotnet/aspnet-build team will get it merged when the branches are open. Until then, please make sure all the CI checks pass and the PR is reviewed.

@wtgodbe wtgodbe merged commit 0384a80 into release/7.0 Nov 14, 2022
@wtgodbe wtgodbe deleted the backport/pr-45013-to-release/7.0 branch November 14, 2022 23:29
@dougbu dougbu added this to the 7.0.1 milestone Jan 20, 2023
@amcasey amcasey added area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares and removed area-runtime labels Jun 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-middleware Includes: URL rewrite, redirect, response cache/compression, session, and other general middlewares Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants